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

Method writeBlockPos

common/buildcraft/lib/misc/NBTUtils.java:90–93  ·  view source on GitHub ↗
(BlockPos pos)

Source from the content-addressed store, hash-verified

88 }
89
90 public static NBTTagIntArray writeBlockPos(BlockPos pos) {
91 if (pos == null) return null;
92 return new NBTTagIntArray(new int[] { pos.getX(), pos.getY(), pos.getZ() });
93 }
94
95 public static BlockPos readBlockPos(NBTBase base) {
96 if (base == null) return null;

Callers 15

writeToNBTMethod · 0.95
serializeNBTMethod · 0.95
serializeNBTMethod · 0.95
saveConnectionMethod · 0.95
saveConnectionMethod · 0.95
writeToNBTMethod · 0.95
writeToNBTMethod · 0.95
writeToNBTInternalMethod · 0.95
writeToNBTMethod · 0.95
writeToNBTMethod · 0.95
writeToNBTMethod · 0.95
writeToNBTMethod · 0.95

Calls 3

getXMethod · 0.65
getYMethod · 0.65
getZMethod · 0.45

Tested by

no test coverage detected