getBlockState -> getBlockEntity

This commit is contained in:
dfsek
2021-12-17 08:37:51 -07:00
parent 5401917703
commit 7da87c27ee
5 changed files with 9 additions and 9 deletions

View File

@@ -17,13 +17,13 @@ public interface ReadableWorld extends World {
return getBlockData(position.getX(), position.getY(), position.getZ());
}
BlockEntity getBlockState(int x, int y, int z);
BlockEntity getBlockEntity(int x, int y, int z);
default BlockEntity getBlockState(Vector3 position) {
return getBlockState(position.getBlockX(), position.getBlockY(), position.getBlockZ());
default BlockEntity getBlockEntity(Vector3 position) {
return getBlockEntity(position.getBlockX(), position.getBlockY(), position.getBlockZ());
}
default BlockEntity getBlockState(Vector3Int position) {
return getBlockState(position.getX(), position.getY(), position.getZ());
default BlockEntity getBlockEntity(Vector3Int position) {
return getBlockEntity(position.getX(), position.getY(), position.getZ());
}
}