MCPcopy Create free account
hub / github.com/Teneted/Tenet / add

Method add

src/main/java/org/bukkit/util/Vector.java:89–95  ·  view source on GitHub ↗

Adds a vector to this one @param vec The other vector @return the same vector

(@NotNull Vector vec)

Source from the content-addressed store, hash-verified

87 * @return the same vector
88 */
89 @NotNull
90 public Vector add(@NotNull Vector vec) {
91 x += vec.x;
92 y += vec.y;
93 z += vec.z;
94 return this;
95 }
96
97 /**
98 * Subtracts a vector from this one.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected