Class Vec3i

  • All Implemented Interfaces:
    java.lang.Comparable<Vec3i>, org.teavm.jso.JSObject
    Direct Known Subclasses:
    BlockPos

    public class Vec3i
    extends PluginData
    implements java.lang.Comparable<Vec3i>
    + This portion of EaglercraftX contains deobfuscated Minecraft 1.8 source code. Minecraft 1.8.8 bytecode is (c) 2015 Mojang AB. "Do not distribute!" Mod Coder Pack v9.18 deobfuscation configs are (c) Copyright by the MCP Team EaglercraftX 1.8 patch files are (c) 2022-2023 LAX1DUDE. All Rights Reserved. WITH THE EXCEPTION OF PATCH FILES, MINIFIED JAVASCRIPT, AND ALL FILES NORMALLY FOUND IN AN UNMODIFIED MINECRAFT RESOURCE PACK, YOU ARE NOT ALLOWED TO SHARE, DISTRIBUTE, OR REPURPOSE ANY FILE USED BY OR PRODUCED BY THE SOFTWARE IN THIS REPOSITORY WITHOUT PRIOR PERMISSION FROM THE PROJECT AUTHOR. NOT FOR COMMERCIAL OR MALICIOUS USE (please read the 'LICENSE' file this repo's root directory for more info)
    • Field Detail

      • NULL_VECTOR

        public static final Vec3i NULL_VECTOR
        + The Null vector constant (0, 0, 0)
      • x

        public int x
      • y

        public int y
      • z

        public int z
    • Constructor Detail

      • Vec3i

        public Vec3i​(int xIn,
                     int yIn,
                     int zIn)
      • Vec3i

        public Vec3i​(double xIn,
                     double yIn,
                     double zIn)
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object object)
        Overrides:
        equals in class java.lang.Object
      • loadPluginData

        public void loadPluginData​(BaseData data)
      • fromPluginData

        public static Vec3i fromPluginData​(BaseData data)
      • makePluginData

        public PluginData makePluginData()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • compareTo

        public int compareTo​(Vec3i vec3i)
        Specified by:
        compareTo in interface java.lang.Comparable<Vec3i>
      • getX

        public int getX()
        + Get the X coordinate
      • getY

        public int getY()
        + Get the Y coordinate
      • getZ

        public int getZ()
        + Get the Z coordinate
      • crossProduct

        public Vec3i crossProduct​(Vec3i vec3i)
        + Calculate the cross product of this and the given Vector
      • distanceSq

        public double distanceSq​(double toX,
                                 double toY,
                                 double toZ)
        + Calculate squared distance to the given coordinates
      • distanceSqToCenter

        public double distanceSqToCenter​(double xIn,
                                         double yIn,
                                         double zIn)
        + Compute square of distance from point x, y, z to center of this Block
      • distanceSq

        public double distanceSq​(Vec3i to)
        + Calculate squared distance to the given coordinates
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object