(Vec3d old, Axis axis, double with)
| 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(// |
no test coverage detected