| 8 | import net.minecraft.util.Vec3i; |
| 9 | |
| 10 | public class BlockPosM extends BlockPos |
| 11 | { |
| 12 | private int mx; |
| 13 | private int my; |
| 14 | private int mz; |
| 15 | private int level; |
| 16 | private BlockPosM[] facings; |
| 17 | private boolean needsUpdate; |
| 18 | |
| 19 | public BlockPosM(int x, int y, int z) |
| 20 | { |
| 21 | this(x, y, z, 0); |
| 22 | } |
| 23 | |
| 24 | public BlockPosM(double xIn, double yIn, double zIn) |
| 25 | { |
| 26 | this(MathHelper.floor_double(xIn), MathHelper.floor_double(yIn), MathHelper.floor_double(zIn)); |
| 27 | } |
| 28 | |
| 29 | public BlockPosM(int x, int y, int z, int level) |
| 30 | { |
| 31 | super(0, 0, 0); |
| 32 | this.mx = x; |
| 33 | this.my = y; |
| 34 | this.mz = z; |
| 35 | this.level = level; |
| 36 | } |
| 37 | |
| 38 | /** |
| 39 | * Get the X coordinate |
| 40 | */ |
| 41 | public int getX() |
| 42 | { |
| 43 | return this.mx; |
| 44 | } |
| 45 | |
| 46 | /** |
| 47 | * Get the Y coordinate |
| 48 | */ |
| 49 | public int getY() |
| 50 | { |
| 51 | return this.my; |
| 52 | } |
| 53 | |
| 54 | /** |
| 55 | * Get the Z coordinate |
| 56 | */ |
| 57 | public int getZ() |
| 58 | { |
| 59 | return this.mz; |
| 60 | } |
| 61 | |
| 62 | public void setXyz(int x, int y, int z) |
| 63 | { |
| 64 | this.mx = x; |
| 65 | this.my = y; |
| 66 | this.mz = z; |
| 67 | this.needsUpdate = true; |
nothing calls this directly
no outgoing calls
no test coverage detected