Uses of Class
net.minecraft.util.math.Direction.Axis
-
Uses of Direction.Axis in net.minecraft.block
Fields in net.minecraft.block with type parameters of type Direction.Axis Modifier and Type Field Description static EnumProperty<Direction.Axis>
NetherPortalBlock. AXIS
static EnumProperty<Direction.Axis>
PillarBlock. AXIS
Methods in net.minecraft.block with parameters of type Direction.Axis Modifier and Type Method Description static double
LightningRodBlock. method_35282(Random random, Direction.Axis axis, double double2, Direction.Axis axis2)
-
Uses of Direction.Axis in net.minecraft.client.render.model.json
Fields in net.minecraft.client.render.model.json declared as Direction.Axis Modifier and Type Field Description Direction.Axis
ModelRotation. axis
Methods in net.minecraft.client.render.model.json that return Direction.Axis Modifier and Type Method Description private Direction.Axis
ModelElement.Deserializer. deserializeAxis(JsonObject object)
Constructors in net.minecraft.client.render.model.json with parameters of type Direction.Axis Constructor Description ModelRotation(Vec3f origin, Direction.Axis axis, float angle, boolean rescale)
-
Uses of Direction.Axis in net.minecraft.client.util
Methods in net.minecraft.client.util with parameters of type Direction.Axis Modifier and Type Method Description static void
ParticleUtil. spawnParticle(Direction.Axis axis, World world, BlockPos pos, double variance, ParticleEffect effect, UniformIntProvider range)
-
Uses of Direction.Axis in net.minecraft.command.argument
Methods in net.minecraft.command.argument that return types with arguments of type Direction.Axis Modifier and Type Method Description static EnumSet<Direction.Axis>
SwizzleArgumentType. getSwizzle(com.mojang.brigadier.context.CommandContext<ServerCommandSource> commandContext, String string)
EnumSet<Direction.Axis>
SwizzleArgumentType. parse(com.mojang.brigadier.StringReader stringReader)
-
Uses of Direction.Axis in net.minecraft.entity
Methods in net.minecraft.entity with parameters of type Direction.Axis Modifier and Type Method Description private double
Entity. calculatePistonMovementFactor(Direction.Axis axis, double offsetFactor)
protected Vec3d
Entity. positionInPortal(Direction.Axis portalAxis, PortalUtil.Rectangle portalRect)
protected Vec3d
LivingEntity. positionInPortal(Direction.Axis portalAxis, PortalUtil.Rectangle portalRect)
-
Uses of Direction.Axis in net.minecraft.entity.projectile
Methods in net.minecraft.entity.projectile with parameters of type Direction.Axis Modifier and Type Method Description private void
ShulkerBulletEntity. method_7486(Direction.Axis axis)
Constructors in net.minecraft.entity.projectile with parameters of type Direction.Axis Constructor Description ShulkerBulletEntity(World world, LivingEntity owner, Entity target, Direction.Axis axis)
-
Uses of Direction.Axis in net.minecraft.entity.vehicle
Methods in net.minecraft.entity.vehicle with parameters of type Direction.Axis Modifier and Type Method Description protected Vec3d
AbstractMinecartEntity. positionInPortal(Direction.Axis portalAxis, PortalUtil.Rectangle portalRect)
protected Vec3d
BoatEntity. positionInPortal(Direction.Axis portalAxis, PortalUtil.Rectangle portalRect)
-
Uses of Direction.Axis in net.minecraft.state.property
Fields in net.minecraft.state.property with type parameters of type Direction.Axis Modifier and Type Field Description static EnumProperty<Direction.Axis>
Properties. AXIS
A property that specifies the axis a block is oriented to.static EnumProperty<Direction.Axis>
Properties. HORIZONTAL_AXIS
A property that specifies the axis a block is oriented to. -
Uses of Direction.Axis in net.minecraft.structure.rule
Fields in net.minecraft.structure.rule declared as Direction.Axis Modifier and Type Field Description private Direction.Axis
AxisAlignedLinearPosRuleTest. axis
Constructors in net.minecraft.structure.rule with parameters of type Direction.Axis Constructor Description AxisAlignedLinearPosRuleTest(float minChance, float maxChance, int minDistance, int maxDistance, Direction.Axis axis)
-
Uses of Direction.Axis in net.minecraft.util.math
Fields in net.minecraft.util.math declared as Direction.Axis Modifier and Type Field Description static Direction.Axis[]
AxisCycleDirection. AXES
private Direction.Axis
Direction. axis
private Direction.Axis[]
Direction.Type. axisArray
static Direction.Axis[]
Direction.Axis. VALUES
Fields in net.minecraft.util.math with type parameters of type Direction.Axis Modifier and Type Field Description private static Map<String,Direction.Axis>
Direction.Axis. BY_NAME
static com.mojang.serialization.Codec<Direction.Axis>
Direction.Axis. CODEC
Methods in net.minecraft.util.math that return Direction.Axis Modifier and Type Method Description abstract Direction.Axis
AxisCycleDirection. cycle(Direction.Axis axis)
static @Nullable Direction.Axis
Direction.Axis. fromName(String name)
Direction.Axis
Direction. getAxis()
static Direction.Axis
Direction.Axis. pickRandomAxis(Random random)
Direction.Axis
Direction.Type. randomAxis(Random random)
static Direction.Axis
Direction.Axis. valueOf(String name)
Returns the enum constant of this type with the specified name.static Direction.Axis[]
Direction.Axis. values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods in net.minecraft.util.math with parameters of type Direction.Axis Modifier and Type Method Description static AxisCycleDirection
AxisCycleDirection. between(Direction.Axis from, Direction.Axis to)
abstract int
AxisCycleDirection. choose(int x, int y, int z, Direction.Axis axis)
BlockPos.Mutable
BlockPos.Mutable. clamp(Direction.Axis axis, int min, int max)
Clamps the component corresponding to the givenaxis
betweenmin
andmax
.abstract Direction.Axis
AxisCycleDirection. cycle(Direction.Axis axis)
static Direction
Direction. from(Direction.Axis axis, Direction.AxisDirection direction)
static Direction
Direction. get(Direction.AxisDirection direction, Direction.Axis axis)
double
Vec3d. getComponentAlongAxis(Direction.Axis axis)
int
Vec3i. getComponentAlongAxis(Direction.Axis axis)
static Direction
Direction. getLookDirectionForAxis(Entity entity, Direction.Axis axis)
double
Box. getMax(Direction.Axis axis)
double
Box. getMin(Direction.Axis axis)
abstract double
AxisCycleDirection. method_35819(double double2, double double3, double double4, Direction.Axis axis)
Direction
Direction. method_35833(Direction.Axis axis)
Direction
Direction. method_35834(Direction.Axis axis)
BlockPos
BlockPos.Mutable. offset(Direction.Axis axis, int int2)
BlockPos
BlockPos. offset(Direction.Axis axis, int int2)
Vec3i
Vec3i. offset(Direction.Axis axis, int distance)
boolean
DirectionTransformation. shouldFlipDirection(Direction.Axis axis)
Method parameters in net.minecraft.util.math with type arguments of type Direction.Axis Modifier and Type Method Description Vec3d
Vec3d. floorAlongAxes(EnumSet<Direction.Axis> axes)
Constructors in net.minecraft.util.math with parameters of type Direction.Axis Constructor Description Direction(int id, int idOpposite, int idHorizontal, String name, Direction.AxisDirection direction, Direction.Axis axis, Vec3i vector)
Type(Direction[] facingArray, Direction.Axis[] axisArray)
-
Uses of Direction.Axis in net.minecraft.util.shape
Fields in net.minecraft.util.shape declared as Direction.Axis Modifier and Type Field Description private static Direction.Axis[]
VoxelSet. AXES
private Direction.Axis
SlicedVoxelShape. axis
Methods in net.minecraft.util.shape with parameters of type Direction.Axis Modifier and Type Method Description double
VoxelShape. calculateMaxDistance(Direction.Axis axis, Box box, double maxDist)
static double
VoxelShapes. calculateMaxOffset(Direction.Axis axis, Box box, Stream<VoxelShape> shapes, double maxDist)
static double
VoxelShapes. calculatePushVelocity(Direction.Axis axis, Box box, WorldView world, double initial, ShapeContext context, Stream<VoxelShape> shapes)
private int
CroppedVoxelSet. clamp(Direction.Axis axis, int value)
private static VoxelSet
SlicedVoxelShape. createVoxelSet(VoxelSet voxelSet, Direction.Axis axis, int sliceWidth)
protected int
SimpleVoxelShape. getCoordIndex(Direction.Axis axis, double coord)
protected int
VoxelShape. getCoordIndex(Direction.Axis axis, double coord)
int
VoxelSet. getEndingAxisCoord(Direction.Axis axis, int from, int to)
double
VoxelShape. getEndingCoord(Direction.Axis axis, double from, double to)
int
BitSetVoxelSet. getMax(Direction.Axis axis)
int
CroppedVoxelSet. getMax(Direction.Axis axis)
abstract int
VoxelSet. getMax(Direction.Axis axis)
double
VoxelShape. getMax(Direction.Axis axis)
int
BitSetVoxelSet. getMin(Direction.Axis axis)
int
CroppedVoxelSet. getMin(Direction.Axis axis)
abstract int
VoxelSet. getMin(Direction.Axis axis)
double
VoxelShape. getMin(Direction.Axis axis)
protected double
VoxelShape. getPointPosition(Direction.Axis axis, int index)
protected DoubleList
ArrayVoxelShape. getPointPositions(Direction.Axis axis)
protected DoubleList
SimpleVoxelShape. getPointPositions(Direction.Axis axis)
protected DoubleList
SlicedVoxelShape. getPointPositions(Direction.Axis axis)
protected abstract DoubleList
VoxelShape. getPointPositions(Direction.Axis axis)
int
VoxelSet. getSize(Direction.Axis axis)
int
VoxelSet. method_35592(Direction.Axis axis, int int2, int int3)
double
VoxelShape. method_35593(Direction.Axis axis, double double2, double double3)
Constructors in net.minecraft.util.shape with parameters of type Direction.Axis Constructor Description SlicedVoxelShape(VoxelShape shape, Direction.Axis axis, int sliceWidth)
-
Uses of Direction.Axis in net.minecraft.world
Methods in net.minecraft.world with parameters of type Direction.Axis Modifier and Type Method Description Optional<PortalUtil.Rectangle>
PortalForcer. createPortal(BlockPos blockPos, Direction.Axis axis)
static PortalUtil.Rectangle
PortalUtil. getLargestRectangle(BlockPos center, Direction.Axis primaryAxis, int primaryMaxBlocks, Direction.Axis secondaryAxis, int secondaryMaxBlocks, Predicate<BlockPos> predicate)
Gets the largest rectangle of blocks along two axes for which all blocks meet a predicate. -
Uses of Direction.Axis in net.minecraft.world.dimension
Fields in net.minecraft.world.dimension declared as Direction.Axis Modifier and Type Field Description private Direction.Axis
AreaHelper. axis
Methods in net.minecraft.world.dimension with parameters of type Direction.Axis Modifier and Type Method Description static Vec3d
AreaHelper. entityPosInPortal(PortalUtil.Rectangle portalRect, Direction.Axis portalAxis, Vec3d entityPos, EntityDimensions entityDimensions)
static TeleportTarget
AreaHelper. getNetherTeleportTarget(ServerWorld destination, PortalUtil.Rectangle portalRect, Direction.Axis portalAxis, Vec3d offset, EntityDimensions dimensions, Vec3d velocity, float yaw, float pitch)
static Optional<AreaHelper>
AreaHelper. getNewPortal(WorldAccess world, BlockPos pos, Direction.Axis axis)
static Optional<AreaHelper>
AreaHelper. getOrEmpty(WorldAccess world, BlockPos pos, Predicate<AreaHelper> predicate, Direction.Axis axis)
Constructors in net.minecraft.world.dimension with parameters of type Direction.Axis Constructor Description AreaHelper(WorldAccess world, BlockPos pos, Direction.Axis axis)
-
Uses of Direction.Axis in net.minecraft.world.gen.trunk
Methods in net.minecraft.world.gen.trunk that return Direction.Axis Modifier and Type Method Description private Direction.Axis
LargeOakTrunkPlacer. getLogAxis(BlockPos branchStart, BlockPos branchEnd)