(BlockPos pos)
| 185 | } |
| 186 | |
| 187 | public static EndCrystalEntity getCrystal(BlockPos pos) { |
| 188 | assert mc.world != null; |
| 189 | for (Entity entity : mc.world.getEntities()) { |
| 190 | |
| 191 | if (!(entity instanceof EndCrystalEntity)) continue; |
| 192 | |
| 193 | if (entity.getBlockPos().equals(pos.up())) return (EndCrystalEntity) entity; |
| 194 | } |
| 195 | return null; |
| 196 | } |
| 197 | |
| 198 | public static boolean isBlock(BlockPos p) { |
| 199 | return state(p).equals(Blocks.AIR); |