Uses of Enum Class
net.minecraft.util.math.Direction.Axis
Package
Description
-
Uses of Direction.Axis in net.minecraft.block
Modifier and TypeFieldDescriptionstatic final EnumProperty<Direction.Axis>
NetherPortalBlock.AXIS
static final EnumProperty<Direction.Axis>
PillarBlock.AXIS
-
Uses of Direction.Axis in net.minecraft.client.render.model.json
Modifier and TypeFieldDescriptionprivate final Direction.Axis
ModelRotation.axis
The field for theaxis
record component.Modifier and TypeMethodDescriptionModelRotation.axis()
Returns the value of theaxis
record component.private Direction.Axis
ModelElement.Deserializer.deserializeAxis
(JsonObject object) ModifierConstructorDescriptionModelRotation
(Vector3f vector3f, Direction.Axis axis, float angle, boolean rescale) -
Uses of Direction.Axis in net.minecraft.client.util
Modifier and TypeMethodDescriptionstatic 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
Modifier and TypeMethodDescriptionstatic EnumSet<Direction.Axis>
SwizzleArgumentType.getSwizzle
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) SwizzleArgumentType.parse
(com.mojang.brigadier.StringReader stringReader) -
Uses of Direction.Axis in net.minecraft.entity
Modifier and TypeMethodDescriptionprivate double
Entity.calculatePistonMovementFactor
(Direction.Axis axis, double offsetFactor) protected Vec3d
Entity.positionInPortal
(Direction.Axis portalAxis, BlockLocating.Rectangle portalRect) Returns the entity's position in the portal after teleportation.protected Vec3d
LivingEntity.positionInPortal
(Direction.Axis portalAxis, BlockLocating.Rectangle portalRect) Returns the entity's position in the portal after teleportation. -
Uses of Direction.Axis in net.minecraft.entity.projectile
Modifier and TypeMethodDescriptionprivate void
ShulkerBulletEntity.changeTargetDirection
(Direction.Axis axis) ModifierConstructorDescriptionShulkerBulletEntity
(World world, LivingEntity owner, Entity target, Direction.Axis axis) -
Uses of Direction.Axis in net.minecraft.entity.vehicle
Modifier and TypeMethodDescriptionprotected Vec3d
AbstractMinecartEntity.positionInPortal
(Direction.Axis portalAxis, BlockLocating.Rectangle portalRect) Returns the entity's position in the portal after teleportation.protected Vec3d
BoatEntity.positionInPortal
(Direction.Axis portalAxis, BlockLocating.Rectangle portalRect) Returns the entity's position in the portal after teleportation. -
Uses of Direction.Axis in net.minecraft.state.property
Modifier and TypeFieldDescriptionstatic final EnumProperty<Direction.Axis>
Properties.AXIS
A property that specifies the axis a block is oriented to.static final 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
ModifierConstructorDescriptionAxisAlignedLinearPosRuleTest
(float minChance, float maxChance, int minDistance, int maxDistance, Direction.Axis axis) -
Uses of Direction.Axis in net.minecraft.util.math
Modifier and TypeFieldDescriptionstatic final Direction.Axis[]
AxisCycleDirection.AXES
private final Direction.Axis
Direction.axis
private final Direction.Axis[]
Direction.Type.axisArray
static final Direction.Axis[]
Direction.Axis.VALUES
Modifier and TypeFieldDescriptionstatic final StringIdentifiable.Codec<Direction.Axis>
Direction.Axis.CODEC
Modifier and TypeMethodDescriptionabstract Direction.Axis
AxisCycleDirection.cycle
(Direction.Axis axis) static @Nullable Direction.Axis
Direction.getAxis()
static Direction.Axis
Direction.Axis.pickRandomAxis
(Random random) Direction.Type.randomAxis
(Random random) static Direction.Axis
Returns the enum constant of this class with the specified name.static Direction.Axis[]
Direction.Axis.values()
Returns an array containing the constants of this enum class, in the order they are declared.Modifier and TypeMethodDescriptionstatic AxisCycleDirection
AxisCycleDirection.between
(Direction.Axis from, Direction.Axis to) abstract double
AxisCycleDirection.choose
(double x, double y, double z, Direction.Axis axis) abstract int
AxisCycleDirection.choose
(int x, int y, int z, Direction.Axis axis) 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) Returns the coordinate chosen by the given axis.int
Vec3i.getComponentAlongAxis
(Direction.Axis axis) Returns the component on theaxis
axis.static Direction
Direction.getLookDirectionForAxis
(Entity entity, Direction.Axis axis) double
Box.getMax
(Direction.Axis axis) Returns the maximum coordinate for the givenaxis
of this box.double
Box.getMin
(Direction.Axis axis) Returns the minimum coordinate for the givenaxis
of this box.BlockPos.Mutable.offset
(Direction.Axis axis, int int2) BlockPos.offset
(Direction.Axis axis, int int2) Vec3i.offset
(Direction.Axis axis, int distance) Returns a vector which is offset bydistance
onaxis
axis.Direction.rotateClockwise
(Direction.Axis axis) Direction.rotateCounterclockwise
(Direction.Axis axis) boolean
DirectionTransformation.shouldFlipDirection
(Direction.Axis axis) Vec3d.withAxis
(Direction.Axis axis, double value) Modifier and TypeMethodDescriptionVec3d.floorAlongAxes
(EnumSet<Direction.Axis> axes) Applies the floor function to the coordinates chosen by the given axes.ModifierConstructorDescriptionprivate
Direction
(int id, int idOpposite, int idHorizontal, String name, Direction.AxisDirection direction, Direction.Axis axis, Vec3i vector) private
Type
(Direction[] facingArray, Direction.Axis[] axisArray) -
Uses of Direction.Axis in net.minecraft.util.shape
Modifier and TypeFieldDescriptionprivate static final Direction.Axis[]
VoxelSet.AXES
private final Direction.Axis
SlicedVoxelShape.axis
Modifier and TypeMethodDescriptiondouble
VoxelShape.calculateMaxDistance
(Direction.Axis axis, Box box, double maxDist) static double
VoxelShapes.calculateMaxOffset
(Direction.Axis axis, Box box, Iterable<VoxelShape> shapes, double maxDist) 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.getStartingAxisCoord
(Direction.Axis axis, int from, int to) double
VoxelShape.getStartingCoord
(Direction.Axis axis, double from, double to) ModifierConstructorDescriptionSlicedVoxelShape
(VoxelShape shape, Direction.Axis axis, int sliceWidth) -
Uses of Direction.Axis in net.minecraft.world
Modifier and TypeMethodDescriptionPortalForcer.createPortal
(BlockPos pos, Direction.Axis axis) static BlockLocating.Rectangle
BlockLocating.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
Modifier and TypeMethodDescriptionstatic Vec3d
NetherPortal.entityPosInPortal
(BlockLocating.Rectangle portalRect, Direction.Axis portalAxis, Vec3d entityPos, EntityDimensions entityDimensions) static TeleportTarget
NetherPortal.getNetherTeleportTarget
(ServerWorld destination, BlockLocating.Rectangle portalRect, Direction.Axis portalAxis, Vec3d offset, Entity entity, Vec3d velocity, float yaw, float pitch) Determines aTeleportTarget
based on a specific portal.static Optional<NetherPortal>
NetherPortal.getNewPortal
(WorldAccess world, BlockPos pos, Direction.Axis axis) static Optional<NetherPortal>
NetherPortal.getOrEmpty
(WorldAccess world, BlockPos pos, Predicate<NetherPortal> validator, Direction.Axis axis) -
Uses of Direction.Axis in net.minecraft.world.gen.trunk
Modifier and TypeMethodDescriptionprivate Direction.Axis
LargeOakTrunkPlacer.getLogAxis
(BlockPos branchStart, BlockPos branchEnd)