mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 06:07:27 +00:00
Merge remote-tracking branch 'origin/louis' into dev
This commit is contained in:
commit
0291fd44a5
2 files changed
+6
-4
No files matched your search
@@ -209,15 +209,17 @@ public class NpcAPI extends AbstractNpcAPI {
|
||||
}
|
||||
|
||||
public ITileEntity getITileEntity(IWorld world, IPos pos) {
|
||||
return new ScriptTileEntity<>(world.getMCWorld().getTileEntity(pos.getX(), pos.getY(),pos.getZ()));
|
||||
TileEntity tileEntity = world.getMCWorld().getTileEntity(pos.getX(), pos.getY(),pos.getZ());
|
||||
return this.getITileEntity(tileEntity);
|
||||
}
|
||||
|
||||
public ITileEntity getITileEntity(IWorld world, int x, int y, int z) {
|
||||
return new ScriptTileEntity<>(world.getMCWorld().getTileEntity(x,y,z));
|
||||
TileEntity tileEntity = world.getMCWorld().getTileEntity(x,y,z);
|
||||
return this.getITileEntity(tileEntity);
|
||||
}
|
||||
|
||||
public ITileEntity getITileEntity(TileEntity tileEntity) {
|
||||
return new ScriptTileEntity<>(tileEntity);
|
||||
return tileEntity == null ? null : new ScriptTileEntity<>(tileEntity);
|
||||
}
|
||||
|
||||
public IPos getIPos(BlockPos pos) {
|
||||
|
||||
Reference in new issue
Block a user