Uses of Enum Class
net.minecraft.core.Direction.Axis
Package
Description
-
Uses of Direction.Axis in com.mojang.math
-
Uses of Direction.Axis in net.minecraft
Modifier and TypeMethodDescriptionstatic BlockUtil.FoundRectangle
BlockUtil.getLargestRectangleAround
(BlockPos p_124335_, Direction.Axis p_124336_, int p_124337_, Direction.Axis p_124338_, int p_124339_, Predicate<BlockPos> p_124340_) -
Uses of Direction.Axis in net.minecraft.client.renderer.block.model
Modifier and TypeFieldDescriptionprivate final Direction.Axis
BlockElementRotation.axis
The field for theaxis
record component.Modifier and TypeMethodDescriptionBlockElementRotation.axis()
Returns the value of theaxis
record component.private Direction.Axis
BlockElement.Deserializer.getAxis
(com.google.gson.JsonObject p_111345_) ModifierConstructorDescriptionBlockElementRotation
(org.joml.Vector3f origin, Direction.Axis axis, float angle, boolean rescale) Creates an instance of aBlockElementRotation
record class. -
Uses of Direction.Axis in net.minecraft.commands.arguments.coordinates
Modifier and TypeMethodDescriptionstatic EnumSet
<Direction.Axis> SwizzleArgument.getSwizzle
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_120811_, String p_120812_) SwizzleArgument.parse
(com.mojang.brigadier.StringReader p_120809_) -
Uses of Direction.Axis in net.minecraft.core
Modifier and TypeFieldDescriptionprivate final Direction.Axis
Direction.axis
private final Direction.Axis[]
Direction.Plane.axis
static final Direction.Axis[]
AxisCycle.AXIS_VALUES
static final Direction.Axis[]
Direction.Axis.VALUES
Modifier and TypeFieldDescriptionstatic final StringRepresentable.EnumCodec
<Direction.Axis> Direction.Axis.CODEC
Modifier and TypeMethodDescriptionstatic Direction.Axis
abstract Direction.Axis
AxisCycle.cycle
(Direction.Axis p_121798_) Direction.getAxis()
static Direction.Axis
Direction.Axis.getRandom
(RandomSource p_235689_) Direction.Plane.getRandomAxis
(RandomSource p_235693_) 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 AxisCycle
AxisCycle.between
(Direction.Axis p_121800_, Direction.Axis p_121801_) BlockPos.MutableBlockPos.clamp
(Direction.Axis p_122148_, int p_122149_, int p_122150_) abstract double
AxisCycle.cycle
(double p_175236_, double p_175237_, double p_175238_, Direction.Axis p_175239_) abstract int
AxisCycle.cycle
(int p_121794_, int p_121795_, int p_121796_, Direction.Axis p_121797_) abstract Direction.Axis
AxisCycle.cycle
(Direction.Axis p_121798_) static Direction
Direction.fromAxisAndDirection
(Direction.Axis p_122388_, Direction.AxisDirection p_122389_) static Direction
Direction.get
(Direction.AxisDirection p_122391_, Direction.Axis p_122392_) int
Vec3i.get
(Direction.Axis p_123305_) Direction.getClockWise
(Direction.Axis p_175363_) Direction.getCounterClockWise
(Direction.Axis p_175365_) static Direction
Direction.getFacingAxis
(Entity p_175358_, Direction.Axis p_175359_) BlockPos.MutableBlockPos.relative
(Direction.Axis p_122145_, int p_122146_) BlockPos.relative
(Direction.Axis p_121943_, int p_121944_) Vec3i.relative
(Direction.Axis p_175590_, int p_175591_) ModifierConstructorDescriptionprivate
Direction
(int p_122356_, int p_122357_, int p_122358_, String p_122359_, Direction.AxisDirection p_122360_, Direction.Axis p_122361_, Vec3i p_122362_) private
Plane
(Direction[] p_122555_, Direction.Axis[] p_122556_) -
Uses of Direction.Axis in net.minecraft.util
Modifier and TypeMethodDescriptionstatic void
ParticleUtils.spawnParticlesAlongAxis
(Direction.Axis p_144968_, Level p_144969_, BlockPos p_144970_, double p_144971_, ParticleOptions p_144972_, UniformInt p_144973_) -
Uses of Direction.Axis in net.minecraft.world.entity
Modifier and TypeMethodDescriptionprivate double
Entity.applyPistonMovementRestriction
(Direction.Axis p_20043_, double p_20044_) Entity.getRelativePortalPosition
(Direction.Axis p_20045_, BlockUtil.FoundRectangle p_20046_) LivingEntity.getRelativePortalPosition
(Direction.Axis p_21085_, BlockUtil.FoundRectangle p_21086_) -
Uses of Direction.Axis in net.minecraft.world.entity.projectile
Modifier and TypeMethodDescriptionprivate void
ShulkerBullet.selectNextMoveDirection
(Direction.Axis p_37349_) ModifierConstructorDescriptionShulkerBullet
(Level p_37330_, LivingEntity p_37331_, Entity p_37332_, Direction.Axis p_37333_) -
Uses of Direction.Axis in net.minecraft.world.entity.vehicle
Modifier and TypeMethodDescriptionAbstractMinecart.getRelativePortalPosition
(Direction.Axis p_38132_, BlockUtil.FoundRectangle p_38133_) Boat.getRelativePortalPosition
(Direction.Axis p_38335_, BlockUtil.FoundRectangle p_38336_) -
Uses of Direction.Axis in net.minecraft.world.level.block
Modifier and TypeFieldDescriptionstatic final EnumProperty
<Direction.Axis> NetherPortalBlock.AXIS
static final EnumProperty
<Direction.Axis> RotatedPillarBlock.AXIS
Modifier and TypeMethodDescriptionprivate static DimensionTransition
NetherPortalBlock.createDimensionTransition
(ServerLevel p_350955_, BlockUtil.FoundRectangle p_350865_, Direction.Axis p_351013_, Vec3 p_351020_, Entity p_350578_, Vec3 p_350266_, float p_350648_, float p_350338_, DimensionTransition.PostDimensionTransition p_352441_) -
Uses of Direction.Axis in net.minecraft.world.level.block.state.properties
Modifier and TypeFieldDescriptionstatic final EnumProperty
<Direction.Axis> BlockStateProperties.AXIS
static final EnumProperty
<Direction.Axis> BlockStateProperties.HORIZONTAL_AXIS
-
Uses of Direction.Axis in net.minecraft.world.level.levelgen.feature.trunkplacers
Modifier and TypeMethodDescriptionprivate Direction.Axis
FancyTrunkPlacer.getLogAxis
(BlockPos p_70130_, BlockPos p_70131_) -
Uses of Direction.Axis in net.minecraft.world.level.levelgen.structure.templatesystem
ModifierConstructorDescriptionAxisAlignedLinearPosTest
(float p_73970_, float p_73971_, int p_73972_, int p_73973_, Direction.Axis p_73974_) -
Uses of Direction.Axis in net.minecraft.world.level.portal
Modifier and TypeMethodDescriptionPortalForcer.createPortal
(BlockPos p_77667_, Direction.Axis p_77668_) static Optional
<PortalShape> PortalShape.findEmptyPortalShape
(LevelAccessor p_77709_, BlockPos p_77710_, Direction.Axis p_77711_) static Optional
<PortalShape> PortalShape.findPortalShape
(LevelAccessor p_77713_, BlockPos p_77714_, Predicate<PortalShape> p_77715_, Direction.Axis p_77716_) static Vec3
PortalShape.getRelativePosition
(BlockUtil.FoundRectangle p_77739_, Direction.Axis p_77740_, Vec3 p_77741_, EntityDimensions p_77742_) ModifierConstructorDescriptionPortalShape
(LevelAccessor p_77695_, BlockPos p_77696_, Direction.Axis p_77697_) -
Uses of Direction.Axis in net.minecraft.world.phys
Modifier and TypeMethodDescriptiondouble
Vec3.get
(Direction.Axis p_82508_) double
AABB.max
(Direction.Axis p_82375_) double
AABB.min
(Direction.Axis p_82341_) Vec3.with
(Direction.Axis p_193104_, double p_193105_) -
Uses of Direction.Axis in net.minecraft.world.phys.shapes
Modifier and TypeFieldDescriptionprivate final Direction.Axis
SliceShape.axis
private static final Direction.Axis[]
DiscreteVoxelShape.AXIS_VALUES
Modifier and TypeMethodDescriptionprivate int
SubShape.clampToShape
(Direction.Axis p_166057_, int p_166058_) static double
Shapes.collide
(Direction.Axis p_193136_, AABB p_193137_, Iterable<VoxelShape> p_193138_, double p_193139_) double
VoxelShape.collide
(Direction.Axis p_83260_, AABB p_83261_, double p_83262_) protected int
CubeVoxelShape.findIndex
(Direction.Axis p_82769_, double p_82770_) protected int
VoxelShape.findIndex
(Direction.Axis p_83250_, double p_83251_) int
BitSetDiscreteVoxelShape.firstFull
(Direction.Axis p_82674_) abstract int
DiscreteVoxelShape.firstFull
(Direction.Axis p_82827_) int
DiscreteVoxelShape.firstFull
(Direction.Axis p_165995_, int p_165996_, int p_165997_) int
SubShape.firstFull
(Direction.Axis p_83204_) protected double
VoxelShape.get
(Direction.Axis p_83257_, int p_83258_) it.unimi.dsi.fastutil.doubles.DoubleList
ArrayVoxelShape.getCoords
(Direction.Axis p_82577_) it.unimi.dsi.fastutil.doubles.DoubleList
CubeVoxelShape.getCoords
(Direction.Axis p_82767_) it.unimi.dsi.fastutil.doubles.DoubleList
SliceShape.getCoords
(Direction.Axis p_83181_) abstract it.unimi.dsi.fastutil.doubles.DoubleList
VoxelShape.getCoords
(Direction.Axis p_83249_) int
DiscreteVoxelShape.getSize
(Direction.Axis p_82851_) int
BitSetDiscreteVoxelShape.lastFull
(Direction.Axis p_82680_) abstract int
DiscreteVoxelShape.lastFull
(Direction.Axis p_82840_) int
DiscreteVoxelShape.lastFull
(Direction.Axis p_82842_, int p_82843_, int p_82844_) int
SubShape.lastFull
(Direction.Axis p_83210_) private static DiscreteVoxelShape
SliceShape.makeSlice
(DiscreteVoxelShape p_83177_, Direction.Axis p_83178_, int p_83179_) double
VoxelShape.max
(Direction.Axis p_83298_) double
VoxelShape.max
(Direction.Axis p_83291_, double p_83292_, double p_83293_) double
VoxelShape.min
(Direction.Axis p_83289_) double
VoxelShape.min
(Direction.Axis p_166079_, double p_166080_, double p_166081_) ModifierConstructorDescriptionSliceShape
(VoxelShape p_83173_, Direction.Axis p_83174_, int p_83175_) -
Uses of Direction.Axis in net.neoforged.neoforge.client.model.generators
Modifier and TypeFieldDescriptionprivate Direction.Axis
ModelBuilder.ElementBuilder.RotationBuilder.axis
Modifier and TypeMethodDescriptionModelBuilder.ElementBuilder.RotationBuilder.axis
(Direction.Axis axis)