MCPcopy Create free account
hub / github.com/BuildCraft/BuildCraft / getId

Method getId

common/buildcraft/api/bpt/SchematicEntity.java:24–30  ·  view source on GitHub ↗
(Class<? extends Entity> clazz)

Source from the content-addressed store, hash-verified

22 }
23
24 private static ResourceLocation getId(Class<? extends Entity> clazz) throws SchematicException {
25 ResourceLocation id = BlueprintAPI.getWorldEntityId(clazz);
26 if (id == null) {
27 throw new SchematicException("Unknown entity class " + clazz + "!");
28 }
29 return id;
30 }
31
32 public NBTTagCompound serializeNBT() {
33 NBTTagCompound nbt = new NBTTagCompound();

Callers 10

SchematicEntityMethod · 0.95
computeHashMethod · 0.45
getOwnerOfMethod · 0.45
writeToByteBufMethod · 0.45
writeToNBTMethod · 0.45
getOwnerAsPlayerMethod · 0.45
internMethod · 0.45
toStringMethod · 0.45
getPlayerUUIDMethod · 0.45
readBlockPosMethod · 0.45

Calls 1

getWorldEntityIdMethod · 0.95

Tested by

no test coverage detected