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

Method replaceValue

common/buildcraft/lib/misc/VecUtil.java:41–47  ·  view source on GitHub ↗
(Vec3d old, Axis axis, double with)

Source from the content-addressed store, hash-verified

39 }
40
41 public static Vec3d replaceValue(Vec3d old, Axis axis, double with) {
42 return new Vec3d(//
43 axis == Axis.X ? with : old.xCoord,//
44 axis == Axis.Y ? with : old.yCoord,//
45 axis == Axis.Z ? with : old.zCoord//
46 );
47 }
48
49 public static BlockPos replaceValue(Vec3i old, Axis axis, int with) {
50 return new BlockPos(//

Callers 15

getRenderBoundingBoxMethod · 0.95
generateMethod · 0.95
renderMethod · 0.95
renderPointMethod · 0.95
bakePointMethod · 0.95
BlockEngineBaseClass · 0.95
getTemplateMethod · 0.95
internalInitMethod · 0.95
internalInitMethod · 0.95
createUtilsIfNeededMethod · 0.95
setBoundariesMethod · 0.95

Calls 3

getXMethod · 0.65
getYMethod · 0.65
getZMethod · 0.45

Tested by

no test coverage detected