mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-04-23 16:49:10 +00:00
compile Fabric
This commit is contained in:
@@ -50,14 +50,6 @@ public interface World extends Handle {
|
||||
return getBlockState(position.getBlockX(), position.getBlockY(), position.getBlockZ());
|
||||
}
|
||||
|
||||
void setBlockState(int x, int y, int z, BlockState state);
|
||||
|
||||
default void setBlockState(Vector3 position, BlockState state) {
|
||||
setBlockState(position.getBlockX(), position.getBlockY(), position.getBlockZ(), state);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Entity spawnEntity(Location location, EntityType entityType);
|
||||
|
||||
int getMinHeight();
|
||||
|
||||
@@ -20,8 +20,6 @@ public class BufferedStateManipulator implements BufferedItem {
|
||||
BlockState state = origin.getWorld().getBlockState(origin.getVector());
|
||||
state.applyState(data);
|
||||
state.update(false);
|
||||
|
||||
origin.getWorld().setBlockState(origin.getVector(), state);
|
||||
} catch(Exception e) {
|
||||
main.logger().warning("Could not apply BlockState at " + origin + ": " + e.getMessage());
|
||||
e.printStackTrace();
|
||||
|
||||
@@ -51,11 +51,6 @@ public class DummyWorld implements World {
|
||||
throw new UnsupportedOperationException("Cannot get block in DummyWorld");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setBlockState(int x, int y, int z, BlockState state) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public Entity spawnEntity(Location location, EntityType entityType) {
|
||||
throw new UnsupportedOperationException("Cannot spawn entity in DummyWorld");
|
||||
|
||||
Reference in New Issue
Block a user