mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-04-20 23:30:29 +00:00
getBlockData -> getBlockState
This commit is contained in:
@@ -38,7 +38,7 @@ public class BufferedBlock implements BufferedItem {
|
||||
@Override
|
||||
public void paste(Vector3 origin, WritableWorld world) {
|
||||
try {
|
||||
BlockState current = world.getBlockData(origin);
|
||||
BlockState current = world.getBlockState(origin);
|
||||
if(overwrite || current.isAir()) {
|
||||
if(waterlog && current.has(Properties.WATERLOGGED) && current.getBlockType().isWater()) {
|
||||
current.set(Properties.WATERLOGGED, true);
|
||||
|
||||
@@ -7,14 +7,14 @@ import com.dfsek.terra.api.util.vector.integer.Vector3Int;
|
||||
|
||||
|
||||
public interface ReadableWorld extends World {
|
||||
BlockState getBlockData(int x, int y, int z);
|
||||
BlockState getBlockState(int x, int y, int z);
|
||||
|
||||
default BlockState getBlockData(Vector3 position) {
|
||||
return getBlockData(position.getBlockX(), position.getBlockY(), position.getBlockZ());
|
||||
default BlockState getBlockState(Vector3 position) {
|
||||
return getBlockState(position.getBlockX(), position.getBlockY(), position.getBlockZ());
|
||||
}
|
||||
|
||||
default BlockState getBlockData(Vector3Int position) {
|
||||
return getBlockData(position.getX(), position.getY(), position.getZ());
|
||||
default BlockState getBlockState(Vector3Int position) {
|
||||
return getBlockState(position.getX(), position.getY(), position.getZ());
|
||||
}
|
||||
|
||||
BlockEntity getBlockEntity(int x, int y, int z);
|
||||
|
||||
Reference in New Issue
Block a user