Class WorldlyPosition
java.lang.Object
com.mojang.math.Vector3f
com.codinglitch.simpleradio.api.central.WorldlyPosition
public class WorldlyPosition
extends com.mojang.math.Vector3f
-
Field Summary
FieldsFields inherited from class com.mojang.math.Vector3f
CODEC, XN, XP, YN, YP, ZERO, ZN, ZP -
Constructor Summary
ConstructorsConstructorDescriptionWorldlyPosition(float x, float y, float z, net.minecraft.world.level.Level level) WorldlyPosition(float x, float y, float z, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos realLocation) -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.core.BlockPosblockPos()com.mojang.math.Vector3ffloatdistance(WorldlyPosition other) booleanequals(WorldlyPosition location) booleanstatic WorldlyPositionof(com.mojang.math.Vector3f pos, net.minecraft.world.level.Level level) static WorldlyPositionof(com.mojang.math.Vector3f pos, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos realLocation) static WorldlyPositionof(net.minecraft.core.BlockPos pos, net.minecraft.world.level.Level level) static WorldlyPositionof(net.minecraft.core.BlockPos pos, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos realLocation) com.mojang.math.Vector3fposition()floatrawDistance(float x, float y, float z) floatrawDistance(WorldlyPosition other) net.minecraft.core.BlockPosMethods inherited from class com.mojang.math.Vector3f
add, add, clamp, clamp, copy, cross, dot, equals, hashCode, lerp, load, map, mul, mul, normalize, rotation, rotationDegrees, set, set, setX, setY, setZ, sub, toString, transform, transform, x, y, z
-
Field Details
-
level
public net.minecraft.world.level.Level level
-
-
Constructor Details
-
WorldlyPosition
public WorldlyPosition(float x, float y, float z, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos realLocation) -
WorldlyPosition
public WorldlyPosition(float x, float y, float z, net.minecraft.world.level.Level level) -
WorldlyPosition
public WorldlyPosition()
-
-
Method Details
-
of
public static WorldlyPosition of(net.minecraft.core.BlockPos pos, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos realLocation) -
of
public static WorldlyPosition of(net.minecraft.core.BlockPos pos, net.minecraft.world.level.Level level) -
of
public static WorldlyPosition of(com.mojang.math.Vector3f pos, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos realLocation) -
of
public static WorldlyPosition of(com.mojang.math.Vector3f pos, net.minecraft.world.level.Level level) -
position
public com.mojang.math.Vector3f position() -
equals
-
blockPos
public net.minecraft.core.BlockPos blockPos() -
realLocation
public net.minecraft.core.BlockPos realLocation() -
dimensionScaled
public com.mojang.math.Vector3f dimensionScaled() -
distance
-
rawDistance
-
rawDistance
public float rawDistance(float x, float y, float z) -
isClientSide
public boolean isClientSide()
-