MCPcopy Create free account
hub / github.com/SplashAni/RandomMeteor / getCrystal

Method getCrystal

src/main/java/random/meteor/utils/Utils.java:187–196  ·  view source on GitHub ↗
(BlockPos pos)

Source from the content-addressed store, hash-verified

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);

Callers 2

doCrystalMethod · 0.95
onTickMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected