Beispiel #1
0
 @Override
 public int getComparatorInputOverride(World world, int x, int y, int z, int side) {
   TileEntityBearTrap tile = getTileEntity(world, x, y, z, TileEntityBearTrap.class);
   return tile != null ? tile.getComparatorLevel() : 0;
 }
Beispiel #2
0
 @Override
 public void onEntityCollidedWithBlock(World world, int x, int y, int z, Entity entity) {
   TileEntityBearTrap te = getTileEntity(world, x, y, z, TileEntityBearTrap.class);
   if (te != null) te.onEntityCollided(entity);
 }