// Called from update when the contents have changed, so hoppers need updates. // Check all 6 faces. public void scheduleTicks() { if (world != null && world.spigotConfig.altHopperTicking) { // Check the top scheduleTick(x, y + 1, z); // Check the sides for (int i = 2; i < 6; i++) { scheduleTick(x + Facing.b[i], y, z + Facing.d[i]); } // Check the bottom. TileEntity tileEntity = world.getTileEntity(x, y - 1, z); if (tileEntity instanceof TileEntityHopper && tileEntity.world != null) { ((TileEntityHopper) tileEntity).makeTick(); } } }