Class AxisAlignedBB

  • All Implemented Interfaces:
    org.teavm.jso.JSObject

    public class AxisAlignedBB
    extends PluginData
    + 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

      • minX

        public double minX
      • minY

        public double minY
      • minZ

        public double minZ
      • maxX

        public double maxX
      • maxY

        public double maxY
      • maxZ

        public double maxZ
    • Constructor Detail

      • AxisAlignedBB

        public AxisAlignedBB​(double x1,
                             double y1,
                             double z1,
                             double x2,
                             double y2,
                             double z2)
    • Method Detail

      • addCoord

        public AxisAlignedBB addCoord​(double x,
                                      double y,
                                      double z)
        + Adds the coordinates to the bounding box extending it if the point lies outside the current ranges. Args: x, y, z
      • expand

        public AxisAlignedBB expand​(double x,
                                    double y,
                                    double z)
        + Returns a bounding box expanded by the specified vector (if negative numbers are given it will shrink). Args: x, y, z
      • fromBounds

        public static AxisAlignedBB fromBounds​(double x1,
                                               double y1,
                                               double z1,
                                               double x2,
                                               double y2,
                                               double z2)
        + returns an AABB with corners x1, y1, z1 and x2, y2, z2
      • offset

        public AxisAlignedBB offset​(double x,
                                    double y,
                                    double z)
        + Offsets the current bounding box by the specified coordinates. Args: x, y, z
      • calculateXOffset

        public double calculateXOffset​(AxisAlignedBB other,
                                       double offsetX)
        + if instance and the argument bounding boxes overlap in the Y and Z dimensions, calculate the offset between them in the X dimension. return var2 if the bounding boxes do not overlap or if var2 is closer to 0 then the calculated offset. Otherwise return the calculated offset.
      • calculateYOffset

        public double calculateYOffset​(AxisAlignedBB other,
                                       double offsetY)
        + if instance and the argument bounding boxes overlap in the X and Z dimensions, calculate the offset between them in the Y dimension. return var2 if the bounding boxes do not overlap or if var2 is closer to 0 then the calculated offset. Otherwise return the calculated offset.
      • calculateZOffset

        public double calculateZOffset​(AxisAlignedBB other,
                                       double offsetZ)
        + if instance and the argument bounding boxes overlap in the Y and X dimensions, calculate the offset between them in the Z dimension. return var2 if the bounding boxes do not overlap or if var2 is closer to 0 then the calculated offset. Otherwise return the calculated offset.
      • intersectsWith

        public boolean intersectsWith​(AxisAlignedBB other)
        + Returns whether the given bounding box intersects with this one. Args: axisAlignedBB
      • isVecInside

        public boolean isVecInside​(Vec3 vec)
        + Returns if the supplied Vec3D is completely inside the bounding box
      • getAverageEdgeLength

        public double getAverageEdgeLength()
        + Returns the average length of the edges of the bounding box.
      • contract

        public AxisAlignedBB contract​(double x,
                                      double y,
                                      double z)
        + Returns a bounding box that is inset by the specified amounts
      • toString

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

        public boolean func_181656_b()
      • loadPluginData

        public void loadPluginData​(BaseData data)
      • makePluginData

        public PluginData makePluginData()