@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; }