MCPcopy Create free account
hub / github.com/Garten/sourcecraft / add

Method add

src/minecraft/Position.java:89–94  ·  view source on GitHub ↗
(Position a, Position b)

Source from the content-addressed store, hash-verified

87 }
88
89 public static Position add(Position a, Position b) {
90 if (a == null || b == null) {
91 return null;
92 }
93 return new Position(a.x + b.x, a.y + b.y, a.z + b.z);
94 }
95
96 public Position getOffset(int x, int y, int z) {
97 return new Position(this.x + x, this.y + y, this.z + z);

Callers 15

enlargeMethod · 0.95
addPlaceMethod · 0.45
createDefaultsMethod · 0.45
addGameMethod · 0.45
getDetaulftConfigMethod · 0.45
initInputMethod · 0.45
initializeMethod · 0.45
initializeMethod · 0.45
initializeMethod · 0.45
initializeMethod · 0.45
initializeMethod · 0.45
initializeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected