MCPcopy Create free account
hub / github.com/cabaletta/baritone / from

Method from

src/api/java/baritone/api/utils/BetterBlockPos.java:73–79  ·  view source on GitHub ↗

Like constructor but returns null if pos is null, good if you just need to possibly censor coordinates @param pos The BlockPos, possibly null, to convert @return A BetterBlockPos or null if pos was null

(BlockPos pos)

Source from the content-addressed store, hash-verified

71 * @return A BetterBlockPos or null if pos was null
72 */
73 public static BetterBlockPos from(BlockPos pos) {
74 if (pos == null) {
75 return null;
76 }
77
78 return new BetterBlockPos(pos);
79 }
80
81 @Override
82 public int hashCode() {

Callers 4

mouseReleasedMethod · 0.95
viewerPosMethod · 0.95
onBlockInteractMethod · 0.95
toStringMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected