mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-12-30 20:39:21 +00:00
changes
This commit is contained in:
@@ -572,12 +572,18 @@ public class NMSBinding implements INMSBinding {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public Entity spawnEntity(Location location, org.bukkit.entity.EntityType type, CreatureSpawnEvent.SpawnReason reason) {
|
||||
return ((CraftWorld) location.getWorld()).spawn(location, type.getEntityClass(), null, reason);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean setBlock(World world, int x, int y, int z, BlockData data, int flag, int updateDepth) {
|
||||
var level = ((CraftWorld) world).getHandle();
|
||||
var blockData = ((CraftBlockData) data).getState();
|
||||
return level.setBlock(new BlockPos(x, y, z), blockData, flag, updateDepth);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Color getBiomeColor(Location location, BiomeColor type) {
|
||||
LevelReader reader = ((CraftWorld) location.getWorld()).getHandle();
|
||||
|
||||
@@ -575,6 +575,12 @@ public class NMSBinding implements INMSBinding {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean setBlock(World world, int x, int y, int z, BlockData data, int flag, int updateDepth) {
|
||||
var level = ((CraftWorld) world).getHandle();
|
||||
var blockData = ((CraftBlockData) data).getState();
|
||||
return level.setBlock(new BlockPos(x, y, z), blockData, flag, updateDepth);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Entity spawnEntity(Location location, org.bukkit.entity.EntityType type, CreatureSpawnEvent.SpawnReason reason) {
|
||||
|
||||
Reference in New Issue
Block a user