Class BlockPos.MutableBlockPos

    • Field Detail

      • x

        protected int x
        Mutable X Coordinate
      • y

        protected int y
        Mutable Y Coordinate
      • z

        protected int z
        Mutable Z Coordinate
    • Constructor Detail

      • MutableBlockPos

        public MutableBlockPos()
      • MutableBlockPos

        public MutableBlockPos​(BlockPos pos)
      • MutableBlockPos

        public MutableBlockPos​(int x_,
                               int y_,
                               int z_)
    • Method Detail

      • getX

        public int getX()
        Gets the X coordinate.
        Overrides:
        getX in class Vec3i
      • getY

        public int getY()
        Gets the Y coordinate.
        Overrides:
        getY in class Vec3i
      • getZ

        public int getZ()
        Gets the Z coordinate.
        Overrides:
        getZ in class Vec3i
      • setPos

        public BlockPos.MutableBlockPos setPos​(int xIn,
                                               int yIn,
                                               int zIn)
        Sets the position, MUST not be name 'set' as that causes obfusication conflicts with func_185343_d
      • setY

        public void setY​(int yIn)
      • toImmutable

        public BlockPos toImmutable()
        Returns a version of this BlockPos that is guaranteed to be immutable.

        When storing a BlockPos given to you for an extended period of time, make sure you use this in case the value is changed internally.