MCPcopy Create free account
hub / github.com/DGVPSH/SlackOpen / add

Method add

src/main/java/net/minecraft/util/BlockPos.java:67–70  ·  view source on GitHub ↗

Add the given coordinates to the coordinates of this BlockPos @param x X coordinate @param y Y coordinate @param z Z coordinate

(double x, double y, double z)

Source from the content-addressed store, hash-verified

65 * @param z Z coordinate
66 */
67 public BlockPos add(double x, double y, double z)
68 {
69 return x == 0.0D && y == 0.0D && z == 0.0D ? this : new BlockPos((double)this.getX() + x, (double)this.getY() + y, (double)this.getZ() + z);
70 }
71
72 public Vec3 toVec3(){
73 return new Vec3(this.getX(), this.getY(), this.getZ());

Callers 15

addRainParticlesMethod · 0.95
getVisibleFacingsMethod · 0.95
rebuildChunkMethod · 0.95
processCommandMethod · 0.95
processCommandMethod · 0.95
getPathToPosMethod · 0.95
getPathToEntityLivingMethod · 0.95
placeInExistingPortalMethod · 0.95
populateMethod · 0.95
populateMethod · 0.95
populateMethod · 0.95

Calls 3

getXMethod · 0.65
getYMethod · 0.65
getZMethod · 0.65

Tested by

no test coverage detected