Package net.minecraft.util
Class Vec3i
- java.lang.Object
-
- net.zxmushroom63.plugins.BaseData
-
- net.zxmushroom63.plugins.PluginData
-
- net.minecraft.util.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)
-
-
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
-
-
Field Summary
Fields Modifier and Type Field Description static Vec3i
NULL_VECTOR
+ The Null vector constant (0, 0, 0)int
x
int
y
int
z
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(Vec3i vec3i)
Vec3i
crossProduct(Vec3i vec3i)
+ Calculate the cross product of this and the given Vectordouble
distanceSq(double toX, double toY, double toZ)
+ Calculate squared distance to the given coordinatesdouble
distanceSq(Vec3i to)
+ Calculate squared distance to the given coordinatesdouble
distanceSqToCenter(double xIn, double yIn, double zIn)
+ Compute square of distance from point x, y, z to center of this Blockboolean
equals(java.lang.Object object)
static Vec3i
fromPluginData(BaseData data)
int
getX()
+ Get the X coordinateint
getY()
+ Get the Y coordinateint
getZ()
+ Get the Z coordinateint
hashCode()
void
loadPluginData(BaseData data)
PluginData
makePluginData()
java.lang.String
toString()
-
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
-
-
-
-
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
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object object)
- Overrides:
equals
in classjava.lang.Object
-
loadPluginData
public void loadPluginData(BaseData data)
-
makePluginData
public PluginData makePluginData()
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
compareTo
public int compareTo(Vec3i vec3i)
- Specified by:
compareTo
in interfacejava.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 classjava.lang.Object
-
-