Package net.minecraft.util
Class AxisAlignedBB
- java.lang.Object
-
- net.zxmushroom63.plugins.BaseData
-
- net.zxmushroom63.plugins.PluginData
-
- net.minecraft.util.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)
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.zxmushroom63.plugins.BaseData
BaseData.BooleanCallback, BaseData.BooleanCallbackArr, BaseData.DataBooleanCallback, BaseData.DataBooleanCallbackArr, BaseData.DataDoubleCallback, BaseData.DataDoubleCallbackArr, BaseData.DataFloatCallback, BaseData.DataFloatCallbackArr, BaseData.DataIntCallback, BaseData.DataIntCallbackArr, BaseData.DataObjectCallback, BaseData.DataObjectCallbackArr, BaseData.DataStringCallback, BaseData.DataStringCallbackArr, BaseData.DataVoidCallback, BaseData.DoubleCallback, BaseData.DoubleCallbackArr, BaseData.FloatCallback, BaseData.FloatCallbackArr, BaseData.IntCallback, BaseData.IntCallbackArr, BaseData.ObjectCallback, BaseData.ObjectCallbackArr, BaseData.StringCallback, BaseData.StringCallbackArr, BaseData.VoidCallback
-
-
Constructor Summary
Constructors Constructor Description AxisAlignedBB(double x1, double y1, double z1, double x2, double y2, double z2)AxisAlignedBB(BlockPos pos1, BlockPos pos2)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AxisAlignedBBaddCoord(double x, double y, double z)+ Adds the coordinates to the bounding box extending it if the point lies outside the current ranges.MovingObjectPositioncalculateIntercept(Vec3 vecA, Vec3 vecB)doublecalculateXOffset(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.doublecalculateYOffset(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.doublecalculateZOffset(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.AxisAlignedBBcontract(double x, double y, double z)+ Returns a bounding box that is inset by the specified amountsAxisAlignedBBexpand(double x, double y, double z)+ Returns a bounding box expanded by the specified vector (if negative numbers are given it will shrink).static AxisAlignedBBfromBounds(double x1, double y1, double z1, double x2, double y2, double z2)+ returns an AABB with corners x1, y1, z1 and x2, y2, z2static AxisAlignedBBfromPluginData(BaseData data)booleanfunc_181656_b()doublegetAverageEdgeLength()+ Returns the average length of the edges of the bounding box.booleanintersectsWith(AxisAlignedBB other)+ Returns whether the given bounding box intersects with this one.booleanisVecInside(Vec3 vec)+ Returns if the supplied Vec3D is completely inside the bounding boxvoidloadPluginData(BaseData data)PluginDatamakePluginData()AxisAlignedBBoffset(double x, double y, double z)+ Offsets the current bounding box by the specified coordinates.java.lang.StringtoString()AxisAlignedBBunion(AxisAlignedBB other)-
Methods inherited from class net.zxmushroom63.plugins.BaseData
execFuncBaseData, execFuncObject, execFuncString, getBaseData, getBaseDataArr, getBoolean, getBooleanArr, getByte, getByteArr, getChar, getCharArr, getDouble, getDoubleArr, getFloat, getFloatArr, getInt, getIntArr, getObject, getObjectArr, getShort, getShortArr, getString, getStringArr, has, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, setCallbackBoolean, setCallbackBooleanArr, setCallbackBooleanArrWithDataArg, setCallbackBooleanWithDataArg, setCallbackDouble, setCallbackDoubleArr, setCallbackDoubleArrWithDataArg, setCallbackDoubleWithDataArg, setCallbackFloat, setCallbackFloatArr, setCallbackFloatArrWithDataArg, setCallbackFloatWithDataArg, setCallbackInt, setCallbackIntArr, setCallbackIntArrWithDataArg, setCallbackIntWithDataArg, setCallbackObject, setCallbackObjectArr, setCallbackObjectArrWithDataArg, setCallbackObjectWithDataArg, setCallbackString, setCallbackStringArr, setCallbackStringArrWithDataArg, setCallbackStringWithDataArg, setCallbackVoid, setCallbackVoidWithDataArg, setNull
-
-
-
-
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
-
union
public AxisAlignedBB union(AxisAlignedBB other)
-
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
-
calculateIntercept
public MovingObjectPosition calculateIntercept(Vec3 vecA, Vec3 vecB)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
func_181656_b
public boolean func_181656_b()
-
loadPluginData
public void loadPluginData(BaseData data)
-
fromPluginData
public static AxisAlignedBB fromPluginData(BaseData data)
-
makePluginData
public PluginData makePluginData()
-
-