Package net.minecraft.util
Class BlockPos
- java.lang.Object
-
- net.zxmushroom63.plugins.BaseData
-
- net.zxmushroom63.plugins.PluginData
-
- net.minecraft.util.Vec3i
-
- net.minecraft.util.BlockPos
-
- All Implemented Interfaces:
java.lang.Comparable<Vec3i>,org.teavm.jso.JSObject
- Direct Known Subclasses:
BlockPos.MutableBlockPos
public class BlockPos extends 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 Modifier and Type Class Description static classBlockPos.MutableBlockPos-
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
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BlockPosadd(double x, double y, double z)+ Add the given coordinates to the coordinates of this BlockPosBlockPosadd(int x, int y, int z)+ Add the given coordinates to the coordinates of this BlockPosBlockPosadd(Vec3i vec)+ Add the given coordinates to the coordinates of this BlockPosBlockPoscrossProduct(Vec3i vec3i)+ Calculate the cross product of this and the given VectorBlockPosdown()+ Offset this BlockPos 1 block downBlockPosdown(int n)+ Offset this BlockPos 1 block downBlockPoseast()+ Offset this BlockPos 1 block in eastern directionBlockPoseast(int n)+ Offset this BlockPos 1 block in eastern directionstatic BlockPosfromLong(long serialized)+ Create a BlockPos from a serialized long value (created by toLong)static BlockPosfromPluginData(BaseData data)static java.lang.Iterable<BlockPos>getAllInBox(BlockPos from, BlockPos to)+ Create an Iterable that returns all positions in the box specified by the given cornersstatic java.lang.Iterable<BlockPos.MutableBlockPos>getAllInBoxMutable(BlockPos from, BlockPos to)+ Like getAllInBox but reuses a single MutableBlockPos instead.voidloadPluginData(BaseData data)PluginDatamakePluginData()BlockPosnorth()+ Offset this BlockPos 1 block in northern directionBlockPosnorth(int n)+ Offset this BlockPos 1 block in northern directionBlockPosoffset(EnumFacing facing)+ Offset this BlockPos 1 block in the given directionBlockPosoffset(EnumFacing facing, int n)+ Offset this BlockPos 1 block in the given directionBlockPosoffsetEvenFaster(EnumFacing facing, BlockPos.MutableBlockPos ret)only use with a regular "net.minecraft.util.BlockPos"!BlockPosoffsetFaster(EnumFacing facing, BlockPos.MutableBlockPos ret)BlockPossouth()+ Offset this BlockPos 1 block in southern directionBlockPossouth(int n)+ Offset this BlockPos 1 block in southern directionBlockPossubtract(Vec3i vec)+ Subtract the given Vector from this BlockPoslongtoLong()+ Serialize this BlockPos into a long valueBlockPosup()+ Offset this BlockPos 1 block upBlockPosup(int n)+ Offset this BlockPos 1 block upBlockPoswest()+ Offset this BlockPos 1 block in western directionBlockPoswest(int n)+ Offset this BlockPos 1 block in western direction-
Methods inherited from class net.minecraft.util.Vec3i
compareTo, distanceSq, distanceSq, distanceSqToCenter, equals, getX, getY, getZ, hashCode, 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
-
ORIGIN
public static final BlockPos ORIGIN
+ The BlockPos with all coordinates 0
-
-
Method Detail
-
loadPluginData
public void loadPluginData(BaseData data)
- Overrides:
loadPluginDatain classVec3i
-
makePluginData
public PluginData makePluginData()
- Overrides:
makePluginDatain classVec3i
-
add
public BlockPos add(double x, double y, double z)
+ Add the given coordinates to the coordinates of this BlockPos
-
add
public BlockPos add(int x, int y, int z)
+ Add the given coordinates to the coordinates of this BlockPos
-
up
public BlockPos up()
+ Offset this BlockPos 1 block up
-
up
public BlockPos up(int n)
+ Offset this BlockPos 1 block up
-
down
public BlockPos down()
+ Offset this BlockPos 1 block down
-
down
public BlockPos down(int n)
+ Offset this BlockPos 1 block down
-
north
public BlockPos north()
+ Offset this BlockPos 1 block in northern direction
-
north
public BlockPos north(int n)
+ Offset this BlockPos 1 block in northern direction
-
south
public BlockPos south()
+ Offset this BlockPos 1 block in southern direction
-
south
public BlockPos south(int n)
+ Offset this BlockPos 1 block in southern direction
-
west
public BlockPos west()
+ Offset this BlockPos 1 block in western direction
-
west
public BlockPos west(int n)
+ Offset this BlockPos 1 block in western direction
-
east
public BlockPos east()
+ Offset this BlockPos 1 block in eastern direction
-
east
public BlockPos east(int n)
+ Offset this BlockPos 1 block in eastern direction
-
offset
public BlockPos offset(EnumFacing facing)
+ Offset this BlockPos 1 block in the given direction
-
offsetFaster
public BlockPos offsetFaster(EnumFacing facing, BlockPos.MutableBlockPos ret)
-
offsetEvenFaster
public BlockPos offsetEvenFaster(EnumFacing facing, BlockPos.MutableBlockPos ret)
only use with a regular "net.minecraft.util.BlockPos"!
-
offset
public BlockPos offset(EnumFacing facing, int n)
+ Offset this BlockPos 1 block in the given direction
-
crossProduct
public BlockPos crossProduct(Vec3i vec3i)
+ Calculate the cross product of this and the given Vector- Overrides:
crossProductin classVec3i
-
toLong
public long toLong()
+ Serialize this BlockPos into a long value
-
fromLong
public static BlockPos fromLong(long serialized)
+ Create a BlockPos from a serialized long value (created by toLong)
-
getAllInBox
public static java.lang.Iterable<BlockPos> getAllInBox(BlockPos from, BlockPos to)
+ Create an Iterable that returns all positions in the box specified by the given corners
-
getAllInBoxMutable
public static java.lang.Iterable<BlockPos.MutableBlockPos> getAllInBoxMutable(BlockPos from, BlockPos to)
+ Like getAllInBox but reuses a single MutableBlockPos instead. If this method is used, the resulting BlockPos instances can only be used inside the iteration loop.
-
-