Uses of Enum Class
net.minecraft.core.Direction
Packages that use Direction
Package
Description
-
Uses of Direction in com.mojang.math
Fields in com.mojang.math with type parameters of type DirectionModifier and TypeFieldDescriptionOctahedralGroup.rotatedDirections
OctahedralGroup.rotatedDirections
Methods in com.mojang.math that return DirectionMethods in com.mojang.math with parameters of type Direction -
Uses of Direction in net.minecraft
Methods in net.minecraft with parameters of type DirectionModifier and TypeMethodDescriptionprivate static int
BlockUtil.getLimit
(Predicate<BlockPos> pPosPredicate, BlockPos.MutableBlockPos pCenterPos, Direction pDirection, int pMax) Finds the distance we can travel in the given direction while the predicate returns trueBlockUtil.getTopConnectedBlock
(BlockGetter pGetter, BlockPos pPos, Block pBaseBlock, Direction pDirection, Block pEndBlock) -
Uses of Direction in net.minecraft.client.data.models
Fields in net.minecraft.client.data.models with type parameters of type DirectionModifier and TypeFieldDescriptionstatic final Map
<Direction, VariantMutator> BlockModelGenerators.MULTIFACE_GENERATOR
Methods in net.minecraft.client.data.models with parameters of type DirectionModifier and TypeMethodDescriptionBlockModelGenerators.createPointedDripstoneVariant
(Direction pDirection, DripstoneThickness pThickness) Method parameters in net.minecraft.client.data.models with type arguments of type DirectionModifier and TypeMethodDescriptionstatic <T extends Property<?>>
Map<T, VariantMutator> BlockModelGenerators.selectMultifaceProperties
(StateHolder<?, ?> pState, Function<Direction, T> pFacePropertyGetter) -
Uses of Direction in net.minecraft.client.model.geom
Constructors in net.minecraft.client.model.geom with parameters of type DirectionModifierConstructorDescriptionPolygon
(ModelPart.Vertex[] p_104362_, float p_104363_, float p_104364_, float p_104365_, float p_104366_, float p_104367_, float p_104368_, boolean p_104369_, Direction p_104370_) Constructor parameters in net.minecraft.client.model.geom with type arguments of type Direction -
Uses of Direction in net.minecraft.client.model.geom.builders
Fields in net.minecraft.client.model.geom.builders with type parameters of type DirectionMethod parameters in net.minecraft.client.model.geom.builders with type arguments of type DirectionModifier and TypeMethodDescriptionCubeListBuilder.addBox
(float pOriginX, float pOriginY, float pOriginZ, float pDimensionX, float pDimensionY, float pDimensionZ, Set<Direction> pVisibleFaces) Constructor parameters in net.minecraft.client.model.geom.builders with type arguments of type DirectionModifierConstructorDescriptionprotected
CubeDefinition
(String pComment, float pTexCoordU, float pTexCoordV, float pOriginX, float pOriginY, float pOriginZ, float pDimensionX, float pDimensionY, float pDimensionZ, CubeDeformation pGrow, boolean pMirror, float pTexScaleU, float pTexScaleV, Set<Direction> pVisibleFaces) -
Uses of Direction in net.minecraft.client.multiplayer
Methods in net.minecraft.client.multiplayer with parameters of type DirectionModifier and TypeMethodDescriptionboolean
MultiPlayerGameMode.continueDestroyBlock
(BlockPos pPosBlock, Direction pDirectionFacing) float
boolean
MultiPlayerGameMode.startDestroyBlock
(BlockPos pLoc, Direction pFace) Called when the player is hitting a block with an item. -
Uses of Direction in net.minecraft.client.particle
Methods in net.minecraft.client.particle with parameters of type Direction -
Uses of Direction in net.minecraft.client.renderer
Fields in net.minecraft.client.renderer declared as DirectionModifier and TypeFieldDescriptionprivate static final Direction[]
SectionOcclusionGraph.DIRECTIONS
Methods in net.minecraft.client.renderer with parameters of type DirectionModifier and TypeMethodDescription(package private) void
SectionOcclusionGraph.Node.addSourceDirection
(Direction pSourceDirection) private void
CloudRenderer.encodeFace
(ByteBuffer pBuffer, int pCellX, int pCellZ, Direction pFace, int pOffset) static FaceInfo
FaceInfo.fromFacing
(Direction pFacing) SectionOcclusionGraph.getRelativeFrom
(long pSectionPos, SectionRenderDispatcher.RenderSection pSection, Direction pDirection) (package private) boolean
SectionOcclusionGraph.Node.hasDirection
(Direction pDirection) static void
ShapeRenderer.renderFace
(PoseStack pPoseStack, VertexConsumer pBuffer, Direction pFace, float pX1, float pY1, float pZ1, float pX2, float pY2, float pZ2, float pRed, float pGreen, float pBlue, float pAlpha) (package private) void
SectionOcclusionGraph.Node.setDirections
(byte pCurrentValue, Direction pDirection) Constructors in net.minecraft.client.renderer with parameters of type DirectionModifierConstructorDescription(package private)
Node
(SectionRenderDispatcher.RenderSection pSection, Direction pSourceDirection, int pStep) -
Uses of Direction in net.minecraft.client.renderer.block
Fields in net.minecraft.client.renderer.block declared as DirectionModifier and TypeFieldDescriptionfinal Direction[]
ModelBlockRenderer.AdjacencyInfo.corners
private static final Direction[]
ModelBlockRenderer.DIRECTIONS
Methods in net.minecraft.client.renderer.block with parameters of type DirectionModifier and TypeMethodDescriptionvoid
ModelBlockRenderer.AmbientOcclusionRenderStorage.calculate
(BlockAndTintGetter pLevel, BlockState pState, BlockPos pPos, Direction pDirection, boolean pShade) private static void
ModelBlockRenderer.calculateShape
(BlockAndTintGetter pLevel, BlockState pState, BlockPos pPos, int[] pVertices, Direction pDirection, ModelBlockRenderer.CommonRenderStorage pRenderStorage) ModelBlockRenderer.AdjacencyInfo.fromFacing
(Direction pFacing) ModelBlockRenderer.AmbientVertexRemap.fromFacing
(Direction pFacing) private static boolean
LiquidBlockRenderer.isFaceOccludedByNeighbor
(Direction pFace, float pHeight, BlockState pState) private static boolean
LiquidBlockRenderer.isFaceOccludedBySelf
(BlockState pState, Direction pFace) private static boolean
LiquidBlockRenderer.isFaceOccludedByState
(Direction pFace, float pHeight, BlockState pState) private static boolean
LiquidBlockRenderer.isNeighborStateHidingOverlay
(FluidState selfState, BlockState otherState, Direction neighborFace) static boolean
LiquidBlockRenderer.shouldRenderFace
(FluidState fluidState, BlockState selfState, Direction direction, BlockState otherState) static boolean
LiquidBlockRenderer.shouldRenderFace
(FluidState pFluidState, BlockState pBlockState, Direction pSide, FluidState pNeighborFluid) Deprecated.Neo: use overload that accepts BlockStateprotected static boolean
ModelBlockRenderer.shouldRenderFace
(BlockAndTintGetter p_412640_, BlockPos pos, BlockState p_412168_, boolean p_412054_, Direction p_412130_, BlockPos p_412608_) private static boolean
ModelBlockRenderer.shouldRenderFace
(BlockAndTintGetter pLevel, BlockState pState, boolean pCheckSides, Direction pFace, BlockPos pPos) Deprecated.Constructors in net.minecraft.client.renderer.block with parameters of type DirectionModifierConstructorDescriptionprivate
AdjacencyInfo
(Direction[] pCorners, float pShadeBrightness, boolean pDoNonCubicWeight, ModelBlockRenderer.SizeInfo[] pVert0Weights, ModelBlockRenderer.SizeInfo[] pVert1Weights, ModelBlockRenderer.SizeInfo[] pVert2Weights, ModelBlockRenderer.SizeInfo[] pVert3Weights) -
Uses of Direction in net.minecraft.client.renderer.block.model
Fields in net.minecraft.client.renderer.block.model declared as DirectionModifier and TypeFieldDescriptionprivate final Direction
BlockElementFace.cullForDirection
The field for thecullForDirection
record component.private final Direction
BakedQuad.direction
The field for thedirection
record component.private final Direction
ItemModelGenerator.SpanFacing.direction
Fields in net.minecraft.client.renderer.block.model with type parameters of type DirectionModifier and TypeFieldDescriptionprivate final Map
<Direction, BlockElementFace> BlockElement.faces
The field for thefaces
record component.Methods in net.minecraft.client.renderer.block.model that return DirectionModifier and TypeMethodDescriptionprivate static Direction
FaceBakery.calculateFacing
(int[] pFaceData) BlockElementFace.cullForDirection()
Returns the value of thecullForDirection
record component.BakedQuad.direction()
Returns the value of thedirection
record component.private static Direction
BlockElementFace.Deserializer.getCullFacing
(com.google.gson.JsonObject p_111373_) ItemModelGenerator.SpanFacing.getDirection()
private Direction
Methods in net.minecraft.client.renderer.block.model that return types with arguments of type DirectionModifier and TypeMethodDescriptionBlockElement.faces()
Returns the value of thefaces
record component.private Map
<Direction, BlockElementFace> BlockElement.Deserializer.filterNullFromFaces
(com.google.gson.JsonDeserializationContext p_111340_, com.google.gson.JsonObject p_111341_) private Map
<Direction, BlockElementFace> BlockElement.Deserializer.getFaces
(com.google.gson.JsonDeserializationContext p_111326_, com.google.gson.JsonObject p_111327_) Methods in net.minecraft.client.renderer.block.model with parameters of type DirectionModifier and TypeMethodDescriptionstatic BakedQuad
SimpleUnbakedGeometry.bakeFace
(BlockElement pElement, BlockElementFace pFace, TextureAtlasSprite pSprite, Direction pDirection, ModelState pModelState) static BakedQuad
FaceBakery.bakeQuad
(org.joml.Vector3fc p_404957_, org.joml.Vector3fc p_405340_, BlockElementFace p_111603_, TextureAtlasSprite p_111604_, Direction p_111605_, ModelState p_111606_, BlockElementRotation p_111607_, boolean p_111608_, int p_364857_) static BlockElementFace.UVs
FaceBakery.defaultFaceUV
(org.joml.Vector3fc p_404839_, org.joml.Vector3fc p_405755_, Direction p_404690_) private static int[]
FaceBakery.makeVertices
(BlockElementFace.UVs p_405062_, Quadrant p_405779_, org.joml.Matrix4fc p_404746_, TextureAtlasSprite p_111575_, Direction p_111576_, float[] p_111577_, Transformation p_111578_, BlockElementRotation p_111579_) private static void
FaceBakery.recalculateWinding
(int[] pVertices, Direction pDirection) Constructors in net.minecraft.client.renderer.block.model with parameters of type DirectionModifierConstructorDescriptionBakedQuad
(int[] vertices, int tintIndex, Direction direction, TextureAtlasSprite sprite, boolean shade, int lightEmission) BakedQuad
(int[] vertices, int tintIndex, Direction direction, TextureAtlasSprite sprite, boolean shade, int lightEmission, boolean hasAmbientOcclusion) Creates an instance of aBakedQuad
record class.BlockElementFace
(Direction cullForDirection, int tintIndex, String texture, BlockElementFace.UVs uvs, Quadrant rotation) BlockElementFace
(Direction cullForDirection, int tintIndex, String texture, BlockElementFace.UVs uvs, Quadrant rotation, ExtraFaceData faceData, org.apache.commons.lang3.mutable.MutableObject<BlockElement> parent) Creates an instance of aBlockElementFace
record class.private
SpanFacing
(Direction pDirection, int pXOffset, int pYOffset) Constructor parameters in net.minecraft.client.renderer.block.model with type arguments of type DirectionModifierConstructorDescriptionBlockElement
(org.joml.Vector3fc p_405527_, org.joml.Vector3fc p_405454_, Map<Direction, BlockElementFace> p_362722_) BlockElement
(org.joml.Vector3fc from, org.joml.Vector3fc to, Map<Direction, BlockElementFace> faces, BlockElementRotation rotation, boolean shade, int lightEmission) BlockElement
(org.joml.Vector3fc from, org.joml.Vector3fc to, Map<Direction, BlockElementFace> faces, BlockElementRotation rotation, boolean shade, int lightEmission, ExtraFaceData faceData) Creates an instance of aBlockElement
record class. -
Uses of Direction in net.minecraft.client.renderer.blockentity
Methods in net.minecraft.client.renderer.blockentity with parameters of type DirectionModifier and TypeMethodDescriptionvoid
ShulkerBoxRenderer.getExtents
(Direction pDirection, float pProgress, Set<org.joml.Vector3f> pOutput) private void
ShulkerBoxRenderer.prepareModel
(PoseStack pPoseStack, Direction pDirection, float pProgress) private static void
BedRenderer.preparePose
(PoseStack pPoseStack, boolean pIsFeet, Direction pDirection) void
ShulkerBoxRenderer.render
(PoseStack pPoseStack, MultiBufferSource pBufferSource, int pPackedLight, int pPackedOverlay, Direction pFacing, float pProgress, Material pMaterial) private void
TheEndPortalRenderer.renderFace
(T p_253949_, org.joml.Matrix4f p_254247_, VertexConsumer p_254390_, float p_254147_, float p_253639_, float p_254107_, float p_254109_, float p_254021_, float p_254458_, float p_254086_, float p_254310_, Direction p_253619_) private void
BedRenderer.renderPiece
(PoseStack pPoseStack, MultiBufferSource pBufferSource, Model pModel, Direction pDirection, Material pMaterial, int pPackedLight, int pPackedOverlay, boolean pIsFeet) static void
SkullBlockRenderer.renderSkull
(Direction pDirection, float pYRot, float pMouthAnimation, PoseStack pPoseStack, MultiBufferSource pBufferSource, int pPackedLight, SkullModelBase pModel, RenderType pRenderType) private float[]
BrushableBlockRenderer.translations
(Direction pDirection, int pDustedLevel) -
Uses of Direction in net.minecraft.client.renderer.chunk
Fields in net.minecraft.client.renderer.chunk declared as DirectionMethods in net.minecraft.client.renderer.chunk that return types with arguments of type DirectionMethods in net.minecraft.client.renderer.chunk with parameters of type DirectionModifier and TypeMethodDescriptionboolean
CompiledSectionMesh.facesCanSeeEachother
(Direction pFace1, Direction pFace2) boolean
SectionMesh.facesCanSeeEachother
(Direction pFace1, Direction pFace2) private int
VisGraph.getNeighborIndexAtFace
(int pIndex, Direction pFace) long
SectionRenderDispatcher.RenderSection.getNeighborSectionNode
(Direction pDirection) float
void
boolean
VisibilitySet.visibilityBetween
(Direction pFace, Direction pOtherFace) Method parameters in net.minecraft.client.renderer.chunk with type arguments of type Direction -
Uses of Direction in net.minecraft.client.renderer.debug
Fields in net.minecraft.client.renderer.debug declared as DirectionMethods in net.minecraft.client.renderer.debug with parameters of type DirectionModifier and TypeMethodDescriptionprivate static void
LightSectionDebugRenderer.renderFace
(PoseStack p_283612_, VertexConsumer p_281996_, Direction p_282340_, double p_281988_, double p_282440_, double p_282235_, int p_282751_, int p_282270_, int p_282159_, org.joml.Vector4f p_283316_) -
Uses of Direction in net.minecraft.client.renderer.entity
Methods in net.minecraft.client.renderer.entity with parameters of type DirectionModifier and TypeMethodDescriptionprivate static float
LivingEntityRenderer.sleepDirectionToRotation
(Direction pFacing) -
Uses of Direction in net.minecraft.client.renderer.entity.state
Fields in net.minecraft.client.renderer.entity.state declared as DirectionModifier and TypeFieldDescriptionShulkerRenderState.attachFace
LivingEntityRenderState.bedOrientation
ItemFrameRenderState.direction
PaintingRenderState.direction
Methods in net.minecraft.client.renderer.entity.state with parameters of type Direction -
Uses of Direction in net.minecraft.client.renderer.special
Fields in net.minecraft.client.renderer.special declared as DirectionModifier and TypeFieldDescriptionprivate final Direction
ShulkerBoxSpecialRenderer.orientation
private final Direction
ShulkerBoxSpecialRenderer.Unbaked.orientation
The field for theorientation
record component.Methods in net.minecraft.client.renderer.special that return DirectionModifier and TypeMethodDescriptionShulkerBoxSpecialRenderer.Unbaked.orientation()
Returns the value of theorientation
record component.Constructors in net.minecraft.client.renderer.special with parameters of type DirectionModifierConstructorDescriptionShulkerBoxSpecialRenderer
(ShulkerBoxRenderer pShulkerBoxRenderer, float pOpenness, Direction pOrientation, Material pMaterial) Unbaked
(ResourceLocation texture, float openness, Direction orientation) Creates an instance of aUnbaked
record class. -
Uses of Direction in net.minecraft.client.resources.model
Fields in net.minecraft.client.resources.model with type parameters of type DirectionModifier and TypeFieldDescriptionQuadCollection.Builder.culledFaces
BlockModelRotation.faceMapping
BlockModelRotation.inverseFaceMapping
Methods in net.minecraft.client.resources.model with parameters of type DirectionModifier and TypeMethodDescriptionQuadCollection.Builder.addCulledFace
(Direction pDirection, BakedQuad pQuad) org.joml.Matrix4fc
BlockModelRotation.WithUvLock.faceTransformation
(Direction p_405486_) default org.joml.Matrix4fc
ModelState.faceTransformation
(Direction p_405422_) org.joml.Matrix4fc
BlockModelRotation.WithUvLock.inverseFaceTransformation
(Direction p_404754_) default org.joml.Matrix4fc
ModelState.inverseFaceTransformation
(Direction p_405142_) -
Uses of Direction in net.minecraft.core
Fields in net.minecraft.core declared as DirectionModifier and TypeFieldDescriptionprivate static final Direction[]
Direction.BY_2D_DATA
All Facings with horizontal axis in order S-W-N-Eprivate static final Direction[]
Direction.BY_3D_DATA
private final Direction[]
Direction.Plane.faces
private final Direction
FrontAndTop.front
private final Direction
FrontAndTop.top
private static final Direction[]
Direction.VALUES
Fields in net.minecraft.core with type parameters of type DirectionModifier and TypeFieldDescriptionstatic final IntFunction
<Direction> Direction.BY_ID
static final StringRepresentable.EnumCodec
<Direction> Direction.CODEC
Direction8.directions
static final com.mojang.serialization.Codec
<Direction> Direction.LEGACY_ID_CODEC
Deprecated.static final com.mojang.serialization.Codec
<Direction> Direction.LEGACY_ID_CODEC_2D
Deprecated.static final StreamCodec
<io.netty.buffer.ByteBuf, Direction> Direction.STREAM_CODEC
private static final Map
<Direction, Transformation> BlockMath.VANILLA_UV_TRANSFORM_GLOBAL_TO_LOCAL
private static final Map
<Direction, Transformation> BlockMath.VANILLA_UV_TRANSFORM_LOCAL_TO_GLOBAL
static final com.mojang.serialization.Codec
<Direction> Direction.VERTICAL_CODEC
Methods in net.minecraft.core that return DirectionModifier and TypeMethodDescriptionstatic Direction
static Direction
Direction.from2DDataValue
(int p_122408_) static Direction
Direction.from3DDataValue
(int p_122377_) static Direction
Direction.fromAxisAndDirection
(Direction.Axis pAxis, Direction.AxisDirection pAxisDirection) static Direction
Direction.fromYRot
(double pAngle) FrontAndTop.front()
static Direction
Direction.get
(Direction.AxisDirection pAxisDirection, Direction.Axis pAxis) static Direction
Direction.getApproximateNearest
(double pX, double pY, double pZ) static Direction
Direction.getApproximateNearest
(float pX, float pY, float pZ) static Direction
Direction.getApproximateNearest
(Vec3 pVector) Direction.getClockWise()
Direction.getClockWise
(Direction.Axis pAxis) private Direction
Direction.getClockWiseX()
private Direction
Direction.getClockWiseZ()
Direction.getCounterClockWise()
Direction.getCounterClockWise
(Direction.Axis pAxis) private Direction
Direction.getCounterClockWiseX()
private Direction
Direction.getCounterClockWiseZ()
Direction.Axis.getDirections()
static Direction
Direction.getFacingAxis
(Entity pEntity, Direction.Axis pAxis) static Direction
Direction.getNearest
(int pX, int pY, int pZ, Direction pDefaultValue) static Direction
Direction.getNearest
(Vec3i pVector, Direction pDefaultValue) abstract Direction
Direction.Axis.getNegative()
Direction.getOpposite()
abstract Direction
Direction.Axis.getPositive()
static Direction
Direction.getRandom
(RandomSource pRandom) Direction.Plane.getRandomDirection
(RandomSource pRandom) private static Direction[]
Direction.makeDirectionArray
(Direction pFirst, Direction pSecond, Direction pThird) static Direction[]
Direction.orderedByNearest
(Entity pEntity) Gets theDirection
values for the provided entity's looking direction.static Direction
FrontAndTop.top()
static Direction
Returns the enum constant of this class with the specified name.static Direction[]
Direction.values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods in net.minecraft.core that return types with arguments of type DirectionModifier and TypeMethodDescriptionstatic Collection
<Direction> Direction.allShuffled
(RandomSource pRandom) Direction8.getDirections()
Direction.Plane.iterator()
Direction.Plane.shuffledCopy
(RandomSource pRandom) Direction.Plane.stream()
Direction.stream()
private static com.mojang.serialization.DataResult
<Direction> Direction.verifyVertical
(Direction p_194529_) Methods in net.minecraft.core with parameters of type DirectionModifier and TypeMethodDescriptionstatic FrontAndTop
FrontAndTop.fromFrontAndTop
(Direction pFront, Direction pTop) static Transformation
BlockMath.getFaceTransformation
(Transformation pTransformation, Direction pDirection) static Direction
Direction.getNearest
(int pX, int pY, int pZ, Direction pDefaultValue) static Direction
Direction.getNearest
(Vec3i pVector, Direction pDefaultValue) static float
private static int
private static Direction[]
Direction.makeDirectionArray
(Direction pFirst, Direction pSecond, Direction pThird) static long
static long
Offsets this Vector by the given distance in the specified direction.Offsets this Vector by the given distance in the specified direction.Offsets this Vector by the given distance in the specified direction.static Direction
BlockPos.MutableBlockPos.setWithOffset
(Vec3i pPos, Direction pDirection) static Iterable
<BlockPos.MutableBlockPos> BlockPos.spiralAround
(BlockPos pCenter, int pSize, Direction pRotationDirection, Direction pExpansionDirection) boolean
boolean
private static com.mojang.serialization.DataResult
<Direction> Direction.verifyVertical
(Direction p_194529_) Constructors in net.minecraft.core with parameters of type DirectionModifierConstructorDescriptionprivate
Direction8
(Direction... pDirections) private
FrontAndTop
(String pName, Direction pFront, Direction pTop) private
Plane
(Direction[] pFaces, Direction.Axis[] pAxis) -
Uses of Direction in net.minecraft.core.dispenser
Methods in net.minecraft.core.dispenser with parameters of type DirectionModifier and TypeMethodDescriptionprotected void
DefaultDispenseItemBehavior.playAnimation
(BlockSource pBlockSource, Direction pDirection) private static void
DefaultDispenseItemBehavior.playDefaultAnimation
(BlockSource pBlockSource, Direction pDirection) static void
DefaultDispenseItemBehavior.spawnItem
(Level pLevel, ItemStack pStack, int pSpeed, Direction pFacing, Position pPosition) -
Uses of Direction in net.minecraft.data.worldgen.features
Methods in net.minecraft.data.worldgen.features with parameters of type DirectionModifier and TypeMethodDescriptionprivate static Holder
<PlacedFeature> CaveFeatures.makeDripleaf
(Direction pFacingDirection) Method parameters in net.minecraft.data.worldgen.features with type arguments of type DirectionModifier and TypeMethodDescriptionprivate static WeightedList.Builder
<BlockState> VegetationFeatures.segmentedBlockPatchBuilder
(Block pBlock, int pMinAmount, int pMaxAmount, IntegerProperty pAmountProperty, EnumProperty<Direction> pDirectionProperty) -
Uses of Direction in net.minecraft.gametest.framework
Methods in net.minecraft.gametest.framework with parameters of type Direction -
Uses of Direction in net.minecraft.network.protocol.game
Fields in net.minecraft.network.protocol.game declared as DirectionMethods in net.minecraft.network.protocol.game that return DirectionConstructors in net.minecraft.network.protocol.game with parameters of type DirectionModifierConstructorDescriptionServerboundPlayerActionPacket
(ServerboundPlayerActionPacket.Action pAction, BlockPos pPos, Direction pDirection) ServerboundPlayerActionPacket
(ServerboundPlayerActionPacket.Action pAction, BlockPos pPos, Direction pDirection, int pSequence) -
Uses of Direction in net.minecraft.network.syncher
Fields in net.minecraft.network.syncher with type parameters of type DirectionModifier and TypeFieldDescriptionstatic final EntityDataSerializer
<Direction> EntityDataSerializers.DIRECTION
-
Uses of Direction in net.minecraft.server.level
Methods in net.minecraft.server.level with parameters of type DirectionModifier and TypeMethodDescriptionprivate boolean
ServerPlayer.bedBlocked
(BlockPos pPos, Direction pDirection) private boolean
ServerPlayer.bedInRange
(BlockPos pPos, Direction pDirection) float
float
void
DemoMode.handleBlockBreakAction
(BlockPos pPos, ServerboundPlayerActionPacket.Action pAction, Direction pFace, int pMaxBuildHeight, int pSequence) void
ServerPlayerGameMode.handleBlockBreakAction
(BlockPos pPos, ServerboundPlayerActionPacket.Action pAction, Direction pFace, int pMaxBuildHeight, int pSequence) void
ServerLevel.updateNeighborsAtExceptFromFacing
(BlockPos pPos, Block pBlock, Direction pFacing, Orientation pOrientation) -
Uses of Direction in net.minecraft.util
Methods in net.minecraft.util with parameters of type DirectionModifier and TypeMethodDescriptionint
SegmentedAnglePrecision.fromDirection
(Direction pDirection) static void
ParticleUtils.spawnParticleOnFace
(Level pLevel, BlockPos pPos, Direction pDirection, ParticleOptions pParticle, Vec3 pSpeed, double pSpread) static void
ParticleUtils.spawnParticlesOnBlockFace
(Level pLevel, BlockPos pPos, ParticleOptions pParticle, IntProvider pCount, Direction pDirection, Supplier<Vec3> pSpeedSupplier, double pSpread) -
Uses of Direction in net.minecraft.world
Methods in net.minecraft.world with parameters of type DirectionModifier and TypeMethodDescriptionboolean
WorldlyContainer.canPlaceItemThroughFace
(int pIndex, ItemStack pItemStack, Direction pDirection) Returnstrue
if automation can insert the given item in the given slot from the given side.boolean
WorldlyContainer.canTakeItemThroughFace
(int pIndex, ItemStack pStack, Direction pDirection) Returnstrue
if automation can extract the given item in the given slot from the given side.int[]
WorldlyContainer.getSlotsForFace
(Direction pSide) -
Uses of Direction in net.minecraft.world.entity
Methods in net.minecraft.world.entity that return DirectionModifier and TypeMethodDescriptionLivingEntity.getBedOrientation()
Entity.getDirection()
Entity.getMotionDirection()
Entity.getNearestViewDirection()
-
Uses of Direction in net.minecraft.world.entity.decoration
Fields in net.minecraft.world.entity.decoration declared as DirectionFields in net.minecraft.world.entity.decoration with type parameters of type DirectionModifier and TypeFieldDescriptionprivate static final EntityDataAccessor
<Direction> HangingEntity.DATA_DIRECTION
Methods in net.minecraft.world.entity.decoration that return DirectionMethods in net.minecraft.world.entity.decoration with parameters of type DirectionModifier and TypeMethodDescriptionprotected abstract AABB
HangingEntity.calculateBoundingBox
(BlockPos pPos, Direction pDirection) protected AABB
ItemFrame.calculateBoundingBox
(BlockPos pPos, Direction pDirection) protected AABB
Painting.calculateBoundingBox
(BlockPos pPos, Direction pDirection) protected void
HangingEntity.setDirection
(Direction pFacingDirection) Updates facing and bounding box based on itprotected void
ItemFrame.setDirection
(Direction pFacingDirection) Updates facing and bounding box based on itprotected void
HangingEntity.setDirectionRaw
(Direction pDirection) Constructors in net.minecraft.world.entity.decoration with parameters of type DirectionModifierConstructorDescriptionGlowItemFrame
(Level p_149610_, BlockPos p_149611_, Direction p_149612_) ItemFrame
(EntityType<? extends ItemFrame> pEntityType, Level pLevel, BlockPos pPos, Direction pDirection) -
Uses of Direction in net.minecraft.world.entity.monster
Fields in net.minecraft.world.entity.monster declared as DirectionModifier and TypeFieldDescriptionprivate static final Direction
Shulker.DEFAULT_ATTACH_FACE
private Direction
Silverfish.SilverfishMergeWithStoneGoal.selectedDirection
Fields in net.minecraft.world.entity.monster with type parameters of type DirectionModifier and TypeFieldDescriptionprotected static final EntityDataAccessor
<Direction> Shulker.DATA_ATTACH_FACE_ID
Methods in net.minecraft.world.entity.monster that return DirectionModifier and TypeMethodDescriptionprotected Direction
Shulker.findAttachableSurface
(BlockPos pPos) Shulker.getAttachFace()
Methods in net.minecraft.world.entity.monster with parameters of type DirectionModifier and TypeMethodDescription(package private) boolean
static AABB
Shulker.getProgressAabb
(float pScale, Direction pExpansionDirection, float pPeek, Vec3 pPosition) static AABB
Shulker.getProgressDeltaAabb
(float pScale, Direction pExpansionDirection, float pCurrentPeek, float pOldPeek, Vec3 pPosition) private void
Shulker.setAttachFace
(Direction pAttachFace) -
Uses of Direction in net.minecraft.world.entity.player
Methods in net.minecraft.world.entity.player with parameters of type DirectionModifier and TypeMethodDescriptionboolean
Player.mayUseItemAt
(BlockPos pPos, Direction pFacing, ItemStack pStack) Returns whether this player can modify the block at a certain location with the given stack. -
Uses of Direction in net.minecraft.world.entity.projectile
Fields in net.minecraft.world.entity.projectile declared as DirectionMethods in net.minecraft.world.entity.projectile that return DirectionMethods in net.minecraft.world.entity.projectile with parameters of type DirectionModifier and TypeMethodDescriptionprivate void
ShulkerBullet.setMoveDirection
(Direction pDirection) -
Uses of Direction in net.minecraft.world.entity.vehicle
Methods in net.minecraft.world.entity.vehicle that return DirectionModifier and TypeMethodDescriptionAbstractBoat.getMotionDirection()
AbstractMinecart.getMotionDirection()
MinecartBehavior.getMotionDirection()
OldMinecartBehavior.getMotionDirection()
Methods in net.minecraft.world.entity.vehicle with parameters of type DirectionModifier and TypeMethodDescriptionstatic int[][]
DismountHelper.offsetsForDirection
(Direction pDirection) -
Uses of Direction in net.minecraft.world.item
Fields in net.minecraft.world.item declared as DirectionModifier and TypeFieldDescriptionprivate final Direction
StandingAndWallBlockItem.attachmentDirection
Methods in net.minecraft.world.item with parameters of type DirectionModifier and TypeMethodDescriptionArrowItem.asProjectile
(Level pLevel, Position pPos, ItemStack pStack, Direction pDirection) EggItem.asProjectile
(Level p_338884_, Position p_338312_, ItemStack p_338704_, Direction p_338366_) ExperienceBottleItem.asProjectile
(Level p_338868_, Position p_338766_, ItemStack p_338321_, Direction p_338772_) FireChargeItem.asProjectile
(Level pLevel, Position pPos, ItemStack pStack, Direction pDirection) FireworkRocketItem.asProjectile
(Level pLevel, Position pPos, ItemStack pStack, Direction pDirection) ProjectileItem.asProjectile
(Level pLevel, Position pPos, ItemStack pStack, Direction pDirection) SnowballItem.asProjectile
(Level p_338685_, Position p_338637_, ItemStack p_338820_, Direction p_338856_) SpectralArrowItem.asProjectile
(Level p_338332_, Position p_338313_, ItemStack p_338304_, Direction p_338842_) ThrowablePotionItem.asProjectile
(Level pLevel, Position pPos, ItemStack pStack, Direction pDirection) TridentItem.asProjectile
(Level p_338505_, Position p_338277_, ItemStack p_338353_, Direction p_338220_) WindChargeItem.asProjectile
(Level p_338589_, Position p_338670_, ItemStack p_338308_, Direction p_338206_) static BrushItem.DustParticlesDelta
BrushItem.DustParticlesDelta.fromDirection
(Vec3 pPos, Direction pDirection) ProjectileItem.PositionFunction.getDispensePosition
(BlockSource pSource, Direction pDirection) private static Vec3
FireworkRocketItem.getEntityJustOutsideOfBlockPos
(BlockSource p_371687_, Direction p_371656_) static boolean
BoneMealItem.growWaterPlant
(ItemStack pStack, Level pLevel, BlockPos pPos, Direction pClickedSide) protected boolean
HangingEntityItem.mayPlace
(Player pPlayer, Direction pDirection, ItemStack pHangingEntityStack, BlockPos pPos) protected boolean
Constructors in net.minecraft.world.item with parameters of type DirectionModifierConstructorDescriptionSignItem
(Item.Properties pProperties, Block pStandingBlock, Block pWallBlock, Direction pAttachmentDirection) StandingAndWallBlockItem
(Block pBlock, Block pWallBlock, Direction pAttachmentDirection, Item.Properties pProperties) -
Uses of Direction in net.minecraft.world.item.context
Fields in net.minecraft.world.item.context declared as DirectionMethods in net.minecraft.world.item.context that return DirectionModifier and TypeMethodDescriptionUseOnContext.getClickedFace()
DirectionalPlaceContext.getHorizontalDirection()
UseOnContext.getHorizontalDirection()
BlockPlaceContext.getNearestLookingDirection()
DirectionalPlaceContext.getNearestLookingDirection()
BlockPlaceContext.getNearestLookingDirections()
DirectionalPlaceContext.getNearestLookingDirections()
BlockPlaceContext.getNearestLookingVerticalDirection()
Methods in net.minecraft.world.item.context with parameters of type DirectionModifier and TypeMethodDescriptionstatic BlockPlaceContext
BlockPlaceContext.at
(BlockPlaceContext pContext, BlockPos pPos, Direction pDirection) Constructors in net.minecraft.world.item.context with parameters of type Direction -
Uses of Direction in net.minecraft.world.level
Fields in net.minecraft.world.level declared as DirectionModifier and TypeFieldDescriptionstatic final Direction[]
SignalGetter.DIRECTIONS
private static final Direction[]
Level.NEIGHBOR_UPDATE_LIST
Methods in net.minecraft.world.level with parameters of type DirectionModifier and TypeMethodDescriptiondefault int
SignalGetter.getControlInputSignal
(BlockPos pPos, Direction pDirection, boolean pDiodesOnly) Returns the control signal emitted from the given position in the given direction.default int
SignalGetter.getDirectSignal
(BlockPos pPos, Direction pDirection) Returns the direct redstone signal emitted from the given position in the given direction.float
float
default int
Returns the redstone signal emitted from the given position in the given direction.default boolean
Returns whether a redstone signal is emitted from the given position in the given direction.boolean
Level.loadedAndEntityCanStandOnFace
(BlockPos pPos, Entity pEntity, Direction pDirection) void
Level.neighborShapeChanged
(Direction pDirection, BlockPos pPos, BlockPos pNeighborPos, BlockState pNeighborState, int pFlags, int pRecursionLeft) default void
LevelAccessor.neighborShapeChanged
(Direction pDirection, BlockPos pPos, BlockPos pNeighborPos, BlockState pNeighborState, int pFlags, int pRecursionLeft) void
Level.updateNeighborsAtExceptFromFacing
(BlockPos pPos, Block pBlock, Direction pFacing, Orientation pOrientation) -
Uses of Direction in net.minecraft.world.level.block
Fields in net.minecraft.world.level.block declared as DirectionModifier and TypeFieldDescriptionprivate static final Direction[]
SpongeBlock.ALL_DIRECTIONS
private static final Direction[]
BuddingAmethystBlock.DIRECTIONS
protected static final Direction[]
MultifaceBlock.DIRECTIONS
private final Direction
MultifaceSpreader.SpreadPos.face
The field for theface
record component.protected final Direction
GrowingPlantBlock.growthDirection
Fields in net.minecraft.world.level.block with type parameters of type DirectionModifier and TypeFieldDescriptionSculkSpreader.ChargeCursor.DIRECTION_SET
static final EnumProperty
<Direction> AbstractFurnaceBlock.FACING
static final EnumProperty
<Direction> AmethystClusterBlock.FACING
static final EnumProperty
<Direction> AnvilBlock.FACING
static final EnumProperty
<Direction> AttachedStemBlock.FACING
static final EnumProperty
<Direction> BarrelBlock.FACING
static final EnumProperty
<Direction> BaseCoralWallFanBlock.FACING
static final EnumProperty
<Direction> BeehiveBlock.FACING
static final EnumProperty
<Direction> BellBlock.FACING
static final EnumProperty
<Direction> CalibratedSculkSensorBlock.FACING
static final EnumProperty
<Direction> CampfireBlock.FACING
static final EnumProperty
<Direction> CarvedPumpkinBlock.FACING
static final EnumProperty
<Direction> ChestBlock.FACING
static final EnumProperty
<Direction> CommandBlock.FACING
static final EnumProperty
<Direction> DirectionalBlock.FACING
static final EnumProperty
<Direction> DispenserBlock.FACING
static final EnumProperty
<Direction> DoorBlock.FACING
static final EnumProperty
<Direction> EnderChestBlock.FACING
static final EnumProperty
<Direction> EndPortalFrameBlock.FACING
static final EnumProperty
<Direction> FlowerBedBlock.FACING
static final EnumProperty
<Direction> HopperBlock.FACING
static final EnumProperty
<Direction> HorizontalDirectionalBlock.FACING
static final EnumProperty
<Direction> LadderBlock.FACING
static final EnumProperty
<Direction> LeafLitterBlock.FACING
static final EnumProperty
<Direction> LecternBlock.FACING
static final EnumProperty
<Direction> RedstoneWallTorchBlock.FACING
static final EnumProperty
<Direction> ShulkerBoxBlock.FACING
static final EnumProperty
<Direction> SmallDripleafBlock.FACING
static final EnumProperty
<Direction> StairBlock.FACING
static final EnumProperty
<Direction> StonecutterBlock.FACING
static final EnumProperty
<Direction> TripWireHookBlock.FACING
static final EnumProperty
<Direction> VaultBlock.FACING
static final EnumProperty
<Direction> WallBannerBlock.FACING
static final EnumProperty
<Direction> WallHangingSignBlock.FACING
static final EnumProperty
<Direction> WallSignBlock.FACING
static final EnumProperty
<Direction> WallSkullBlock.FACING
static final EnumProperty
<Direction> WallTorchBlock.FACING
SculkSpreader.ChargeCursor.facings
private static final Map
<Direction, VoxelShape> ChestBlock.HALF_SHAPES
static final EnumProperty
<Direction> DecoratedPotBlock.HORIZONTAL_FACING
private final Map
<Direction, VoxelShape> HopperBlock.interactionShapes
static final com.google.common.collect.ImmutableList
<Direction> LiquidBlock.POSSIBLE_FLOW_DIRECTIONS
static final Map
<Direction, BooleanProperty> CrossCollisionBlock.PROPERTY_BY_DIRECTION
static final Map
<Direction, BooleanProperty> FireBlock.PROPERTY_BY_DIRECTION
private static final Map
<Direction, BooleanProperty> HugeMushroomBlock.PROPERTY_BY_DIRECTION
static final Map
<Direction, EnumProperty<WallSide>> MossyCarpetBlock.PROPERTY_BY_DIRECTION
private static final Map
<Direction, BooleanProperty> MultifaceBlock.PROPERTY_BY_DIRECTION
static final Map
<Direction, BooleanProperty> PipeBlock.PROPERTY_BY_DIRECTION
static final Map
<Direction, EnumProperty<RedstoneSide>> RedStoneWireBlock.PROPERTY_BY_DIRECTION
private static final Map
<Direction, BooleanProperty> TripWireBlock.PROPERTY_BY_DIRECTION
static final Map
<Direction, BooleanProperty> VineBlock.PROPERTY_BY_DIRECTION
static final Map
<Direction, EnumProperty<WallSide>> WallBlock.PROPERTY_BY_DIRECTION
private static final Map
<Direction, VoxelShape> StairBlock.SHAPE_BOTTOM_INNER
private static final Map
<Direction, VoxelShape> StairBlock.SHAPE_BOTTOM_OUTER
private static final Map
<Direction, VoxelShape> StairBlock.SHAPE_BOTTOM_STRAIGHT
private static final Map
<Direction, VoxelShape> BellBlock.SHAPE_SINGLE_WALL
private static final Map
<Direction, VoxelShape> StairBlock.SHAPE_TOP_INNER
private static final Map
<Direction, VoxelShape> StairBlock.SHAPE_TOP_OUTER
private static final Map
<Direction, VoxelShape> StairBlock.SHAPE_TOP_STRAIGHT
private final Map
<Direction, VoxelShape> AmethystClusterBlock.shapes
private static final Map
<Direction, VoxelShape> AttachedStemBlock.SHAPES
private static final Map
<Direction, VoxelShape> BaseCoralWallFanBlock.SHAPES
private static final Map
<Direction, VoxelShape> BedBlock.SHAPES
private static final Map
<Direction, VoxelShape> BigDripleafStemBlock.SHAPES
private static final List
<Map<Direction, VoxelShape>> CocoaBlock.SHAPES
private static final Map
<Direction, VoxelShape> DoorBlock.SHAPES
static final Map
<Direction, VoxelShape> LadderBlock.SHAPES
private static final Map
<Direction, VoxelShape> LecternBlock.SHAPES
private static final Map
<Direction, VoxelShape> PiglinWallSkullBlock.SHAPES
private static final Map
<Direction, VoxelShape> TrapDoorBlock.SHAPES
private static final Map
<Direction, VoxelShape> TripWireHookBlock.SHAPES
private static final Map
<Direction, VoxelShape> WallBannerBlock.SHAPES
private static final Map
<Direction, VoxelShape> WallSignBlock.SHAPES
private static final Map
<Direction, VoxelShape> WallSkullBlock.SHAPES
private static final Map
<Direction, VoxelShape> WallTorchBlock.SHAPES
static final Map
<Direction, VoxelShape> ShulkerBoxBlock.SHAPES_OPEN_SUPPORT
private static final Map
<Direction, VoxelShape> WallBlock.TEST_SHAPES_WALL
static final EnumProperty
<Direction> PointedDripstoneBlock.TIP_DIRECTION
Methods in net.minecraft.world.level.block that return DirectionModifier and TypeMethodDescriptionprivate static Direction
PointedDripstoneBlock.calculateTipDirection
(LevelReader pLevel, BlockPos pPos, Direction pDir) private Direction
ChestBlock.candidatePartnerFacing
(BlockPlaceContext pContext, Direction pDirection) MultifaceSpreader.SpreadPos.face()
Returns the value of theface
record component.static Direction
BedBlock.getBedOrientation
(BlockGetter pLevel, BlockPos pPos) static Direction
BedBlock.getConnectedDirection
(BlockState pState) private static Direction
BellBlock.getConnectedDirection
(BlockState pState) static Direction
ChestBlock.getConnectedDirection
(BlockState p_51585_) protected static Direction
FaceAttachedHorizontalDirectionalBlock.getConnectedDirection
(BlockState pState) protected static Direction
LanternBlock.getConnectedDirection
(BlockState pState) static Direction
JigsawBlock.getFrontFacing
(BlockState pState) This represents the face that the puzzle piece is on.private static Direction
BedBlock.getNeighbourDirection
(BedPart pPart, Direction pDirection) Given a bed part and the direction it's facing, find the direction to move to get the other bed partstatic Direction
JigsawBlock.getTopFacing
(BlockState pState) This represents the face that the line connector is on.Mirror the given facing according to this mirrorMethods in net.minecraft.world.level.block that return types with arguments of type DirectionModifier and TypeMethodDescriptionMultifaceBlock.availableFaces
(BlockState pState) SculkSpreader.ChargeCursor.getFacingData()
MultifaceBlock.unpack
(byte pPackedDirections) Methods in net.minecraft.world.level.block with parameters of type DirectionModifier and TypeMethodDescriptionprivate static boolean
ChorusFlowerBlock.allNeighborsEmpty
(LevelReader pLevel, BlockPos pPos, Direction pExcludingSide) boolean
BellBlock.attemptToRing
(Entity pEntity, Level pLevel, BlockPos pPos, Direction pDirection) boolean
BellBlock.attemptToRing
(Level pLevel, BlockPos pPos, Direction pDirection) private static int[][]
BedBlock.bedAboveStandUpOffsets
(Direction pDir) private static int[][]
BedBlock.bedStandUpOffsets
(Direction pFirstDir, Direction pSecondDir) private static int[][]
BedBlock.bedSurroundStandUpOffsets
(Direction pFirstDir, Direction pSecondDir) private static DripstoneThickness
PointedDripstoneBlock.calculateDripstoneThickness
(LevelReader pLevel, BlockPos pPos, Direction pDir, boolean pIsTipMerge) private static Direction
PointedDripstoneBlock.calculateTipDirection
(LevelReader pLevel, BlockPos pPos, Direction pDir) static boolean
FaceAttachedHorizontalDirectionalBlock.canAttach
(LevelReader pReader, BlockPos pPos, Direction pDirection) private boolean
LadderBlock.canAttachTo
(BlockGetter pBlockReader, BlockPos pPos, Direction pDirection) static boolean
MultifaceBlock.canAttachTo
(BlockGetter pLevel, BlockPos pPos, Direction pDirection) static boolean
MultifaceBlock.canAttachTo
(BlockGetter pLevel, Direction pDirection, BlockPos pPos, BlockState pState) boolean
WallHangingSignBlock.canAttachTo
(LevelReader pLevel, BlockState pState, BlockPos pPos, Direction pDirection) static boolean
BaseFireBlock.canBePlacedAt
(Level pLevel, BlockPos pPos, Direction pDirection) boolean
FireBlock.canCatchFire
(BlockGetter world, BlockPos pos, Direction face) Side sensitive version that calls the block function.private Direction
ChestBlock.candidatePartnerFacing
(BlockPlaceContext pContext, Direction pDirection) boolean
ComposterBlock.EmptyContainer.canPlaceItemThroughFace
(int pIndex, ItemStack pItemStack, Direction pDirection) Returnstrue
if automation can insert the given item in the given slot from the given side.boolean
ComposterBlock.InputContainer.canPlaceItemThroughFace
(int pIndex, ItemStack pItemStack, Direction pDirection) Returnstrue
if automation can insert the given item in the given slot from the given side.boolean
ComposterBlock.OutputContainer.canPlaceItemThroughFace
(int pIndex, ItemStack pItemStack, Direction pDirection) Returnstrue
if automation can insert the given item in the given slot from the given side.default boolean
MultifaceSpreader.SpreadConfig.canSpreadFrom
(BlockState pState, Direction pDirection) boolean
MultifaceSpreader.canSpreadInAnyDirection
(BlockState pState, BlockGetter pLevel, BlockPos pPos, Direction pSpreadDirection) private static boolean
MossyCarpetBlock.canSupportAtFace
(BlockGetter pLevel, BlockPos pPos, Direction pDirection) private boolean
VineBlock.canSupportAtFace
(BlockGetter pLevel, BlockPos pPos, Direction pDirection) static boolean
Block.canSupportCenter
(LevelReader pLevel, BlockPos pPos, Direction pDirection) static boolean
WallTorchBlock.canSurvive
(LevelReader pLevel, BlockPos pPos, Direction pFacing) boolean
ComposterBlock.EmptyContainer.canTakeItemThroughFace
(int pIndex, ItemStack pStack, Direction pDirection) Returnstrue
if automation can extract the given item in the given slot from the given side.boolean
ComposterBlock.InputContainer.canTakeItemThroughFace
(int pIndex, ItemStack pStack, Direction pDirection) Returnstrue
if automation can extract the given item in the given slot from the given side.boolean
ComposterBlock.OutputContainer.canTakeItemThroughFace
(int pIndex, ItemStack pStack, Direction pDirection) Returnstrue
if automation can extract the given item in the given slot from the given side.private static boolean
StairBlock.canTakeShape
(BlockState pState, BlockGetter pLevel, BlockPos pPos, Direction pFace) private void
FireBlock.checkBurnOut
(Level pLevel, BlockPos pPos, int pChance, RandomSource pRandom, int pAge, Direction face) boolean
FenceBlock.connectsTo
(BlockState pState, boolean pIsSideSolid, Direction pDirection) private boolean
WallBlock.connectsTo
(BlockState pState, boolean pSideSolid, Direction pDirection) static boolean
FenceGateBlock.connectsToDirection
(BlockState pState, Direction pDirection) private static void
PointedDripstoneBlock.createDripstone
(LevelAccessor pLevel, BlockPos pPos, Direction pDirection, DripstoneThickness pThickness) private static void
CommandBlock.executeChain
(ServerLevel pLevel, BlockPos pPos, Direction pDirection) BedBlock.findBunkBedStandUpPosition
(EntityType<?> pEntityType, CollisionGetter pCollisionGetter, BlockPos pPos, Direction pStateFacing, Direction pEntityFacing) BedBlock.findStandUpPosition
(EntityType<?> pEntityType, CollisionGetter pCollisionGetter, BlockPos pPos, Direction pDirection, float pYRot) private RedstoneSide
RedStoneWireBlock.getConnectingSide
(BlockGetter pLevel, BlockPos pPos, Direction pFace) private RedstoneSide
RedStoneWireBlock.getConnectingSide
(BlockGetter pLevel, BlockPos pPos, Direction pDirection, boolean pNonNormalCubeAbove) protected int
BasePressurePlateBlock.getDirectSignal
(BlockState pBlockState, BlockGetter pBlockAccess, BlockPos pPos, Direction pSide) Returns the direct signal this block emits in the given direction.protected int
ButtonBlock.getDirectSignal
(BlockState pBlockState, BlockGetter pBlockAccess, BlockPos pPos, Direction pSide) Returns the direct signal this block emits in the given direction.protected int
DetectorRailBlock.getDirectSignal
(BlockState pBlockState, BlockGetter pBlockAccess, BlockPos pPos, Direction pSide) Returns the direct signal this block emits in the given direction.protected int
DiodeBlock.getDirectSignal
(BlockState pBlockState, BlockGetter pBlockAccess, BlockPos pPos, Direction pSide) Returns the direct signal this block emits in the given direction.protected int
LecternBlock.getDirectSignal
(BlockState pBlockState, BlockGetter pBlockAccess, BlockPos pPos, Direction pSide) Returns the direct signal this block emits in the given direction.protected int
LeverBlock.getDirectSignal
(BlockState pBlockState, BlockGetter pBlockAccess, BlockPos pPos, Direction pSide) Returns the direct signal this block emits in the given direction.protected int
LightningRodBlock.getDirectSignal
(BlockState pState, BlockGetter pLevel, BlockPos pPos, Direction pDirection) Returns the direct signal this block emits in the given direction.protected int
ObserverBlock.getDirectSignal
(BlockState pBlockState, BlockGetter pBlockAccess, BlockPos pPos, Direction pSide) Returns the direct signal this block emits in the given direction.protected int
RedstoneTorchBlock.getDirectSignal
(BlockState pBlockState, BlockGetter pBlockAccess, BlockPos pPos, Direction pSide) Returns the direct signal this block emits in the given direction.protected int
RedStoneWireBlock.getDirectSignal
(BlockState pBlockState, BlockGetter pBlockAccess, BlockPos pPos, Direction pSide) Returns the direct signal this block emits in the given direction.int
SculkSensorBlock.getDirectSignal
(BlockState pState, BlockGetter pLevel, BlockPos pPos, Direction pDirection) Returns the direct signal this block emits in the given direction.protected int
TrappedChestBlock.getDirectSignal
(BlockState pBlockState, BlockGetter pBlockAccess, BlockPos pPos, Direction pSide) Returns the direct signal this block emits in the given direction.protected int
TripWireHookBlock.getDirectSignal
(BlockState pBlockState, BlockGetter pBlockAccess, BlockPos pPos, Direction pSide) Returns the direct signal this block emits in the given direction.static BooleanProperty
MultifaceBlock.getFaceProperty
(Direction pDirection) private ItemFrame
ComparatorBlock.getItemFrame
(Level pLevel, Direction pFacing, BlockPos pPos) private static Direction
BedBlock.getNeighbourDirection
(BedPart pPart, Direction pDirection) Given a bed part and the direction it's facing, find the direction to move to get the other bed partstatic EnumProperty
<WallSide> MossyCarpetBlock.getPropertyForFace
(Direction pDirection) static BooleanProperty
VineBlock.getPropertyForFace
(Direction pFace) ChiseledBookShelfBlock.getRelativeHitCoordinatesForBlockFace
(BlockHitResult pHitResult, Direction pFace) Mirror.getRotation
(Direction pFacing) Determines the rotation that is equivalent to this mirror if the rotating object faces in the given directionprotected int
BasePressurePlateBlock.getSignal
(BlockState pBlockState, BlockGetter pBlockAccess, BlockPos pPos, Direction pSide) Returns the signal this block emits in the given direction.protected int
ButtonBlock.getSignal
(BlockState pBlockState, BlockGetter pBlockAccess, BlockPos pPos, Direction pSide) Returns the signal this block emits in the given direction.int
CalibratedSculkSensorBlock.getSignal
(BlockState p_277782_, BlockGetter p_277556_, BlockPos p_277903_, Direction p_278059_) protected int
DaylightDetectorBlock.getSignal
(BlockState pBlockState, BlockGetter pBlockAccess, BlockPos pPos, Direction pSide) Returns the signal this block emits in the given direction.protected int
DetectorRailBlock.getSignal
(BlockState pBlockState, BlockGetter pBlockAccess, BlockPos pPos, Direction pSide) Returns the signal this block emits in the given direction.protected int
DiodeBlock.getSignal
(BlockState pBlockState, BlockGetter pBlockAccess, BlockPos pPos, Direction pSide) Returns the signal this block emits in the given direction.int
JukeboxBlock.getSignal
(BlockState pState, BlockGetter pLevel, BlockPos pPos, Direction pDirection) Returns the signal this block emits in the given direction.protected int
LecternBlock.getSignal
(BlockState pBlockState, BlockGetter pBlockAccess, BlockPos pPos, Direction pSide) Returns the signal this block emits in the given direction.protected int
LeverBlock.getSignal
(BlockState pBlockState, BlockGetter pBlockAccess, BlockPos pPos, Direction pSide) Returns the signal this block emits in the given direction.protected int
LightningRodBlock.getSignal
(BlockState pState, BlockGetter pLevel, BlockPos pPos, Direction pDirection) Returns the signal this block emits in the given direction.protected int
ObserverBlock.getSignal
(BlockState pBlockState, BlockGetter pBlockAccess, BlockPos pPos, Direction pSide) Returns the signal this block emits in the given direction.protected int
PoweredBlock.getSignal
(BlockState pBlockState, BlockGetter pBlockAccess, BlockPos pPos, Direction pSide) Returns the signal this block emits in the given direction.protected int
RedstoneTorchBlock.getSignal
(BlockState pBlockState, BlockGetter pBlockAccess, BlockPos pPos, Direction pSide) Returns the signal this block emits in the given direction.protected int
RedstoneWallTorchBlock.getSignal
(BlockState pBlockState, BlockGetter pBlockAccess, BlockPos pPos, Direction pSide) Returns the signal this block emits in the given direction.protected int
RedStoneWireBlock.getSignal
(BlockState pBlockState, BlockGetter pBlockAccess, BlockPos pPos, Direction pSide) Returns the signal this block emits in the given direction.protected int
SculkSensorBlock.getSignal
(BlockState pState, BlockGetter pLevel, BlockPos pPos, Direction pDirection) Returns the signal this block emits in the given direction.protected int
TargetBlock.getSignal
(BlockState pBlockState, BlockGetter pBlockAccess, BlockPos pPos, Direction pSide) Returns the signal this block emits in the given direction.int
TestBlock.getSignal
(BlockState pState, BlockGetter pLevel, BlockPos pPos, Direction pDirection) Returns the signal this block emits in the given direction.protected int
TrappedChestBlock.getSignal
(BlockState pBlockState, BlockGetter pBlockAccess, BlockPos pPos, Direction pSide) Returns the signal this block emits in the given direction.protected int
TripWireHookBlock.getSignal
(BlockState pBlockState, BlockGetter pBlockAccess, BlockPos pPos, Direction pSide) Returns the signal this block emits in the given direction.int[]
ComposterBlock.EmptyContainer.getSlotsForFace
(Direction pSide) int[]
ComposterBlock.InputContainer.getSlotsForFace
(Direction pSide) int[]
ComposterBlock.OutputContainer.getSlotsForFace
(Direction pSide) MultifaceSpreader.getSpreadFromFaceTowardDirection
(BlockState pState, BlockGetter pLevel, BlockPos pPos, Direction pSpreadDirection, Direction pFace, MultifaceSpreader.SpreadPredicate pPredicate) abstract MultifaceSpreader.SpreadPos
MultifaceSpreader.SpreadType.getSpreadPos
(BlockPos pPos, Direction pFace, Direction pSpreadDirection) MultifaceBlock.getStateForPlacement
(BlockState pCurrentState, BlockGetter pLevel, BlockPos pPos, Direction pLookingDirection) MultifaceSpreader.DefaultSpreaderConfig.getStateForPlacement
(BlockState pCurrentState, BlockGetter pLevel, BlockPos pPos, Direction pLookingDirection) MultifaceSpreader.SpreadConfig.getStateForPlacement
(BlockState pCurrentState, BlockGetter pLevel, BlockPos pPos, Direction pLookingDirection) private static void
PointedDripstoneBlock.grow
(ServerLevel pServer, BlockPos pPos, Direction pDirection) static boolean
MultifaceBlock.hasFace
(BlockState pState, Direction pDirection) default boolean
MultifaceSpreader.SpreadConfig.hasFace
(BlockState pState, Direction pDirection) static boolean
VineBlock.isAcceptableNeighbour
(BlockGetter pBlockReader, BlockPos pNeighborPos, Direction pAttachedFace) static boolean
Block.isFaceFull
(VoxelShape pShape, Direction pFace) protected boolean
MultifaceBlock.isFaceSupported
(Direction p_153921_) private static boolean
PointedDripstoneBlock.isPointedDripstoneWithDirection
(BlockState pState, Direction pDir) private static boolean
private boolean
BellBlock.isProperHit
(BlockState pPos, Direction pDirection, double pDistanceY) abstract boolean
SupportType.isSupporting
(BlockState pState, BlockGetter pLevel, BlockPos pPos, Direction pFace) private static boolean
PointedDripstoneBlock.isUnmergedTipWithDirection
(BlockState pState, Direction pDir) private static boolean
SculkSpreader.ChargeCursor.isUnobstructed
(LevelAccessor pLevel, BlockPos pPos, Direction pDirection) private static boolean
PointedDripstoneBlock.isValidPointedDripstonePlacement
(LevelReader pLevel, BlockPos pPos, Direction pDir) boolean
MultifaceBlock.isValidStateForPlacement
(BlockGetter pLevel, BlockState pState, BlockPos pPos, Direction pDirection) Mirror the given facing according to this mirrorprivate static void
TripWireHookBlock.notifyNeighbors
(Block pBlock, Level pLevel, BlockPos pPos, Direction pDirection) boolean
TntBlock.onCaughtFire
(BlockState state, Level world, BlockPos pos, Direction face, LivingEntity igniter) protected static boolean
BigDripleafBlock.place
(LevelAccessor pLevel, BlockPos pPos, FluidState pFluidState, Direction pDirection) protected static boolean
BigDripleafStemBlock.place
(LevelAccessor pLevel, BlockPos pPos, FluidState pFluidState, Direction pDirection) static void
BigDripleafBlock.placeWithRandomHeight
(LevelAccessor pLevel, RandomSource pRandom, BlockPos pPos, Direction pDirection) static void
Block.popResourceFromFace
(Level pLevel, BlockPos pPos, Direction pDirection, ItemStack pStack) protected static boolean
RedStoneWireBlock.shouldConnectTo
(BlockState pState, Direction pDirection) boolean
TripWireBlock.shouldConnectTo
(BlockState pState, Direction pDirection) static boolean
Block.shouldRenderFace
(BlockState pCurrentFace, BlockState pNeighboringFace, Direction pFace) Deprecated.Neo: use overload with level context insteadstatic boolean
Block.shouldRenderFace
(BlockGetter level, BlockPos pos, BlockState p_152445_, BlockState p_361252_, Direction p_152448_) private BlockState
WallBlock.sideUpdate
(LevelReader pLevel, BlockPos pFirstPos, BlockState pFirstState, BlockPos pSecondPos, BlockState pSecondState, Direction pDir) protected boolean
HalfTransparentBlock.skipRendering
(BlockState pState, BlockState pAdjacentBlockState, Direction pSide) protected boolean
IronBarsBlock.skipRendering
(BlockState pState, BlockState pAdjacentBlockState, Direction pSide) protected boolean
LiquidBlock.skipRendering
(BlockState pState, BlockState pAdjacentBlockState, Direction pSide) protected boolean
MangroveRootsBlock.skipRendering
(BlockState p_221510_, BlockState p_221511_, Direction p_221512_) protected boolean
PowderSnowBlock.skipRendering
(BlockState pState, BlockState pAdjacentState, Direction pDirection) private static void
RedStoneWireBlock.spawnParticlesAlongLine
(Level pLevel, RandomSource pRandom, BlockPos pPos, int pColor, Direction pDirection, Direction pPerpendicularDirection, float pStart, float pEnd) private long
MultifaceSpreader.spreadFromFaceTowardAllDirections
(BlockState pState, LevelAccessor pLevel, BlockPos pPos, Direction pSpreadDirection, boolean pMarkForPostprocessing) MultifaceSpreader.spreadFromFaceTowardDirection
(BlockState pState, LevelAccessor pLevel, BlockPos pPos, Direction pSpreadDirection, Direction pFace, boolean pMarkForPostprocessing) MultifaceSpreader.spreadFromFaceTowardRandomDirection
(BlockState pState, LevelAccessor pLevel, BlockPos pPos, Direction pSpreadDirection, RandomSource pRandom, boolean pMarkForPostprocessing) protected boolean
MultifaceSpreader.DefaultSpreaderConfig.stateCanBeReplaced
(BlockGetter pLevel, BlockPos pPos, BlockPos pSpreadPos, Direction pDirection, BlockState pState) boolean
SculkVeinBlock.SculkVeinSpreaderConfig.stateCanBeReplaced
(BlockGetter pLevel, BlockPos pPos, BlockPos pSpreadPos, Direction pDirection, BlockState pState) protected BlockState
AmethystClusterBlock.updateShape
(BlockState pState, LevelReader pLevel, ScheduledTickAccess pScheduledTickAccess, BlockPos pPos, Direction pDirection, BlockPos pNeighborPos, BlockState pNeighborState, RandomSource pRandom) protected BlockState
AttachedStemBlock.updateShape
(BlockState pState, LevelReader pLevel, ScheduledTickAccess pScheduledTickAccess, BlockPos pPos, Direction pDirection, BlockPos pNeighborPos, BlockState pNeighborState, RandomSource pRandom) protected BlockState
BambooSaplingBlock.updateShape
(BlockState pState, LevelReader pLevel, ScheduledTickAccess pScheduledTickAccess, BlockPos pPos, Direction pDirection, BlockPos pNeighborPos, BlockState pNeighborState, RandomSource pRandom) protected BlockState
BambooStalkBlock.updateShape
(BlockState pState, LevelReader pLevel, ScheduledTickAccess pScheduledTickAccess, BlockPos pPos, Direction pDirection, BlockPos pNeighborPos, BlockState pNeighborState, RandomSource pRandom) protected BlockState
BannerBlock.updateShape
(BlockState pState, LevelReader pLevel, ScheduledTickAccess pScheduledTickAccess, BlockPos pPos, Direction pDirection, BlockPos pNeighborPos, BlockState pNeighborState, RandomSource pRandom) protected BlockState
BarrierBlock.updateShape
(BlockState pState, LevelReader pLevel, ScheduledTickAccess pScheduledTickAccess, BlockPos pPos, Direction pDirection, BlockPos pNeighborPos, BlockState pNeighborState, RandomSource pRandom) protected BlockState
BaseCoralPlantTypeBlock.updateShape
(BlockState pState, LevelReader pLevel, ScheduledTickAccess pScheduledTickAccess, BlockPos pPos, Direction pDirection, BlockPos pNeighborPos, BlockState pNeighborState, RandomSource pRandom) protected BlockState
BaseCoralWallFanBlock.updateShape
(BlockState pState, LevelReader pLevel, ScheduledTickAccess pScheduledTickAccess, BlockPos pPos, Direction pDirection, BlockPos pNeighborPos, BlockState pNeighborState, RandomSource pRandom) protected BlockState
BasePressurePlateBlock.updateShape
(BlockState pState, LevelReader pLevel, ScheduledTickAccess pScheduledTickAccess, BlockPos pPos, Direction pDirection, BlockPos pNeighborPos, BlockState pNeighborState, RandomSource pRandom) protected BlockState
BaseRailBlock.updateShape
(BlockState pState, LevelReader pLevel, ScheduledTickAccess pScheduledTickAccess, BlockPos pPos, Direction pDirection, BlockPos pNeighborPos, BlockState pNeighborState, RandomSource pRandom) protected BlockState
BaseTorchBlock.updateShape
(BlockState p_304418_, LevelReader p_374159_, ScheduledTickAccess p_374152_, BlockPos p_304633_, Direction p_304475_, BlockPos p_304603_, BlockState p_304669_, RandomSource p_374111_) protected BlockState
BedBlock.updateShape
(BlockState pState, LevelReader pLevel, ScheduledTickAccess pScheduledTickAccess, BlockPos pPos, Direction pDirection, BlockPos pNeighborPos, BlockState pNeighborState, RandomSource pRandom) protected BlockState
BeehiveBlock.updateShape
(BlockState pState, LevelReader pLevel, ScheduledTickAccess pScheduledTickAccess, BlockPos pPos, Direction pDirection, BlockPos pNeighborPos, BlockState pNeighborState, RandomSource pRandom) protected BlockState
BellBlock.updateShape
(BlockState pState, LevelReader pLevel, ScheduledTickAccess pScheduledTickAccess, BlockPos pPos, Direction pDirection, BlockPos pNeighborPos, BlockState pNeighborState, RandomSource pRandom) protected BlockState
BigDripleafBlock.updateShape
(BlockState pState, LevelReader pLevel, ScheduledTickAccess pScheduledTickAccess, BlockPos pPos, Direction pDirection, BlockPos pNeighborPos, BlockState pNeighborState, RandomSource pRandom) protected BlockState
BigDripleafStemBlock.updateShape
(BlockState pState, LevelReader pLevel, ScheduledTickAccess pScheduledTickAccess, BlockPos pPos, Direction pDirection, BlockPos pNeighborPos, BlockState pNeighborState, RandomSource pRandom) BrushableBlock.updateShape
(BlockState pState, LevelReader pLevel, ScheduledTickAccess pScheduledTickAccess, BlockPos pPos, Direction pDirection, BlockPos pNeighborPos, BlockState pNeighborState, RandomSource pRandom) protected BlockState
BubbleColumnBlock.updateShape
(BlockState pState, LevelReader pLevel, ScheduledTickAccess pScheduledTickAccess, BlockPos pPos, Direction pDirection, BlockPos pNeighborPos, BlockState pNeighborState, RandomSource pRandom) protected BlockState
CactusBlock.updateShape
(BlockState pState, LevelReader pLevel, ScheduledTickAccess pScheduledTickAccess, BlockPos pPos, Direction pDirection, BlockPos pNeighborPos, BlockState pNeighborState, RandomSource pRandom) protected BlockState
CakeBlock.updateShape
(BlockState pState, LevelReader pLevel, ScheduledTickAccess pScheduledTickAccess, BlockPos pPos, Direction pDirection, BlockPos pNeighborPos, BlockState pNeighborState, RandomSource pRandom) protected BlockState
CampfireBlock.updateShape
(BlockState pState, LevelReader pLevel, ScheduledTickAccess pScheduledTickAccess, BlockPos pPos, Direction pDirection, BlockPos pNeighborPos, BlockState pNeighborState, RandomSource pRandom) protected BlockState
CandleBlock.updateShape
(BlockState pState, LevelReader pLevel, ScheduledTickAccess pScheduledTickAccess, BlockPos pPos, Direction pDirection, BlockPos pNeighborPos, BlockState pNeighborState, RandomSource pRandom) protected BlockState
CandleCakeBlock.updateShape
(BlockState pState, LevelReader pLevel, ScheduledTickAccess pScheduledTickAccess, BlockPos pPos, Direction pDirection, BlockPos pNeighborPos, BlockState pNeighborState, RandomSource pRandom) protected BlockState
CarpetBlock.updateShape
(BlockState p_152926_, LevelReader p_374550_, ScheduledTickAccess p_374188_, BlockPos p_152930_, Direction p_152927_, BlockPos p_152931_, BlockState p_152928_, RandomSource p_374375_) protected BlockState
CeilingHangingSignBlock.updateShape
(BlockState pState, LevelReader pLevel, ScheduledTickAccess pScheduledTickAccess, BlockPos pPos, Direction pDirection, BlockPos pNeighborPos, BlockState pNeighborState, RandomSource pRandom) protected BlockState
ChainBlock.updateShape
(BlockState pState, LevelReader pLevel, ScheduledTickAccess pScheduledTickAccess, BlockPos pPos, Direction pDirection, BlockPos pNeighborPos, BlockState pNeighborState, RandomSource pRandom) protected BlockState
ChestBlock.updateShape
(BlockState pState, LevelReader pLevel, ScheduledTickAccess pScheduledTickAccess, BlockPos pPos, Direction pDirection, BlockPos pNeighborPos, BlockState pNeighborState, RandomSource pRandom) protected BlockState
ChorusFlowerBlock.updateShape
(BlockState pState, LevelReader pLevel, ScheduledTickAccess pScheduledTickAccess, BlockPos pPos, Direction pDirection, BlockPos pNeighborPos, BlockState pNeighborState, RandomSource pRandom) protected BlockState
ChorusPlantBlock.updateShape
(BlockState pState, LevelReader pLevel, ScheduledTickAccess pScheduledTickAccess, BlockPos pPos, Direction pDirection, BlockPos pNeighborPos, BlockState pNeighborState, RandomSource pRandom) protected BlockState
CocoaBlock.updateShape
(BlockState pState, LevelReader pLevel, ScheduledTickAccess pScheduledTickAccess, BlockPos pPos, Direction pDirection, BlockPos pNeighborPos, BlockState pNeighborState, RandomSource pRandom) ComparatorBlock.updateShape
(BlockState pState, LevelReader pLevel, ScheduledTickAccess pScheduledTickAccess, BlockPos pPos, Direction pDirection, BlockPos pNeighborPos, BlockState pNeighborState, RandomSource pRandom) protected BlockState
ConcretePowderBlock.updateShape
(BlockState pState, LevelReader pLevel, ScheduledTickAccess pScheduledTickAccess, BlockPos pPos, Direction pDirection, BlockPos pNeighborPos, BlockState pNeighborState, RandomSource pRandom) protected BlockState
ConduitBlock.updateShape
(BlockState pState, LevelReader pLevel, ScheduledTickAccess pScheduledTickAccess, BlockPos pPos, Direction pDirection, BlockPos pNeighborPos, BlockState pNeighborState, RandomSource pRandom) protected BlockState
CoralBlock.updateShape
(BlockState pState, LevelReader pLevel, ScheduledTickAccess pScheduledTickAccess, BlockPos pPos, Direction pDirection, BlockPos pNeighborPos, BlockState pNeighborState, RandomSource pRandom) protected BlockState
CoralFanBlock.updateShape
(BlockState pState, LevelReader pLevel, ScheduledTickAccess pScheduledTickAccess, BlockPos pPos, Direction pDirection, BlockPos pNeighborPos, BlockState pNeighborState, RandomSource pRandom) protected BlockState
CoralPlantBlock.updateShape
(BlockState pState, LevelReader pLevel, ScheduledTickAccess pScheduledTickAccess, BlockPos pPos, Direction pDirection, BlockPos pNeighborPos, BlockState pNeighborState, RandomSource pRandom) protected BlockState
CoralWallFanBlock.updateShape
(BlockState pState, LevelReader pLevel, ScheduledTickAccess pScheduledTickAccess, BlockPos pPos, Direction pDirection, BlockPos pNeighborPos, BlockState pNeighborState, RandomSource pRandom) protected BlockState
CreakingHeartBlock.updateShape
(BlockState pState, LevelReader pLevel, ScheduledTickAccess pScheduledTickAccess, BlockPos pPos, Direction pDirection, BlockPos pNeighborPos, BlockState pNeighborState, RandomSource pRandom) protected BlockState
DecoratedPotBlock.updateShape
(BlockState p_276307_, LevelReader p_374037_, ScheduledTickAccess p_374267_, BlockPos p_276270_, Direction p_276322_, BlockPos p_276312_, BlockState p_276280_, RandomSource p_374464_) protected BlockState
DirtPathBlock.updateShape
(BlockState p_153152_, LevelReader p_374225_, ScheduledTickAccess p_374127_, BlockPos p_153156_, Direction p_153153_, BlockPos p_153157_, BlockState p_153154_, RandomSource p_374236_) protected BlockState
DoorBlock.updateShape
(BlockState pState, LevelReader pLevel, ScheduledTickAccess pScheduledTickAccess, BlockPos pPos, Direction pDirection, BlockPos pNeighborPos, BlockState pNeighborState, RandomSource pRandom) protected BlockState
DoublePlantBlock.updateShape
(BlockState pState, LevelReader pLevel, ScheduledTickAccess pScheduledTickAccess, BlockPos pPos, Direction pDirection, BlockPos pNeighborPos, BlockState pNeighborState, RandomSource pRandom) protected BlockState
DriedGhastBlock.updateShape
(BlockState pState, LevelReader pLevel, ScheduledTickAccess pScheduledTickAccess, BlockPos pPos, Direction pDirection, BlockPos pNeighborPos, BlockState pNeighborState, RandomSource pRandom) protected BlockState
EnderChestBlock.updateShape
(BlockState pState, LevelReader pLevel, ScheduledTickAccess pScheduledTickAccess, BlockPos pPos, Direction pDirection, BlockPos pNeighborPos, BlockState pNeighborState, RandomSource pRandom) protected BlockState
FaceAttachedHorizontalDirectionalBlock.updateShape
(BlockState pState, LevelReader pLevel, ScheduledTickAccess pScheduledTickAccess, BlockPos pPos, Direction pDirection, BlockPos pNeighborPos, BlockState pNeighborState, RandomSource pRandom) protected BlockState
FallingBlock.updateShape
(BlockState pState, LevelReader pLevel, ScheduledTickAccess pScheduledTickAccess, BlockPos pPos, Direction pDirection, BlockPos pNeighborPos, BlockState pNeighborState, RandomSource pRandom) protected BlockState
FarmBlock.updateShape
(BlockState pState, LevelReader pLevel, ScheduledTickAccess pScheduledTickAccess, BlockPos pPos, Direction pDirection, BlockPos pNeighborPos, BlockState pNeighborState, RandomSource pRandom) protected BlockState
FenceBlock.updateShape
(BlockState pState, LevelReader pLevel, ScheduledTickAccess pScheduledTickAccess, BlockPos pPos, Direction pDirection, BlockPos pNeighborPos, BlockState pNeighborState, RandomSource pRandom) protected BlockState
FenceGateBlock.updateShape
(BlockState pState, LevelReader pLevel, ScheduledTickAccess pScheduledTickAccess, BlockPos pPos, Direction pDirection, BlockPos pNeighborPos, BlockState pNeighborState, RandomSource pRandom) protected BlockState
FireBlock.updateShape
(BlockState pState, LevelReader pLevel, ScheduledTickAccess pScheduledTickAccess, BlockPos pPos, Direction pDirection, BlockPos pNeighborPos, BlockState pNeighborState, RandomSource pRandom) protected BlockState
FlowerPotBlock.updateShape
(BlockState pState, LevelReader pLevel, ScheduledTickAccess pScheduledTickAccess, BlockPos pPos, Direction pDirection, BlockPos pNeighborPos, BlockState pNeighborState, RandomSource pRandom) protected BlockState
FrogspawnBlock.updateShape
(BlockState pState, LevelReader pLevel, ScheduledTickAccess pScheduledTickAccess, BlockPos pPos, Direction pDirection, BlockPos pNeighborPos, BlockState pNeighborState, RandomSource pRandom) protected BlockState
GrowingPlantBodyBlock.updateShape
(BlockState pState, LevelReader pLevel, ScheduledTickAccess pScheduledTickAccess, BlockPos pPos, Direction pDirection, BlockPos pNeighborPos, BlockState pNeighborState, RandomSource pRandom) protected BlockState
GrowingPlantHeadBlock.updateShape
(BlockState pState, LevelReader pLevel, ScheduledTickAccess pScheduledTickAccess, BlockPos pPos, Direction pDirection, BlockPos pNeighborPos, BlockState pNeighborState, RandomSource pRandom) protected BlockState
HangingMossBlock.updateShape
(BlockState pState, LevelReader pLevel, ScheduledTickAccess pScheduledTickAccess, BlockPos pPos, Direction pDirection, BlockPos pNeighborPos, BlockState pNeighborState, RandomSource pRandom) protected BlockState
HangingRootsBlock.updateShape
(BlockState p_153351_, LevelReader p_374138_, ScheduledTickAccess p_374229_, BlockPos p_153355_, Direction p_153352_, BlockPos p_153356_, BlockState p_153353_, RandomSource p_374467_) protected BlockState
HeavyCoreBlock.updateShape
(BlockState p_338756_, LevelReader p_374371_, ScheduledTickAccess p_374063_, BlockPos p_338346_, Direction p_338189_, BlockPos p_338401_, BlockState p_338723_, RandomSource p_374262_) protected BlockState
HugeMushroomBlock.updateShape
(BlockState pState, LevelReader pLevel, ScheduledTickAccess pScheduledTickAccess, BlockPos pPos, Direction pDirection, BlockPos pNeighborPos, BlockState pNeighborState, RandomSource pRandom) protected BlockState
IronBarsBlock.updateShape
(BlockState pState, LevelReader pLevel, ScheduledTickAccess pScheduledTickAccess, BlockPos pPos, Direction pDirection, BlockPos pNeighborPos, BlockState pNeighborState, RandomSource pRandom) protected BlockState
LadderBlock.updateShape
(BlockState pState, LevelReader pLevel, ScheduledTickAccess pScheduledTickAccess, BlockPos pPos, Direction pDirection, BlockPos pNeighborPos, BlockState pNeighborState, RandomSource pRandom) protected BlockState
LanternBlock.updateShape
(BlockState pState, LevelReader pLevel, ScheduledTickAccess pScheduledTickAccess, BlockPos pPos, Direction pDirection, BlockPos pNeighborPos, BlockState pNeighborState, RandomSource pRandom) protected BlockState
LeavesBlock.updateShape
(BlockState pState, LevelReader pLevel, ScheduledTickAccess pScheduledTickAccess, BlockPos pPos, Direction pDirection, BlockPos pNeighborPos, BlockState pNeighborState, RandomSource pRandom) protected BlockState
LightBlock.updateShape
(BlockState pState, LevelReader pLevel, ScheduledTickAccess pScheduledTickAccess, BlockPos pPos, Direction pDirection, BlockPos pNeighborPos, BlockState pNeighborState, RandomSource pRandom) protected BlockState
LightningRodBlock.updateShape
(BlockState pState, LevelReader pLevel, ScheduledTickAccess pScheduledTickAccess, BlockPos pPos, Direction pDirection, BlockPos pNeighborPos, BlockState pNeighborState, RandomSource pRandom) protected BlockState
LiquidBlock.updateShape
(BlockState pState, LevelReader pLevel, ScheduledTickAccess pScheduledTickAccess, BlockPos pPos, Direction pDirection, BlockPos pNeighborPos, BlockState pNeighborState, RandomSource pRandom) protected BlockState
MagmaBlock.updateShape
(BlockState pState, LevelReader pLevel, ScheduledTickAccess pScheduledTickAccess, BlockPos pPos, Direction pDirection, BlockPos pNeighborPos, BlockState pNeighborState, RandomSource pRandom) protected BlockState
MangrovePropaguleBlock.updateShape
(BlockState pState, LevelReader pLevel, ScheduledTickAccess pScheduledTickAccess, BlockPos pPos, Direction pDirection, BlockPos pNeighborPos, BlockState pNeighborState, RandomSource pRandom) protected BlockState
MangroveRootsBlock.updateShape
(BlockState p_221514_, LevelReader p_374345_, ScheduledTickAccess p_374139_, BlockPos p_221518_, Direction p_221515_, BlockPos p_221519_, BlockState p_221516_, RandomSource p_374100_) protected BlockState
MossyCarpetBlock.updateShape
(BlockState pState, LevelReader pLevel, ScheduledTickAccess pScheduledTickAccess, BlockPos pPos, Direction pDirection, BlockPos pNeighborPos, BlockState pNeighborState, RandomSource pRandom) protected BlockState
MultifaceBlock.updateShape
(BlockState pState, LevelReader pLevel, ScheduledTickAccess pScheduledTickAccess, BlockPos pPos, Direction pDirection, BlockPos pNeighborPos, BlockState pNeighborState, RandomSource pRandom) protected BlockState
NetherPortalBlock.updateShape
(BlockState pState, LevelReader pLevel, ScheduledTickAccess pScheduledTickAccess, BlockPos pPos, Direction pDirection, BlockPos pNeighborPos, BlockState pNeighborState, RandomSource pRandom) protected BlockState
NoteBlock.updateShape
(BlockState pState, LevelReader pLevel, ScheduledTickAccess pScheduledTickAccess, BlockPos pPos, Direction pDirection, BlockPos pNeighborPos, BlockState pNeighborState, RandomSource pRandom) protected BlockState
ObserverBlock.updateShape
(BlockState pState, LevelReader pLevel, ScheduledTickAccess pScheduledTickAccess, BlockPos pPos, Direction pDirection, BlockPos pNeighborPos, BlockState pNeighborState, RandomSource pRandom) PitcherCropBlock.updateShape
(BlockState pState, LevelReader pLevel, ScheduledTickAccess pScheduledTickAccess, BlockPos pPos, Direction pDirection, BlockPos pNeighborPos, BlockState pNeighborState, RandomSource pRandom) protected BlockState
PointedDripstoneBlock.updateShape
(BlockState pState, LevelReader pLevel, ScheduledTickAccess pScheduledTickAccess, BlockPos pPos, Direction pDirection, BlockPos pNeighborPos, BlockState pNeighborState, RandomSource pRandom) protected BlockState
RedstoneWallTorchBlock.updateShape
(BlockState pState, LevelReader pLevel, ScheduledTickAccess pScheduledTickAccess, BlockPos pPos, Direction pDirection, BlockPos pNeighborPos, BlockState pNeighborState, RandomSource pRandom) protected BlockState
RedStoneWireBlock.updateShape
(BlockState pState, LevelReader pLevel, ScheduledTickAccess pScheduledTickAccess, BlockPos pPos, Direction pDirection, BlockPos pNeighborPos, BlockState pNeighborState, RandomSource pRandom) protected BlockState
RepeaterBlock.updateShape
(BlockState pState, LevelReader pLevel, ScheduledTickAccess pScheduledTickAccess, BlockPos pPos, Direction pDirection, BlockPos pNeighborPos, BlockState pNeighborState, RandomSource pRandom) protected BlockState
ScaffoldingBlock.updateShape
(BlockState pState, LevelReader pLevel, ScheduledTickAccess pScheduledTickAccess, BlockPos pPos, Direction pDirection, BlockPos pNeighborPos, BlockState pNeighborState, RandomSource pRandom) protected BlockState
SculkSensorBlock.updateShape
(BlockState pState, LevelReader pLevel, ScheduledTickAccess pScheduledTickAccess, BlockPos pPos, Direction pDirection, BlockPos pNeighborPos, BlockState pNeighborState, RandomSource pRandom) protected BlockState
SculkShriekerBlock.updateShape
(BlockState pState, LevelReader pLevel, ScheduledTickAccess pScheduledTickAccess, BlockPos pPos, Direction pDirection, BlockPos pNeighborPos, BlockState pNeighborState, RandomSource pRandom) protected BlockState
SeagrassBlock.updateShape
(BlockState p_154530_, LevelReader p_374421_, ScheduledTickAccess p_374071_, BlockPos p_154534_, Direction p_154531_, BlockPos p_154535_, BlockState p_154532_, RandomSource p_374406_) protected BlockState
SeaPickleBlock.updateShape
(BlockState pState, LevelReader pLevel, ScheduledTickAccess pScheduledTickAccess, BlockPos pPos, Direction pDirection, BlockPos pNeighborPos, BlockState pNeighborState, RandomSource pRandom) protected BlockState
SignBlock.updateShape
(BlockState pState, LevelReader pLevel, ScheduledTickAccess pScheduledTickAccess, BlockPos pPos, Direction pDirection, BlockPos pNeighborPos, BlockState pNeighborState, RandomSource pRandom) protected BlockState
SlabBlock.updateShape
(BlockState pState, LevelReader pLevel, ScheduledTickAccess pScheduledTickAccess, BlockPos pPos, Direction pDirection, BlockPos pNeighborPos, BlockState pNeighborState, RandomSource pRandom) protected BlockState
SmallDripleafBlock.updateShape
(BlockState p_154625_, LevelReader p_374488_, ScheduledTickAccess p_374525_, BlockPos p_154629_, Direction p_154626_, BlockPos p_154630_, BlockState p_154627_, RandomSource p_374277_) protected BlockState
SnowLayerBlock.updateShape
(BlockState pState, LevelReader pLevel, ScheduledTickAccess pScheduledTickAccess, BlockPos pPos, Direction pDirection, BlockPos pNeighborPos, BlockState pNeighborState, RandomSource pRandom) protected BlockState
SnowyDirtBlock.updateShape
(BlockState pState, LevelReader pLevel, ScheduledTickAccess pScheduledTickAccess, BlockPos pPos, Direction pDirection, BlockPos pNeighborPos, BlockState pNeighborState, RandomSource pRandom) protected BlockState
SoulFireBlock.updateShape
(BlockState pState, LevelReader pLevel, ScheduledTickAccess pScheduledTickAccess, BlockPos pPos, Direction pDirection, BlockPos pNeighborPos, BlockState pNeighborState, RandomSource pRandom) protected BlockState
SoulSandBlock.updateShape
(BlockState pState, LevelReader pLevel, ScheduledTickAccess pScheduledTickAccess, BlockPos pPos, Direction pDirection, BlockPos pNeighborPos, BlockState pNeighborState, RandomSource pRandom) protected BlockState
SporeBlossomBlock.updateShape
(BlockState p_154713_, LevelReader p_374047_, ScheduledTickAccess p_374543_, BlockPos p_154717_, Direction p_154714_, BlockPos p_154718_, BlockState p_154715_, RandomSource p_374461_) protected BlockState
StairBlock.updateShape
(BlockState pState, LevelReader pLevel, ScheduledTickAccess pScheduledTickAccess, BlockPos pPos, Direction pDirection, BlockPos pNeighborPos, BlockState pNeighborState, RandomSource pRandom) protected BlockState
StandingSignBlock.updateShape
(BlockState pState, LevelReader pLevel, ScheduledTickAccess pScheduledTickAccess, BlockPos pPos, Direction pDirection, BlockPos pNeighborPos, BlockState pNeighborState, RandomSource pRandom) protected BlockState
SugarCaneBlock.updateShape
(BlockState pState, LevelReader pLevel, ScheduledTickAccess pScheduledTickAccess, BlockPos pPos, Direction pDirection, BlockPos pNeighborPos, BlockState pNeighborState, RandomSource pRandom) protected BlockState
TrapDoorBlock.updateShape
(BlockState pState, LevelReader pLevel, ScheduledTickAccess pScheduledTickAccess, BlockPos pPos, Direction pDirection, BlockPos pNeighborPos, BlockState pNeighborState, RandomSource pRandom) protected BlockState
TripWireBlock.updateShape
(BlockState pState, LevelReader pLevel, ScheduledTickAccess pScheduledTickAccess, BlockPos pPos, Direction pDirection, BlockPos pNeighborPos, BlockState pNeighborState, RandomSource pRandom) protected BlockState
TripWireHookBlock.updateShape
(BlockState pState, LevelReader pLevel, ScheduledTickAccess pScheduledTickAccess, BlockPos pPos, Direction pDirection, BlockPos pNeighborPos, BlockState pNeighborState, RandomSource pRandom) protected BlockState
VegetationBlock.updateShape
(BlockState pState, LevelReader pLevel, ScheduledTickAccess pScheduledTickAccess, BlockPos pPos, Direction pDirection, BlockPos pNeighborPos, BlockState pNeighborState, RandomSource pRandom) protected BlockState
VineBlock.updateShape
(BlockState pState, LevelReader pLevel, ScheduledTickAccess pScheduledTickAccess, BlockPos pPos, Direction pDirection, BlockPos pNeighborPos, BlockState pNeighborState, RandomSource pRandom) protected BlockState
WallBannerBlock.updateShape
(BlockState pState, LevelReader pLevel, ScheduledTickAccess pScheduledTickAccess, BlockPos pPos, Direction pDirection, BlockPos pNeighborPos, BlockState pNeighborState, RandomSource pRandom) protected BlockState
WallBlock.updateShape
(BlockState pState, LevelReader pLevel, ScheduledTickAccess pScheduledTickAccess, BlockPos pPos, Direction pDirection, BlockPos pNeighborPos, BlockState pNeighborState, RandomSource pRandom) protected BlockState
WallHangingSignBlock.updateShape
(BlockState pState, LevelReader pLevel, ScheduledTickAccess pScheduledTickAccess, BlockPos pPos, Direction pDirection, BlockPos pNeighborPos, BlockState pNeighborState, RandomSource pRandom) protected BlockState
WallSignBlock.updateShape
(BlockState pState, LevelReader pLevel, ScheduledTickAccess pScheduledTickAccess, BlockPos pPos, Direction pDirection, BlockPos pNeighborPos, BlockState pNeighborState, RandomSource pRandom) protected BlockState
WallTorchBlock.updateShape
(BlockState pState, LevelReader pLevel, ScheduledTickAccess pScheduledTickAccess, BlockPos pPos, Direction pDirection, BlockPos pNeighborPos, BlockState pNeighborState, RandomSource pRandom) protected BlockState
WaterloggedTransparentBlock.updateShape
(BlockState p_313906_, LevelReader p_374178_, ScheduledTickAccess p_374293_, BlockPos p_313842_, Direction p_313739_, BlockPos p_313843_, BlockState p_313829_, RandomSource p_374433_) Method parameters in net.minecraft.world.level.block with type arguments of type DirectionModifier and TypeMethodDescriptiondefault boolean
SculkBehaviour.attemptSpreadVein
(LevelAccessor pLevel, BlockPos pPos, BlockState pState, Collection<Direction> pDirections, boolean pMarkForPostprocessing) static <S extends BlockEntity>
DoubleBlockCombiner.NeighborCombineResult<S> DoubleBlockCombiner.combineWithNeigbour
(BlockEntityType<S> pBlockEntityType, Function<BlockState, DoubleBlockCombiner.BlockType> pDoubleBlockTypeGetter, Function<BlockState, Direction> pDirectionGetter, Property<Direction> pDirectionProperty, BlockState pState, LevelAccessor pLevel, BlockPos pPos, BiPredicate<LevelAccessor, BlockPos> pBlockedChestTest) default Function
<BlockState, VoxelShape> SegmentableBlock.getShapeCalculator
(EnumProperty<Direction> pDirectionProperty, IntegerProperty pAmountProperty) BonemealableBlock.getSpreadableNeighbourPos
(List<Direction> pDirections, LevelReader pLevel, BlockPos pPos, BlockState pState) default BlockState
SegmentableBlock.getStateForPlacement
(BlockPlaceContext pContext, Block pBlock, IntegerProperty pAmountProperty, EnumProperty<Direction> pDirectionProperty) private BlockState
MultifaceBlock.mapDirections
(BlockState pState, Function<Direction, Direction> pDirectionalFunction) private BlockState
MultifaceBlock.mapDirections
(BlockState pState, Function<Direction, Direction> pDirectionalFunction) static byte
MultifaceBlock.pack
(Collection<Direction> pDirections) static boolean
SculkVeinBlock.regrow
(LevelAccessor pLevel, BlockPos pPos, BlockState pState, Collection<Direction> pDirections) Constructors in net.minecraft.world.level.block with parameters of type DirectionModifierConstructorDescriptionGrowingPlantBlock
(BlockBehaviour.Properties pProperties, Direction pGrowthDirection, VoxelShape pShape, boolean pScheduleFluidTicks) GrowingPlantBodyBlock
(BlockBehaviour.Properties pProperties, Direction pGrowthDirection, VoxelShape pShape, boolean pScheduleFluidTicks) GrowingPlantHeadBlock
(BlockBehaviour.Properties pProperties, Direction pGrowthDirection, VoxelShape pShape, boolean pScheduleFluidTicks, double pGrowPerTickProbability) Creates an instance of aSpreadPos
record class.Constructor parameters in net.minecraft.world.level.block with type arguments of type DirectionModifierConstructorDescriptionprivate
ChargeCursor
(BlockPos pPos, int pCharge, int p_222301_, int p_222302_, Optional<Set<Direction>> p_222303_) -
Uses of Direction in net.minecraft.world.level.block.entity
Fields in net.minecraft.world.level.block.entity declared as DirectionModifier and TypeFieldDescriptionBellBlockEntity.clickDirection
private Direction
HopperBlockEntity.facing
private Direction
BrushableBlockEntity.hitDirection
Methods in net.minecraft.world.level.block.entity that return DirectionModifier and TypeMethodDescriptionDecoratedPotBlockEntity.getDirection()
BrushableBlockEntity.getHitDirection()
Methods in net.minecraft.world.level.block.entity with parameters of type DirectionModifier and TypeMethodDescriptionstatic ItemStack
HopperBlockEntity.addItem
(Container pSource, Container pDestination, ItemStack pStack, Direction pDirection) Attempts to place the passed stack in the container, using as many slots as required.boolean
BrushableBlockEntity.brush
(long pStartTick, ServerLevel pLevel, LivingEntity pBrusher, Direction pHitDirection, ItemStack pStack) private static boolean
HopperBlockEntity.canPlaceItemInContainer
(Container pContainer, ItemStack pStack, int pSlot, Direction pDirection) boolean
AbstractFurnaceBlockEntity.canPlaceItemThroughFace
(int pIndex, ItemStack pItemStack, Direction pDirection) Returnstrue
if automation can insert the given item in the given slot from the given side.boolean
BrewingStandBlockEntity.canPlaceItemThroughFace
(int pIndex, ItemStack pItemStack, Direction pDirection) Returnstrue
if automation can insert the given item in the given slot from the given side.boolean
ShulkerBoxBlockEntity.canPlaceItemThroughFace
(int pIndex, ItemStack pItemStack, Direction pDirection) Returnstrue
if automation can insert the given item in the given slot from the given side.private static boolean
HopperBlockEntity.canTakeItemFromContainer
(Container pSource, Container pDestination, ItemStack pStack, int pSlot, Direction pDirection) boolean
AbstractFurnaceBlockEntity.canTakeItemThroughFace
(int pIndex, ItemStack pStack, Direction pDirection) Returnstrue
if automation can extract the given item in the given slot from the given side.boolean
BrewingStandBlockEntity.canTakeItemThroughFace
(int pIndex, ItemStack pStack, Direction pDirection) Returnstrue
if automation can extract the given item in the given slot from the given side.boolean
ShulkerBoxBlockEntity.canTakeItemThroughFace
(int pIndex, ItemStack pStack, Direction pDirection) Returnstrue
if automation can extract the given item in the given slot from the given side.static ContainerOrHandler
HopperBlockEntity.getContainerOrHandlerAt
(Level level, BlockPos pos, Direction side) private static ContainerOrHandler
HopperBlockEntity.getContainerOrHandlerAt
(Level level, BlockPos pos, BlockState state, double x, double y, double z, Direction side) private static int[]
int[]
AbstractFurnaceBlockEntity.getSlotsForFace
(Direction pSide) int[]
BrewingStandBlockEntity.getSlotsForFace
(Direction pSide) int[]
ShulkerBoxBlockEntity.getSlotsForFace
(Direction pSide) private static boolean
HopperBlockEntity.isFullContainer
(Container pContainer, Direction pDirection) void
boolean
TheEndGatewayBlockEntity.shouldRenderFace
(Direction pFace) boolean
TheEndPortalBlockEntity.shouldRenderFace
(Direction pFace) private static ItemStack
HopperBlockEntity.tryMoveInItem
(Container pSource, Container pDestination, ItemStack pStack, int pSlot, Direction pDirection) private static boolean
HopperBlockEntity.tryTakeInItemFromSlot
(Hopper pHopper, Container pContainer, int pSlot, Direction pDirection) Pulls from the specified slot in the container and places in any available slot in the hopper. -
Uses of Direction in net.minecraft.world.level.block.entity.vault
Methods in net.minecraft.world.level.block.entity.vault with parameters of type DirectionModifier and TypeMethodDescriptionprivate static Vec3
VaultBlockEntity.Client.keyholePos
(BlockPos pPos, Direction pFacing) -
Uses of Direction in net.minecraft.world.level.block.piston
Fields in net.minecraft.world.level.block.piston declared as DirectionModifier and TypeFieldDescriptionprivate Direction
PistonMovingBlockEntity.direction
private final Direction
PistonStructureResolver.pistonDirection
private final Direction
PistonStructureResolver.pushDirection
Fields in net.minecraft.world.level.block.piston with type parameters of type DirectionModifier and TypeFieldDescriptionstatic final EnumProperty
<Direction> MovingPistonBlock.FACING
private static final ThreadLocal
<Direction> PistonMovingBlockEntity.NOCLIP
private static final Map
<Direction, VoxelShape> PistonBaseBlock.SHAPES
private static final Map
<Direction, VoxelShape> PistonHeadBlock.SHAPES
private static final Map
<Direction, VoxelShape> PistonHeadBlock.SHAPES_SHORT
Methods in net.minecraft.world.level.block.piston that return DirectionModifier and TypeMethodDescriptionPistonMovingBlockEntity.getDirection()
PistonMovingBlockEntity.getMovementDirection()
PistonMovingBlockEntity.getPushDirection()
PistonStructureResolver.getPushDirection()
Methods in net.minecraft.world.level.block.piston with parameters of type DirectionModifier and TypeMethodDescriptionprivate boolean
PistonStructureResolver.addBlockLine
(BlockPos pOriginPos, Direction pDirection) private static void
PistonMovingBlockEntity.fixEntityWithinPistonBase
(BlockPos pPos, Entity pEntity, Direction pDir, double pProgress) private static double
PistonMovingBlockEntity.getMovement
(AABB pHeadShape, Direction pDirection, AABB pFacing) static AABB
PistonMath.getMovementArea
(AABB pBounds, Direction pDir, double pDelta) private boolean
PistonBaseBlock.getNeighborSignal
(SignalGetter pSignalGetter, BlockPos pPos, Direction pDirection) static boolean
PistonBaseBlock.isPushable
(BlockState pState, Level pLevel, BlockPos pPos, Direction pMovementDirection, boolean pAllowDestroy, Direction pPistonFacing) Checks if the piston can push the given BlockState.private boolean
PistonBaseBlock.moveBlocks
(Level pLevel, BlockPos pPos, Direction pFacing, boolean pExtending) private static void
PistonMovingBlockEntity.moveEntityByPiston
(Direction pNoClipDirection, Entity pEntity, double pProgress, Direction pDirection) static BlockEntity
MovingPistonBlock.newMovingBlockEntity
(BlockPos pPos, BlockState pBlockState, BlockState pMovedState, Direction pDirection, boolean pExtending, boolean pIsSourcePiston) protected BlockState
PistonHeadBlock.updateShape
(BlockState pState, LevelReader pLevel, ScheduledTickAccess pScheduledTickAccess, BlockPos pPos, Direction pDirection, BlockPos pNeighborPos, BlockState pNeighborState, RandomSource pRandom) Constructors in net.minecraft.world.level.block.piston with parameters of type DirectionModifierConstructorDescriptionPistonMovingBlockEntity
(BlockPos pPos, BlockState pBlockState, BlockState pMovedState, Direction pDirection, boolean pExtending, boolean pIsSourcePiston) PistonStructureResolver
(Level pLevel, BlockPos pPistonPos, Direction pPistonDirection, boolean pExtending) -
Uses of Direction in net.minecraft.world.level.block.state
Fields in net.minecraft.world.level.block.state declared as DirectionModifier and TypeFieldDescriptionprivate static final Direction[]
BlockBehaviour.BlockStateBase.Cache.DIRECTIONS
private static final Direction[]
BlockBehaviour.BlockStateBase.DIRECTIONS
protected static final Direction[]
BlockBehaviour.UPDATE_SHAPE_ORDER
Methods in net.minecraft.world.level.block.state with parameters of type DirectionModifier and TypeMethodDescriptionfinal boolean
BlockBehaviour.BlockStateBase.entityCanStandOnFace
(BlockGetter pLevel, BlockPos pPos, Entity pEntity, Direction pFace) int
BlockBehaviour.BlockStateBase.getDirectSignal
(BlockGetter pLevel, BlockPos pPos, Direction pDirection) protected int
BlockBehaviour.getDirectSignal
(BlockState pState, BlockGetter pLevel, BlockPos pPos, Direction pDirection) Returns the direct signal this block emits in the given direction.BlockBehaviour.BlockStateBase.getFaceOcclusionShape
(Direction pFace) private static int
BlockBehaviour.BlockStateBase.Cache.getFaceSupportIndex
(Direction pDirection, SupportType pSupportType) int
BlockBehaviour.BlockStateBase.getSignal
(BlockGetter pLevel, BlockPos pPos, Direction pDirection) protected int
BlockBehaviour.getSignal
(BlockState pState, BlockGetter pLevel, BlockPos pPos, Direction pDirection) Returns the signal this block emits in the given direction.boolean
BlockBehaviour.BlockStateBase.Cache.isFaceSturdy
(Direction pDirection, SupportType pSupportType) boolean
BlockBehaviour.BlockStateBase.isFaceSturdy
(BlockGetter pLevel, BlockPos pPos, Direction pDirection) boolean
BlockBehaviour.BlockStateBase.isFaceSturdy
(BlockGetter pLevel, BlockPos pPos, Direction pFace, SupportType pSupportType) boolean
BlockBehaviour.BlockStateBase.skipRendering
(BlockState pState, Direction pFace) protected boolean
BlockBehaviour.skipRendering
(BlockState pState, BlockState pAdjacentState, Direction pDirection) BlockBehaviour.BlockStateBase.updateShape
(LevelReader pLevel, ScheduledTickAccess pScheduledTickAccess, BlockPos pPos, Direction pDirection, BlockPos pNeighborPos, BlockState pNeighborState, RandomSource pRandom) protected BlockState
BlockBehaviour.updateShape
(BlockState pState, LevelReader pLevel, ScheduledTickAccess pScheduledTickAccess, BlockPos pPos, Direction pDirection, BlockPos pNeighborPos, BlockState pNeighborState, RandomSource pRandom) -
Uses of Direction in net.minecraft.world.level.block.state.pattern
Fields in net.minecraft.world.level.block.state.pattern declared as DirectionModifier and TypeFieldDescriptionprivate final Direction
BlockPattern.BlockPatternMatch.forwards
private final Direction
BlockPattern.BlockPatternMatch.up
Methods in net.minecraft.world.level.block.state.pattern that return DirectionModifier and TypeMethodDescriptionBlockPattern.BlockPatternMatch.getForwards()
BlockPattern.BlockPatternMatch.getUp()
Methods in net.minecraft.world.level.block.state.pattern with parameters of type DirectionModifier and TypeMethodDescriptionprivate BlockPattern.BlockPatternMatch
BlockPattern.matches
(BlockPos p_61198_, Direction p_61199_, Direction p_61200_, com.google.common.cache.LoadingCache<BlockPos, BlockInWorld> p_61201_) BlockPattern.matches
(LevelReader pLevel, BlockPos pPos, Direction pFinger, Direction pThumb) protected static BlockPos
BlockPattern.translateAndRotate
(BlockPos pPos, Direction pFinger, Direction pThumb, int pPalmOffset, int pThumbOffset, int pFingerOffset) Offsets the position of pos in the direction of finger and thumb facing by offset amounts, follows the right-hand rule for cross products (finger, thumb, palm)Constructors in net.minecraft.world.level.block.state.pattern with parameters of type DirectionModifierConstructorDescriptionBlockPatternMatch
(BlockPos p_61221_, Direction p_61222_, Direction p_61223_, com.google.common.cache.LoadingCache<BlockPos, BlockInWorld> p_61224_, int p_61225_, int p_61226_, int p_61227_) -
Uses of Direction in net.minecraft.world.level.block.state.properties
Fields in net.minecraft.world.level.block.state.properties declared as DirectionFields in net.minecraft.world.level.block.state.properties with type parameters of type DirectionModifier and TypeFieldDescriptionstatic final EnumProperty
<Direction> BlockStateProperties.FACING
static final EnumProperty
<Direction> BlockStateProperties.FACING_HOPPER
static final EnumProperty
<Direction> BlockStateProperties.HORIZONTAL_FACING
static final EnumProperty
<Direction> BlockStateProperties.VERTICAL_DIRECTION
Methods in net.minecraft.world.level.block.state.properties that return DirectionMethods in net.minecraft.world.level.block.state.properties that return types with arguments of type DirectionMethods in net.minecraft.world.level.block.state.properties with parameters of type DirectionModifier and TypeMethodDescriptionstatic int
RotationSegment.convertToSegment
(Direction pDirection) Constructors in net.minecraft.world.level.block.state.properties with parameters of type Direction -
Uses of Direction in net.minecraft.world.level.border
Fields in net.minecraft.world.level.border declared as DirectionModifier and TypeFieldDescriptionprivate final Direction
WorldBorder.DistancePerDirection.direction
The field for thedirection
record component.Methods in net.minecraft.world.level.border that return DirectionModifier and TypeMethodDescriptionWorldBorder.DistancePerDirection.direction()
Returns the value of thedirection
record component.Constructors in net.minecraft.world.level.border with parameters of type DirectionModifierConstructorDescriptionDistancePerDirection
(Direction direction, double distance) Creates an instance of aDistancePerDirection
record class. -
Uses of Direction in net.minecraft.world.level.chunk
Fields in net.minecraft.world.level.chunk declared as DirectionMethods in net.minecraft.world.level.chunk with parameters of type DirectionModifier and TypeMethodDescriptionUpgradeData.BlockFixer.updateShape
(BlockState pState, Direction pDirection, BlockState pOffsetState, LevelAccessor pLevel, BlockPos pPos, BlockPos pOffsetPos) private static BlockState
UpgradeData.updateState
(BlockState pState, Direction pDirection, LevelAccessor pLevel, BlockPos pPos, BlockPos pOffsetPos) -
Uses of Direction in net.minecraft.world.level.levelgen
Methods in net.minecraft.world.level.levelgen with parameters of type DirectionModifier and TypeMethodDescriptionprivate static OptionalInt
Column.scanDirection
(LevelSimulatedReader pLevel, int pMaxDistance, Predicate<BlockState> pColumnPredicate, Predicate<BlockState> pTipPredicate, BlockPos.MutableBlockPos pMutablePos, int pStartY, Direction pDirection) Scans for a sequence of states in a givendirection
, up to a length ofmaxDistance
which satisfycolumnPredicate
, and ending with a state which satisfiestipPredicate
. -
Uses of Direction in net.minecraft.world.level.levelgen.blockpredicates
Fields in net.minecraft.world.level.levelgen.blockpredicates declared as DirectionMethods in net.minecraft.world.level.levelgen.blockpredicates with parameters of type DirectionModifier and TypeMethodDescriptionstatic BlockPredicate
BlockPredicate.hasSturdyFace
(Direction pDirection) static BlockPredicate
BlockPredicate.hasSturdyFace
(Vec3i pOffset, Direction pDirection) Constructors in net.minecraft.world.level.levelgen.blockpredicates with parameters of type Direction -
Uses of Direction in net.minecraft.world.level.levelgen.feature
Fields in net.minecraft.world.level.levelgen.feature declared as DirectionModifier and TypeFieldDescriptionprivate static final Direction[]
DeltaFeature.DIRECTIONS
private static final Direction[]
GeodeFeature.DIRECTIONS
private static final Direction[]
WeepingVinesFeature.DIRECTIONS
Methods in net.minecraft.world.level.levelgen.feature that return types with arguments of type DirectionModifier and TypeMethodDescriptionPointedDripstoneFeature.getTipDirection
(LevelAccessor pLevel, BlockPos pPos, RandomSource pRandom) Methods in net.minecraft.world.level.levelgen.feature with parameters of type DirectionModifier and TypeMethodDescriptionprotected static void
DripstoneUtils.buildBaseToTipColumn
(Direction pDirection, int pHeight, boolean pMergeTip, Consumer<BlockState> pBlockSetter) private boolean
FallenTreeFeature.canPlaceEntireFallenLog
(WorldGenLevel pLevel, int pLogLength, BlockPos.MutableBlockPos pPos, Direction pDirection) private static BlockState
DripstoneUtils.createPointedDripstone
(Direction pDirection, DripstoneThickness pDripstoneThickness) private static Function
<BlockState, BlockState> FallenTreeFeature.getSidewaysStateModifier
(Direction pDirection) protected static void
DripstoneUtils.growPointedDripstone
(LevelAccessor pLevel, BlockPos pPos, Direction pDirection, int pHeight, boolean pMergeTip) private static boolean
WaterloggedVegetationPatchFeature.isExposedDirection
(WorldGenLevel pLevel, BlockPos pPos, BlockPos.MutableBlockPos pMutablePos, Direction pDirection) private void
FallenTreeFeature.placeFallenLog
(FallenTreeConfiguration pConfig, WorldGenLevel pLevel, RandomSource pRandom, int pLogLength, BlockPos.MutableBlockPos pPos, Direction pDirection) private void
DripstoneClusterFeature.replaceBlocksWithDripstoneBlocks
(WorldGenLevel pLevel, BlockPos pPos, int pThickness, Direction pDirection) Method parameters in net.minecraft.world.level.levelgen.feature with type arguments of type DirectionModifier and TypeMethodDescriptionstatic boolean
MultifaceGrowthFeature.placeGrowthIfPossible
(WorldGenLevel pLevel, BlockPos pPos, BlockState pState, MultifaceGrowthConfiguration pConfig, RandomSource pRandom, List<Direction> pDirections) -
Uses of Direction in net.minecraft.world.level.levelgen.feature.configurations
Fields in net.minecraft.world.level.levelgen.feature.configurations declared as DirectionModifier and TypeFieldDescriptionprivate final Direction
BlockColumnConfiguration.direction
The field for thedirection
record component.Fields in net.minecraft.world.level.levelgen.feature.configurations with type parameters of type DirectionModifier and TypeFieldDescriptionprivate final it.unimi.dsi.fastutil.objects.ObjectArrayList
<Direction> MultifaceGrowthConfiguration.validDirections
Methods in net.minecraft.world.level.levelgen.feature.configurations that return DirectionModifier and TypeMethodDescriptionBlockColumnConfiguration.direction()
Returns the value of thedirection
record component.Methods in net.minecraft.world.level.levelgen.feature.configurations that return types with arguments of type DirectionModifier and TypeMethodDescriptionMultifaceGrowthConfiguration.getShuffledDirections
(RandomSource pRandom) MultifaceGrowthConfiguration.getShuffledDirectionsExcept
(RandomSource pRandom, Direction pDirection) Methods in net.minecraft.world.level.levelgen.feature.configurations with parameters of type DirectionModifier and TypeMethodDescriptionMultifaceGrowthConfiguration.getShuffledDirectionsExcept
(RandomSource pRandom, Direction pDirection) Constructors in net.minecraft.world.level.levelgen.feature.configurations with parameters of type DirectionModifierConstructorDescriptionBlockColumnConfiguration
(List<BlockColumnConfiguration.Layer> layers, Direction direction, BlockPredicate allowedPlacement, boolean prioritizeTip) Creates an instance of aBlockColumnConfiguration
record class. -
Uses of Direction in net.minecraft.world.level.levelgen.feature.rootplacers
Methods in net.minecraft.world.level.levelgen.feature.rootplacers with parameters of type DirectionModifier and TypeMethodDescriptionMangroveRootPlacer.potentialRootPositions
(BlockPos pPos, Direction pDirection, RandomSource pRandom, BlockPos pTrunkOrigin) private boolean
MangroveRootPlacer.simulateRoots
(LevelSimulatedReader pLevel, RandomSource pRandom, BlockPos pPos, Direction pDirection, BlockPos pTrunkOrigin, List<BlockPos> pRoots, int pLength) -
Uses of Direction in net.minecraft.world.level.levelgen.feature.treedecorators
Fields in net.minecraft.world.level.levelgen.feature.treedecorators declared as DirectionModifier and TypeFieldDescriptionprivate static final Direction[]
BeehiveDecorator.SPAWN_DIRECTIONS
private static final Direction
BeehiveDecorator.WORLDGEN_FACING
Fields in net.minecraft.world.level.levelgen.feature.treedecorators with type parameters of type DirectionModifier and TypeFieldDescriptionAttachedToLeavesDecorator.directions
AttachedToLogsDecorator.directions
Methods in net.minecraft.world.level.levelgen.feature.treedecorators with parameters of type DirectionModifier and TypeMethodDescriptionprivate boolean
AttachedToLeavesDecorator.hasRequiredEmptyBlocks
(TreeDecorator.Context pContext, BlockPos pPos, Direction pDirection) Constructor parameters in net.minecraft.world.level.levelgen.feature.treedecorators with type arguments of type DirectionModifierConstructorDescriptionAttachedToLeavesDecorator
(float p_225988_, int p_225989_, int p_225990_, BlockStateProvider p_225991_, int p_225992_, List<Direction> p_225993_) AttachedToLogsDecorator
(float p_410363_, BlockStateProvider p_410551_, List<Direction> p_409683_) -
Uses of Direction in net.minecraft.world.level.levelgen.feature.trunkplacers
Methods in net.minecraft.world.level.levelgen.feature.trunkplacers with parameters of type DirectionModifier and TypeMethodDescriptionprivate FoliagePlacer.FoliageAttachment
CherryTrunkPlacer.generateBranch
(LevelSimulatedReader pLevel, BiConsumer<BlockPos, BlockState> pBlockSetter, RandomSource pRandom, int pFreeTreeHeight, BlockPos pPos, TreeConfiguration pConfig, Function<BlockState, BlockState> pPropertySetter, Direction pDirection, int pSecondBranchStartOffsetFromTop, boolean pDoubleBranch, BlockPos.MutableBlockPos pCurrentPos) private void
UpwardsBranchingTrunkPlacer.placeBranch
(LevelSimulatedReader pLevel, BiConsumer<BlockPos, BlockState> pBlockSetter, RandomSource pRandom, int pFreeTreeHeight, TreeConfiguration pTreeConfig, List<FoliagePlacer.FoliageAttachment> pFoliageAttachments, BlockPos.MutableBlockPos pPos, int pY, Direction pDirection, int pExtraBranchLength, int pExtraBranchSteps) -
Uses of Direction in net.minecraft.world.level.levelgen.placement
Fields in net.minecraft.world.level.levelgen.placement declared as DirectionModifier and TypeFieldDescriptionprivate final Direction
CaveSurface.direction
private final Direction
EnvironmentScanPlacement.directionOfSearch
Methods in net.minecraft.world.level.levelgen.placement that return DirectionMethods in net.minecraft.world.level.levelgen.placement with parameters of type DirectionModifier and TypeMethodDescriptionstatic EnvironmentScanPlacement
EnvironmentScanPlacement.scanningFor
(Direction pDirectionOfSearch, BlockPredicate pTargetCondition, int pMaxSteps) static EnvironmentScanPlacement
EnvironmentScanPlacement.scanningFor
(Direction pDirectionOfSearch, BlockPredicate pTargetCondition, BlockPredicate pAllowedSearchCondition, int pMaxSteps) Constructors in net.minecraft.world.level.levelgen.placement with parameters of type DirectionModifierConstructorDescriptionprivate
CaveSurface
(Direction pDirection, int pY, String pId) private
EnvironmentScanPlacement
(Direction p_191645_, BlockPredicate p_191646_, BlockPredicate p_191647_, int p_191648_) -
Uses of Direction in net.minecraft.world.level.levelgen.structure
Fields in net.minecraft.world.level.levelgen.structure declared as DirectionMethods in net.minecraft.world.level.levelgen.structure that return DirectionModifier and TypeMethodDescriptionStructurePiece.getOrientation()
protected static Direction
StructurePiece.getRandomHorizontalDirection
(RandomSource pRandom) Methods in net.minecraft.world.level.levelgen.structure with parameters of type DirectionModifier and TypeMethodDescriptionprotected boolean
StructurePiece.createDispenser
(WorldGenLevel pLevel, BoundingBox pBox, RandomSource pRandom, int pX, int pY, int pZ, Direction pFacing, ResourceKey<LootTable> pLootTable) protected static BoundingBox
StructurePiece.makeBoundingBox
(int pX, int pY, int pZ, Direction pDirection, int pOffsetX, int pOffsetY, int pOffsetZ) static BoundingBox
BoundingBox.orientBox
(int pStructureMinX, int pStructureMinY, int pStructureMinZ, int pXMin, int pYMin, int pZMin, int pXMax, int pYMax, int pZMax, Direction pFacing) Create a bounding box with the specified dimensions and rotate it.void
StructurePiece.setOrientation
(Direction pOrientation) Constructors in net.minecraft.world.level.levelgen.structure with parameters of type DirectionModifierConstructorDescriptionprotected
ScatteredFeaturePiece
(StructurePieceType pType, int pX, int pY, int pZ, int pWidth, int pHeight, int pDepth, Direction pOrientation) -
Uses of Direction in net.minecraft.world.level.levelgen.structure.structures
Fields in net.minecraft.world.level.levelgen.structure.structures declared as DirectionModifier and TypeFieldDescriptionprivate final Direction
MineshaftPieces.MineShaftCrossing.direction
Methods in net.minecraft.world.level.levelgen.structure.structures that return DirectionModifier and TypeMethodDescriptionWoodlandMansionPieces.MansionGrid.get1x2RoomDirection
(WoodlandMansionPieces.SimpleGrid pLayout, int pX, int pY, int pFloor, int pRoomId) Methods in net.minecraft.world.level.levelgen.structure.structures with parameters of type DirectionModifier and TypeMethodDescriptionprivate void
WoodlandMansionPieces.MansionPiecePlacer.addRoom1x1
(List<WoodlandMansionPieces.WoodlandMansionPiece> pPieces, BlockPos pPos, Rotation pRotation, Direction pDirection, WoodlandMansionPieces.FloorRoomCollection pFloorRooms) private void
WoodlandMansionPieces.MansionPiecePlacer.addRoom1x2
(List<WoodlandMansionPieces.WoodlandMansionPiece> pPieces, BlockPos pPos, Rotation pRotation, Direction pFrontDirection, Direction pSideDirection, WoodlandMansionPieces.FloorRoomCollection pFloorRooms, boolean pIsStairs) private void
WoodlandMansionPieces.MansionPiecePlacer.addRoom2x2
(List<WoodlandMansionPieces.WoodlandMansionPiece> pPieces, BlockPos pPos, Rotation pRotation, Direction pFrontDirection, Direction pSideDirection, WoodlandMansionPieces.FloorRoomCollection pFloorRooms) OceanMonumentPieces.FitDoubleXRoom.create
(Direction p_228594_, OceanMonumentPieces.RoomDefinition p_228595_, RandomSource p_228596_) OceanMonumentPieces.FitDoubleXYRoom.create
(Direction p_228601_, OceanMonumentPieces.RoomDefinition p_228602_, RandomSource p_228603_) OceanMonumentPieces.FitDoubleYRoom.create
(Direction p_228608_, OceanMonumentPieces.RoomDefinition p_228609_, RandomSource p_228610_) OceanMonumentPieces.FitDoubleYZRoom.create
(Direction p_228615_, OceanMonumentPieces.RoomDefinition p_228616_, RandomSource p_228617_) OceanMonumentPieces.FitDoubleZRoom.create
(Direction p_228622_, OceanMonumentPieces.RoomDefinition p_228623_, RandomSource p_228624_) OceanMonumentPieces.FitSimpleRoom.create
(Direction p_228629_, OceanMonumentPieces.RoomDefinition p_228630_, RandomSource p_228631_) OceanMonumentPieces.FitSimpleTopRoom.create
(Direction p_228636_, OceanMonumentPieces.RoomDefinition p_228637_, RandomSource p_228638_) OceanMonumentPieces.MonumentRoomFitter.create
(Direction pDirection, OceanMonumentPieces.RoomDefinition pRoom, RandomSource pRandom) NetherFortressPieces.BridgeCrossing.createPiece
(StructurePieceAccessor pPieces, int pX, int pY, int pZ, Direction pOrientation, int pGenDepth) NetherFortressPieces.BridgeEndFiller.createPiece
(StructurePieceAccessor pPieces, RandomSource pRandom, int pX, int pY, int pZ, Direction pOrientation, int pGenDepth) NetherFortressPieces.BridgeStraight.createPiece
(StructurePieceAccessor pPieces, RandomSource pRandom, int pX, int pY, int pZ, Direction pOrientation, int pGenDepth) NetherFortressPieces.CastleCorridorStairsPiece.createPiece
(StructurePieceAccessor pPieces, int pX, int pY, int pZ, Direction pOrientation, int pGenDepth) NetherFortressPieces.CastleCorridorTBalconyPiece.createPiece
(StructurePieceAccessor pPieces, int pX, int pY, int pZ, Direction pOrientation, int pGenDepth) NetherFortressPieces.CastleEntrance.createPiece
(StructurePieceAccessor pPieces, RandomSource pRandom, int pX, int pY, int pZ, Direction pOrientation, int pGenDepth) NetherFortressPieces.CastleSmallCorridorCrossingPiece.createPiece
(StructurePieceAccessor pPieces, int pX, int pY, int pZ, Direction pOrientation, int pGenDepth) NetherFortressPieces.CastleSmallCorridorLeftTurnPiece.createPiece
(StructurePieceAccessor pPieces, RandomSource pRandom, int pX, int pY, int pZ, Direction pOrientation, int pGenDepth) NetherFortressPieces.CastleSmallCorridorPiece.createPiece
(StructurePieceAccessor pPieces, int pX, int pY, int pZ, Direction pOrientation, int pGenDepth) NetherFortressPieces.CastleSmallCorridorRightTurnPiece.createPiece
(StructurePieceAccessor pPieces, RandomSource pRandom, int pX, int pY, int pZ, Direction pOrientation, int pGenDepth) NetherFortressPieces.CastleStalkRoom.createPiece
(StructurePieceAccessor pPieces, int pX, int pY, int pZ, Direction pOrientation, int pGenDepth) NetherFortressPieces.MonsterThrone.createPiece
(StructurePieceAccessor pPieces, int pX, int pY, int pZ, int pGenDepth, Direction pOrientation) NetherFortressPieces.RoomCrossing.createPiece
(StructurePieceAccessor pPieces, int pX, int pY, int pZ, Direction pOrientation, int pGenDepth) NetherFortressPieces.StairsRoom.createPiece
(StructurePieceAccessor pPieces, int pX, int pY, int pZ, int pGenDepth, Direction pOrientation) StrongholdPieces.ChestCorridor.createPiece
(StructurePieceAccessor pPieces, RandomSource pRandom, int pX, int pY, int pZ, Direction pOrientation, int pGenDepth) StrongholdPieces.FiveCrossing.createPiece
(StructurePieceAccessor pPieces, RandomSource pRandom, int pX, int pY, int pZ, Direction pOrientation, int pGenDepth) static StrongholdPieces.LeftTurn
StrongholdPieces.LeftTurn.createPiece
(StructurePieceAccessor pPieces, RandomSource pRandom, int pX, int pY, int pZ, Direction pOrientation, int pGenDepth) static StrongholdPieces.Library
StrongholdPieces.Library.createPiece
(StructurePieceAccessor pPieces, RandomSource pRandom, int pX, int pY, int pZ, Direction pOrientation, int pGenDepth) static StrongholdPieces.PortalRoom
StrongholdPieces.PortalRoom.createPiece
(StructurePieceAccessor pPieces, int pX, int pY, int pZ, Direction pOrientation, int pGenDepth) static StrongholdPieces.PrisonHall
StrongholdPieces.PrisonHall.createPiece
(StructurePieceAccessor pPieces, RandomSource pRandom, int pX, int pY, int pZ, Direction pOrientation, int pGenDepth) static StrongholdPieces.RightTurn
StrongholdPieces.RightTurn.createPiece
(StructurePieceAccessor pPieces, RandomSource pRandom, int pX, int pY, int pZ, Direction pOrientation, int pGenDepth) StrongholdPieces.RoomCrossing.createPiece
(StructurePieceAccessor pPieces, RandomSource pRandom, int pX, int pY, int pZ, Direction pOrientation, int pGenDepth) static StrongholdPieces.StairsDown
StrongholdPieces.StairsDown.createPiece
(StructurePieceAccessor pPieces, RandomSource pRandom, int pX, int pY, int pZ, Direction pOrientation, int pGenDepth) static StrongholdPieces.Straight
StrongholdPieces.Straight.createPiece
(StructurePieceAccessor pPieces, RandomSource pRandom, int pX, int pY, int pZ, Direction pDirection, int pGenDepth) StrongholdPieces.StraightStairsDown.createPiece
(StructurePieceAccessor pPieces, RandomSource pRandom, int pX, int pY, int pZ, Direction pOrientation, int pGenDepth) private static MineshaftPieces.MineShaftPiece
MineshaftPieces.createRandomShaftPiece
(StructurePieceAccessor pPieces, RandomSource pRandom, int pX, int pY, int pZ, Direction pOrientation, int pGenDepth, MineshaftStructure.Type pType) (package private) static NetherFortressPieces.NetherBridgePiece
NetherFortressPieces.findAndCreateBridgePieceFactory
(NetherFortressPieces.PieceWeight pWeight, StructurePieceAccessor pPieces, RandomSource pRandom, int pX, int pY, int pZ, Direction pOrientation, int pGenDepth) private static StrongholdPieces.StrongholdPiece
StrongholdPieces.findAndCreatePieceFactory
(Class<? extends StrongholdPieces.StrongholdPiece> pPieceClass, StructurePieceAccessor pPieces, RandomSource pRandom, int pX, int pY, int pZ, Direction pDirection, int pGenDepth) static BoundingBox
MineshaftPieces.MineShaftCorridor.findCorridorSize
(StructurePieceAccessor pPieces, RandomSource pRandom, int pX, int pY, int pZ, Direction pDirection) static BoundingBox
MineshaftPieces.MineShaftCrossing.findCrossing
(StructurePieceAccessor pPieces, RandomSource pRandom, int pX, int pY, int pZ, Direction pDirection) static BoundingBox
StrongholdPieces.FillerCorridor.findPieceBox
(StructurePieceAccessor pPieces, RandomSource pRandom, int pX, int pY, int pZ, Direction pOrientation) static BoundingBox
MineshaftPieces.MineShaftStairs.findStairs
(StructurePieceAccessor pPieces, RandomSource pRandom, int pX, int pY, int pZ, Direction pDirection) (package private) static MineshaftPieces.MineShaftPiece
MineshaftPieces.generateAndAddPiece
(StructurePiece pPiece, StructurePieceAccessor pPieces, RandomSource pRandom, int pX, int pY, int pZ, Direction pDirection, int pGenDepth) private StructurePiece
NetherFortressPieces.NetherBridgePiece.generateAndAddPiece
(NetherFortressPieces.StartPiece pStartPiece, StructurePieceAccessor pPieces, RandomSource pRandom, int pX, int pY, int pZ, Direction pOrientation, int pGenDepth, boolean pCastlePiece) (package private) static StructurePiece
StrongholdPieces.generateAndAddPiece
(StrongholdPieces.StartPiece pPiece, StructurePieceAccessor pPieces, RandomSource pRandom, int pX, int pY, int pZ, Direction pDirection, int pGenDepth) NetherFortressPieces.NetherBridgePiece.generatePiece
(NetherFortressPieces.StartPiece pStartPiece, List<NetherFortressPieces.PieceWeight> pWeights, StructurePieceAccessor pPieces, RandomSource pRandom, int pX, int pY, int pZ, Direction pOrientation, int pGenDepth) private static StrongholdPieces.StrongholdPiece
StrongholdPieces.generatePieceFromSmallDoor
(StrongholdPieces.StartPiece pPiece, StructurePieceAccessor pPieces, RandomSource pRandom, int pX, int pY, int pZ, Direction pDirection, int pGenDepth) private static BoundingBox
OceanMonumentPieces.OceanMonumentPiece.makeBoundingBox
(Direction pDirection, OceanMonumentPieces.RoomDefinition pDefinition, int pX, int pY, int pZ) private void
WoodlandMansionPieces.MansionGrid.recursiveCorridor
(WoodlandMansionPieces.SimpleGrid pLayout, int pX, int pY, Direction pDirection, int pLength) void
OceanMonumentPieces.RoomDefinition.setConnection
(Direction pDirection, OceanMonumentPieces.RoomDefinition pConnectingRoom) private void
WoodlandMansionPieces.MansionPiecePlacer.traverseOuterWalls
(List<WoodlandMansionPieces.WoodlandMansionPiece> pPieces, WoodlandMansionPieces.PlacementData pData, WoodlandMansionPieces.SimpleGrid pLayout, Direction pDirection, int pStartX, int pStartY, int pEntranceX, int pEntranceY) Constructors in net.minecraft.world.level.levelgen.structure.structures with parameters of type DirectionModifierConstructorDescriptionprotected
BridgeCrossing
(int pX, int pZ, Direction pOrientation) BridgeCrossing
(int pGenDepth, BoundingBox pBox, Direction pOrientation) BridgeEndFiller
(int pGenDepth, RandomSource pRandom, BoundingBox pBox, Direction pOrientation) BridgeStraight
(int pGenDepth, RandomSource pRandom, BoundingBox pBox, Direction pOrientation) CastleCorridorStairsPiece
(int pGenDepth, BoundingBox pBox, Direction pOrientation) CastleCorridorTBalconyPiece
(int pGenDepth, BoundingBox pBox, Direction pOrientation) CastleEntrance
(int pGenDepth, RandomSource pRandom, BoundingBox pBox, Direction pOrientation) CastleSmallCorridorCrossingPiece
(int pGenDepth, BoundingBox pBox, Direction pOrientation) CastleSmallCorridorLeftTurnPiece
(int pGenDepth, RandomSource pRandom, BoundingBox pBox, Direction pOrientation) CastleSmallCorridorPiece
(int pGenDepth, BoundingBox pBox, Direction pOrientation) CastleSmallCorridorRightTurnPiece
(int pGenDepth, RandomSource pRandom, BoundingBox pBox, Direction pOrientation) CastleStalkRoom
(int pGenDepth, BoundingBox pBox, Direction pOrientation) ChestCorridor
(int pGenDepth, RandomSource pRandom, BoundingBox pBox, Direction pOrientation) FillerCorridor
(int pGenDepth, BoundingBox pBox, Direction pOrientation) FiveCrossing
(int pGenDepth, RandomSource pRandom, BoundingBox pBox, Direction pOrientation) LeftTurn
(int pGenDepth, RandomSource pRandom, BoundingBox pBox, Direction pOrientation) Library
(int pGenDepth, RandomSource pRandom, BoundingBox pBox, Direction pOrientation) MineShaftCorridor
(int pGenDepth, RandomSource pRandom, BoundingBox pBoundingBox, Direction pOrientation, MineshaftStructure.Type pType) MineShaftCrossing
(int pGenDepth, BoundingBox pBoundingBox, Direction pDirection, MineshaftStructure.Type pType) MineShaftStairs
(int pGenDepth, BoundingBox pBoundingBox, Direction pOrientation, MineshaftStructure.Type pType) MonsterThrone
(int pGenDepth, BoundingBox pBox, Direction pOrientation) MonumentBuilding
(RandomSource pRandom, int pX, int pZ, Direction pOrientation) OceanMonumentCoreRoom
(Direction pDirection, OceanMonumentPieces.RoomDefinition pRoom) OceanMonumentDoubleXRoom
(Direction pDirection, OceanMonumentPieces.RoomDefinition pRoom) OceanMonumentDoubleXYRoom
(Direction pDirection, OceanMonumentPieces.RoomDefinition pRoom) OceanMonumentDoubleYRoom
(Direction pDirection, OceanMonumentPieces.RoomDefinition pRoom) OceanMonumentDoubleYZRoom
(Direction pDirection, OceanMonumentPieces.RoomDefinition pRoom) OceanMonumentDoubleZRoom
(Direction pDirection, OceanMonumentPieces.RoomDefinition pRoom) OceanMonumentEntryRoom
(Direction pDirection, OceanMonumentPieces.RoomDefinition pRoom) OceanMonumentPenthouse
(Direction pDirection, BoundingBox pBox) protected
OceanMonumentPiece
(StructurePieceType pType, int pGenDepth, Direction pOrientation, OceanMonumentPieces.RoomDefinition pRoomDefinition, int pX, int pY, int pZ) OceanMonumentPiece
(StructurePieceType pType, Direction pOrientation, int pGenDepth, BoundingBox pBox) OceanMonumentSimpleRoom
(Direction pDirection, OceanMonumentPieces.RoomDefinition pRoom, RandomSource pRandom) OceanMonumentSimpleTopRoom
(Direction pDirection, OceanMonumentPieces.RoomDefinition pRoom) OceanMonumentWingRoom
(Direction pDirection, BoundingBox pBox, int pFlag) PortalRoom
(int pGenDepth, BoundingBox pBox, Direction pOrientation) PrisonHall
(int pGenDepth, RandomSource pRandom, BoundingBox pBox, Direction pOrientation) RightTurn
(int pGenDepth, RandomSource pRandom, BoundingBox pBox, Direction pOrientation) RoomCrossing
(int pGenDepth, BoundingBox pBox, Direction pOrientation) RoomCrossing
(int pGenDepth, RandomSource pRandom, BoundingBox pBox, Direction pOrientation) StairsDown
(int pGenDepth, RandomSource pRandom, BoundingBox pBox, Direction pOrientation) StairsDown
(StructurePieceType pType, int pGenDepth, int pX, int pZ, Direction pOrientation) StairsRoom
(int pGenDepth, BoundingBox pBox, Direction pOrientation) Straight
(int pGenDepth, RandomSource pRandom, BoundingBox pBox, Direction pOrientation) StraightStairsDown
(int pGenDepth, RandomSource pRandom, BoundingBox pBox, Direction pOrientation) -
Uses of Direction in net.minecraft.world.level.lighting
Fields in net.minecraft.world.level.lighting declared as DirectionModifier and TypeFieldDescriptionprotected static final Direction[]
LightEngine.PROPAGATION_DIRECTIONS
Methods in net.minecraft.world.level.lighting with parameters of type DirectionModifier and TypeMethodDescriptionprivate static boolean
SkyLightEngine.crossedSectionEdge
(Direction pDirection, int pX, int pZ) static long
LightEngine.QueueEntry.decreaseSkipOneDirection
(int pLevel, Direction pDirection) static int
LightEngine.getLightBlockInto
(BlockState pState1, BlockState pState2, Direction pDirection, int pDefaultReturnValue) static VoxelShape
LightEngine.getOcclusionShape
(BlockState pState, Direction pDirection) static long
LightEngine.QueueEntry.increaseOnlyOneDirection
(int pLevel, boolean pFromEmptyShape, Direction pDirection) static long
LightEngine.QueueEntry.increaseSkipOneDirection
(int pLevel, boolean pFromEmptyShape, Direction pDirection) private void
SkyLightEngine.propagateFromEmptySections
(long pPackedPos, Direction pDirection, int pLevel, boolean pShouldIncrease, int pEmptySections) protected boolean
LightEngine.shapeOccludes
(BlockState pState1, BlockState pState2, Direction pDirection) static boolean
LightEngine.QueueEntry.shouldPropagateInDirection
(long pEntry, Direction pDirection) private static long
LightEngine.QueueEntry.withDirection
(long pEntry, Direction pDirection) private static long
LightEngine.QueueEntry.withoutDirection
(long pEntry, Direction pDirection) -
Uses of Direction in net.minecraft.world.level.material
Fields in net.minecraft.world.level.material declared as DirectionModifier and TypeFieldDescriptionprivate final Direction
FlowingFluid.BlockStatePairKey.direction
The field for thedirection
record component.Methods in net.minecraft.world.level.material that return DirectionModifier and TypeMethodDescriptionFlowingFluid.BlockStatePairKey.direction()
Returns the value of thedirection
record component.Methods in net.minecraft.world.level.material that return types with arguments of type DirectionModifier and TypeMethodDescriptionprotected Map
<Direction, FluidState> FlowingFluid.getSpread
(ServerLevel pLevel, BlockPos pPos, BlockState pState) Methods in net.minecraft.world.level.material with parameters of type DirectionModifier and TypeMethodDescriptionboolean
EmptyFluid.canBeReplacedWith
(FluidState pFluidState, BlockGetter pBlockReader, BlockPos pPos, Fluid pFluid, Direction pDirection) protected abstract boolean
Fluid.canBeReplacedWith
(FluidState pState, BlockGetter pLevel, BlockPos pPos, Fluid pFluid, Direction pDirection) boolean
FluidState.canBeReplacedWith
(BlockGetter pLevel, BlockPos pPos, Fluid pFluid, Direction pDirection) boolean
LavaFluid.canBeReplacedWith
(FluidState pFluidState, BlockGetter pBlockReader, BlockPos pPos, Fluid pFluid, Direction pDirection) boolean
WaterFluid.canBeReplacedWith
(FluidState pFluidState, BlockGetter pBlockReader, BlockPos pPos, Fluid pFluid, Direction pDirection) private boolean
FlowingFluid.canMaybePassThrough
(BlockGetter pLevel, BlockPos pPos, BlockState pState, Direction pDirection, BlockPos pSpreadPos, BlockState pSpreadState, FluidState pFluidState) private boolean
FlowingFluid.canPassThrough
(BlockGetter pLevel, Fluid pFluid, BlockPos pPos, BlockState pState, Direction pDirection, BlockPos pSpreadPos, BlockState pSpreadState, FluidState pFluidState) private static boolean
FlowingFluid.canPassThroughWall
(Direction pDirection, BlockGetter pLevel, BlockPos pPos, BlockState pState, BlockPos pSpreadPos, BlockState pSpreadState) protected int
FlowingFluid.getSlopeDistance
(LevelReader pLevel, BlockPos pPos, int pDepth, Direction pDirection, BlockState pState, FlowingFluid.SpreadContext pSpreadContext) private boolean
LavaFluid.isFlammable
(LevelReader pLevel, BlockPos pPos, Direction face) protected boolean
FlowingFluid.isSolidFace
(BlockGetter pLevel, BlockPos pNeighborPos, Direction pSide) protected void
FlowingFluid.spreadTo
(LevelAccessor pLevel, BlockPos pPos, BlockState pBlockState, Direction pDirection, FluidState pFluidState) protected void
LavaFluid.spreadTo
(LevelAccessor pLevel, BlockPos pPos, BlockState pBlockState, Direction pDirection, FluidState pFluidState) Constructors in net.minecraft.world.level.material with parameters of type DirectionModifierConstructorDescription(package private)
BlockStatePairKey
(BlockState first, BlockState second, Direction direction) Creates an instance of aBlockStatePairKey
record class. -
Uses of Direction in net.minecraft.world.level.pathfinder
Methods in net.minecraft.world.level.pathfinder with parameters of type DirectionModifier and TypeMethodDescriptionprotected Node
WalkNodeEvaluator.findAcceptedNode
(int pX, int pY, int pZ, int pVerticalDeltaLimit, double pNodeFloorLevel, Direction pDirection, PathType pPathType) private Node
WalkNodeEvaluator.tryJumpOn
(int pX, int pY, int pZ, int pVerticalDeltaLimit, double pNodeFloorLevel, Direction pDirection, PathType pPathType, BlockPos.MutableBlockPos pPos) -
Uses of Direction in net.minecraft.world.level.portal
Fields in net.minecraft.world.level.portal declared as DirectionMethods in net.minecraft.world.level.portal with parameters of type DirectionModifier and TypeMethodDescriptionprivate static BlockPos
PortalShape.calculateBottomLeft
(BlockGetter pLevel, Direction pDirection, BlockPos pPos) private static int
PortalShape.calculateHeight
(BlockGetter p_374198_, BlockPos p_374414_, Direction p_374486_, int p_374126_, org.apache.commons.lang3.mutable.MutableInt p_374165_) private static int
PortalShape.calculateWidth
(BlockGetter pLevel, BlockPos pBottomLeft, Direction pDirection) private boolean
PortalForcer.canHostFrame
(BlockPos pOriginalPos, BlockPos.MutableBlockPos pOffsetPos, Direction pDirection, int pOffsetScale) private static int
PortalShape.getDistanceUntilEdgeAboveFrame
(BlockGetter pLevel, BlockPos pPos, Direction pDirection) private static int
PortalShape.getDistanceUntilTop
(BlockGetter p_374443_, BlockPos p_374231_, Direction p_374062_, BlockPos.MutableBlockPos p_77729_, int p_374313_, org.apache.commons.lang3.mutable.MutableInt p_374330_) private static boolean
PortalShape.hasTopFrame
(BlockGetter pLevel, BlockPos pPos, Direction pDirection, BlockPos.MutableBlockPos pCheckPos, int pWidth, int pDistanceUntilTop) Constructors in net.minecraft.world.level.portal with parameters of type DirectionModifierConstructorDescriptionprivate
PortalShape
(Direction.Axis pAxis, int pNumPortalBlocks, Direction pRightDir, BlockPos pBottomLeft, int pWidth, int pHeight) -
Uses of Direction in net.minecraft.world.level.redstone
Fields in net.minecraft.world.level.redstone declared as DirectionModifier and TypeFieldDescriptionprivate final Direction
CollectingNeighborUpdater.ShapeUpdate.direction
The field for thedirection
record component.private final Direction
Orientation.front
private final Direction
Orientation.side
private final Direction
CollectingNeighborUpdater.MultiNeighborUpdate.skipDirection
private final Direction
Orientation.up
static final Direction[]
NeighborUpdater.UPDATE_ORDER
Fields in net.minecraft.world.level.redstone with type parameters of type DirectionModifier and TypeFieldDescriptionOrientation.horizontalNeighbors
Orientation.neighbors
Orientation.verticalNeighbors
private final Map
<Direction, Orientation> Orientation.withFront
private final Map
<Direction, Orientation> Orientation.withUp
Methods in net.minecraft.world.level.redstone that return DirectionModifier and TypeMethodDescriptionCollectingNeighborUpdater.ShapeUpdate.direction()
Returns the value of thedirection
record component.Orientation.getFront()
Orientation.getSide()
Orientation.getUp()
Methods in net.minecraft.world.level.redstone that return types with arguments of type DirectionModifier and TypeMethodDescriptionOrientation.getDirections()
Orientation.getHorizontalDirections()
Orientation.getVerticalDirections()
Methods in net.minecraft.world.level.redstone with parameters of type DirectionModifier and TypeMethodDescriptionstatic void
NeighborUpdater.executeShapeUpdate
(LevelAccessor pLevel, Direction pDirection, BlockPos pPos, BlockPos pNeighborPos, BlockState pNeighborState, int pFlags, int pRecursionLeft) protected static int
Orientation.generateIndex
(Direction pUp, Direction pFront, Orientation.SideBias pSideBias) static Orientation
ExperimentalRedstoneUtils.initialOrientation
(Level pLevel, Direction pFront, Direction pUp) private static boolean
ExperimentalRedstoneWireEvaluator.isConnected
(BlockState pState, Direction pDirection) static Orientation
Orientation.of
(Direction pUp, Direction pFront, Orientation.SideBias pSideBias) void
CollectingNeighborUpdater.shapeUpdate
(Direction pDirection, BlockState pState, BlockPos pPos, BlockPos pNeighborPos, int pFlags, int pRecursionLevel) void
InstantNeighborUpdater.shapeUpdate
(Direction pDirection, BlockState pState, BlockPos pPos, BlockPos pNeighborPos, int pFlags, int pRecursionLevel) void
NeighborUpdater.shapeUpdate
(Direction pDirection, BlockState pState, BlockPos pPos, BlockPos pNeighborPos, int pFlags, int pRecursionLevel) void
CollectingNeighborUpdater.updateNeighborsAtExceptFromFacing
(BlockPos pPos, Block pBlock, Direction pFacing, Orientation pOrientation) default void
NeighborUpdater.updateNeighborsAtExceptFromFacing
(BlockPos pPos, Block pBlock, Direction pFacing, Orientation pOrientation) static Orientation
ExperimentalRedstoneUtils.withFront
(Orientation pOrientation, Direction pDirection) Orientation.withFrontAdjustSideBias
(Direction pFront) Orientation.withFrontPreserveUp
(Direction pFront) Constructors in net.minecraft.world.level.redstone with parameters of type DirectionModifierConstructorDescription(package private)
MultiNeighborUpdate
(BlockPos pSourcePos, Block pSourceBlock, Orientation pOrientation, Direction pSkipDirection) private
Orientation
(Direction pUp, Direction pFront, Orientation.SideBias pSideBias) (package private)
ShapeUpdate
(Direction direction, BlockState neighborState, BlockPos pos, BlockPos neighborPos, int updateFlags, int updateLimit) Creates an instance of aShapeUpdate
record class. -
Uses of Direction in net.minecraft.world.phys
Fields in net.minecraft.world.phys declared as DirectionMethods in net.minecraft.world.phys that return DirectionModifier and TypeMethodDescriptionprivate static Direction
AABB.clipPoint
(double[] pMinDistance, Direction pPrevDirection, double pDistanceSide, double pDistanceOtherA, double pDistanceOtherB, double pMinSide, double pMinOtherA, double pMaxOtherA, double pMinOtherB, double pMaxOtherB, Direction pHitSide, double pStartSide, double pStartOtherA, double pStartOtherB) private static Direction
AABB.getDirection
(double pMinX, double pMinY, double pMinZ, double pMaxX, double pMaxY, double pMaxZ, Vec3 pStart, double[] pMineDistance, Direction pFacing, double pDeltaX, double pDeltaY, double pDeltaZ) private static Direction
AABB.getDirection
(AABB pAabb, Vec3 pStart, double[] pMinDistance, Direction pFacing, double pDeltaX, double pDeltaY, double pDeltaZ) BlockHitResult.getDirection()
Methods in net.minecraft.world.phys with parameters of type DirectionModifier and TypeMethodDescriptionprivate static Direction
AABB.clipPoint
(double[] pMinDistance, Direction pPrevDirection, double pDistanceSide, double pDistanceOtherA, double pDistanceOtherB, double pMinSide, double pMinOtherA, double pMaxOtherA, double pMinOtherB, double pMaxOtherB, Direction pHitSide, double pStartSide, double pStartOtherA, double pStartOtherB) private static Direction
AABB.getDirection
(double pMinX, double pMinY, double pMinZ, double pMaxX, double pMaxY, double pMaxZ, Vec3 pStart, double[] pMineDistance, Direction pFacing, double pDeltaX, double pDeltaY, double pDeltaZ) private static Direction
AABB.getDirection
(AABB pAabb, Vec3 pStart, double[] pMinDistance, Direction pFacing, double pDeltaX, double pDeltaY, double pDeltaZ) static BlockHitResult
Creates a new BlockRayTraceResult marked as a miss.BlockHitResult.withDirection
(Direction pNewFace) Creates a new BlockRayTraceResult, with the clicked face replaced with the given oneConstructors in net.minecraft.world.phys with parameters of type DirectionModifierConstructorDescriptionprivate
BlockHitResult
(boolean pMiss, Vec3 pLocation, Direction pDirection, BlockPos pBlockPos, boolean pInside, boolean pWorldBorderHit) BlockHitResult
(Vec3 pLocation, Direction pDirection, BlockPos pBlockPos, boolean pInside) BlockHitResult
(Vec3 pLocation, Direction pDirection, BlockPos pBlockPos, boolean pInside, boolean pWorldBorderHit) -
Uses of Direction in net.minecraft.world.phys.shapes
Methods in net.minecraft.world.phys.shapes that return types with arguments of type DirectionModifier and TypeMethodDescriptionstatic Map
<Direction, VoxelShape> Shapes.rotateAll
(VoxelShape pShape) static Map
<Direction, VoxelShape> Shapes.rotateAll
(VoxelShape pShape, Vec3 pPos) static Map
<AttachFace, Map<Direction, VoxelShape>> Shapes.rotateAttachFace
(VoxelShape pShape) static Map
<Direction, VoxelShape> Shapes.rotateHorizontal
(VoxelShape pShape) static Map
<Direction, VoxelShape> Shapes.rotateHorizontal
(VoxelShape pShape, Vec3 pPos) Methods in net.minecraft.world.phys.shapes with parameters of type DirectionModifier and TypeMethodDescriptionstatic boolean
Shapes.blockOccludes
(VoxelShape pShape, VoxelShape pAdjacentShape, Direction pSide) private VoxelShape
VoxelShape.calculateFace
(Direction pSide) void
VoxelShape.getFaceShape
(Direction pSide) Projects this shape onto the given side.static boolean
Shapes.mergedFaceOccludes
(VoxelShape pShape, VoxelShape pAdjacentShape, Direction pSide) -
Uses of Direction in net.neoforged.neoforge.capabilities
Fields in net.neoforged.neoforge.capabilities with type parameters of type DirectionModifier and TypeFieldDescriptionstatic final BlockCapability
<IEnergyStorage, @Nullable Direction> Capabilities.EnergyStorage.BLOCK
static final BlockCapability
<IFluidHandler, @Nullable Direction> Capabilities.FluidHandler.BLOCK
static final BlockCapability
<IItemHandler, @Nullable Direction> Capabilities.ItemHandler.BLOCK
static final EntityCapability
<IEnergyStorage, @Nullable Direction> Capabilities.EnergyStorage.ENTITY
static final EntityCapability
<IFluidHandler, @Nullable Direction> Capabilities.FluidHandler.ENTITY
static final EntityCapability
<IItemHandler, @Nullable Direction> Capabilities.ItemHandler.ENTITY_AUTOMATION
Capability for an inventory of entity that should be accessible to automation, in the sense that droppers, hoppers, and similar modded devices will try to use it.Methods in net.neoforged.neoforge.capabilities that return types with arguments of type DirectionModifier and TypeMethodDescriptionstatic <T> BlockCapability
<T, @Nullable Direction> BlockCapability.createSided
(ResourceLocation name, Class<T> typeClass) Creates a new block capability with nullableDirection
context, or gets it if it already exists.static <T> EntityCapability
<T, @Nullable Direction> EntityCapability.createSided
(ResourceLocation name, Class<T> typeClass) Creates a new entity capability with nullableDirection
context, or gets it if it already exists. -
Uses of Direction in net.neoforged.neoforge.client.extensions.common
Methods in net.neoforged.neoforge.client.extensions.common with parameters of type DirectionModifier and TypeMethodDescriptiondefault boolean
IClientBlockExtensions.playHitSound
(BlockState state, Level level, BlockPos pos, Direction face, SoundManager soundManager) Play hit sound(s) when the block is punched. -
Uses of Direction in net.neoforged.neoforge.client.model
Methods in net.neoforged.neoforge.client.model with parameters of type DirectionModifier and TypeMethodDescriptionorg.joml.Matrix4fc
ComposedModelState.faceTransformation
(Direction side) org.joml.Matrix4fc
ComposedModelState.inverseFaceTransformation
(Direction side) -
Uses of Direction in net.neoforged.neoforge.client.model.ao
Methods in net.neoforged.neoforge.client.model.ao with parameters of type DirectionModifier and TypeMethodDescriptionvoid
EnhancedAoRenderStorage.calculate
(BlockAndTintGetter level, BlockState state, BlockPos pos, Direction direction, boolean shade) private void
EnhancedAoRenderStorage.calculateAxisAligned
(BlockAndTintGetter level, BlockState state, BlockPos pos, Direction direction, boolean shade) Computes AO for an axis-aligned quad.(package private) AoCalculatedFace
FullFaceCalculator.calculateFace
(BlockAndTintGetter level, BlockState renderedState, BlockPos renderedPos, Direction direction, boolean shade, boolean sampleOutside) private void
FullFaceCalculator.calculateFaceUncached
(AoCalculatedFace out, BlockAndTintGetter level, BlockState renderedState, BlockPos renderedPos, Direction direction, boolean shade, boolean sampleOutside) Computes the AO for a full face.static AoFace
AoFace.fromDirection
(Direction direction) -
Uses of Direction in net.neoforged.neoforge.client.model.generators.template
Fields in net.neoforged.neoforge.client.model.generators.template declared as DirectionFields in net.neoforged.neoforge.client.model.generators.template with type parameters of type DirectionMethods in net.neoforged.neoforge.client.model.generators.template that return types with arguments of type DirectionModifier and TypeMethodDescriptionprivate static BiConsumer
<Direction, FaceBuilder> ElementBuilder.addTexture
(TextureSlot texture) Methods in net.neoforged.neoforge.client.model.generators.template with parameters of type DirectionModifier and TypeMethodDescriptionSets which direction should cull this face when fully occluded, or null to never cull.ElementBuilder.face
(Direction dir, Consumer<FaceBuilder> action) Return or create the face builder for the given direction.Method parameters in net.neoforged.neoforge.client.model.generators.template with type arguments of type DirectionModifier and TypeMethodDescriptionElementBuilder.allFaces
(BiConsumer<Direction, FaceBuilder> action) Modify all possible faces dynamically using a function, creating new faces as necessary.ElementBuilder.allFacesExcept
(BiConsumer<Direction, FaceBuilder> action, Set<Direction> exc) Creates possible faces for the model as needed, excluding those specified in the second argument, and then applies a function to modify added faces.ElementBuilder.allFacesExcept
(BiConsumer<Direction, FaceBuilder> action, Set<Direction> exc) Creates possible faces for the model as needed, excluding those specified in the second argument, and then applies a function to modify added faces.ElementBuilder.faces
(BiConsumer<Direction, FaceBuilder> action) Modify all existing faces dynamically using a function. -
Uses of Direction in net.neoforged.neoforge.client.model.obj
Methods in net.neoforged.neoforge.client.model.obj that return types with arguments of type DirectionModifier and TypeMethodDescriptionObjGeometry.makeQuad
(int[][] indices, int tintIndex, org.joml.Vector4f colorTint, org.joml.Vector4f ambientColor, TextureAtlasSprite texture, Transformation transform) -
Uses of Direction in net.neoforged.neoforge.client.model.pipeline
Fields in net.neoforged.neoforge.client.model.pipeline declared as DirectionMethods in net.neoforged.neoforge.client.model.pipeline with parameters of type DirectionModifier and TypeMethodDescriptionvoid
QuadBakingVertexConsumer.setDirection
(Direction direction) -
Uses of Direction in net.neoforged.neoforge.common
Methods in net.neoforged.neoforge.common with parameters of type DirectionModifier and TypeMethodDescriptionboolean
SpecialPlantable.canPlacePlantAtPosition
(ItemStack itemStack, LevelReader level, BlockPos pos, @Nullable Direction direction) Checks location if this item can spawn a plant with the given direction attachment point.CommonHooks.onClientMineHold
(Player player, BlockPos pos, Direction face) CommonHooks.onLeftClickBlock
(Player player, BlockPos pos, Direction face, ServerboundPlayerActionPacket.Action action) void
SpecialPlantable.spawnPlantAtPosition
(ItemStack itemStack, LevelAccessor level, BlockPos pos, @Nullable Direction direction) Spawns the plant with the given direction attachment point at location. -
Uses of Direction in net.neoforged.neoforge.common.extensions
Methods in net.neoforged.neoforge.common.extensions that return DirectionModifier and TypeMethodDescriptiondefault Direction
IBlockExtension.getBedDirection
(BlockState state, LevelReader level, BlockPos pos) Returns the direction of the block.default Direction
IBlockStateExtension.getBedDirection
(LevelReader level, BlockPos pos) Returns the direction of the block.default Direction
ITransformationExtension.rotateTransform
(Direction facing) Rotates the direction according to this transformation and returns the nearestDirection
to the resulting direction.Methods in net.neoforged.neoforge.common.extensions with parameters of type DirectionModifier and TypeMethodDescriptiondefault boolean
IBlockExtension.canConnectRedstone
(BlockState state, BlockGetter level, BlockPos pos, @Nullable Direction direction) Whether redstone dust should visually connect to this block on a given sidedefault boolean
IBlockStateExtension.canRedstoneConnectTo
(BlockGetter level, BlockPos pos, @Nullable Direction direction) Whether redstone dust should visually connect to this block on a side.default TriState
IBlockExtension.canSustainPlant
(BlockState state, BlockGetter level, BlockPos soilPosition, Direction facing, BlockState plant) Determines if this block either force allow or force disallow a plant from being placed on it.default TriState
IBlockStateExtension.canSustainPlant
(BlockGetter level, BlockPos soilPosition, Direction facing, BlockState plant) Determines if this block either force allow or force disallow a plant from being placed on it.default BlockState
IBlockExtension.getAppearance
(BlockState state, BlockAndTintGetter level, BlockPos pos, Direction side, @Nullable BlockState queryState, @Nullable BlockPos queryPos) Returns theBlockState
that this block reports to look like on the given side, for querying by other mods.default BlockState
IBlockStateExtension.getAppearance
(BlockAndTintGetter level, BlockPos pos, Direction side, @Nullable BlockState queryState, @Nullable BlockPos queryPos) Returns theBlockState
that this state reports to look like on the given side for querying by other mods.default int
IBlockExtension.getFireSpreadSpeed
(BlockState state, BlockGetter level, BlockPos pos, Direction direction) Called when fire is updating on a neighbor block.default int
IBlockStateExtension.getFireSpreadSpeed
(BlockGetter level, BlockPos pos, Direction face) Called when fire is updating on a neighbor block.default int
IBlockExtension.getFlammability
(BlockState state, BlockGetter level, BlockPos pos, Direction direction) Chance that fire will spread and consume this block. 300 being a 100% chance, 0, being a 0% chance.default int
IBlockStateExtension.getFlammability
(BlockGetter level, BlockPos pos, Direction face) Chance that fire will spread and consume this block. 300 being a 100% chance, 0, being a 0% chance.default boolean
IBlockExtension.hidesNeighborFace
(BlockGetter level, BlockPos pos, BlockState state, BlockState neighborState, Direction dir) Whether this block hides the neighbors face pointed towards by the given direction.default boolean
IBlockStateExtension.hidesNeighborFace
(BlockGetter level, BlockPos pos, BlockState neighborState, Direction dir) Whether this block hides the neighbors face pointed towards by the given direction.default boolean
IBlockExtension.isFireSource
(BlockState state, LevelReader level, BlockPos pos, Direction direction) Currently only called by fire when it is on top of this block.default boolean
IBlockStateExtension.isFireSource
(LevelReader level, BlockPos pos, Direction side) Currently only called by fire when it is on top of this block.default boolean
IBlockExtension.isFlammable
(BlockState state, BlockGetter level, BlockPos pos, Direction direction) Called when fire is updating, checks if a block face can catch fire.default boolean
IBlockStateExtension.isFlammable
(BlockGetter level, BlockPos pos, Direction face) Called when fire is updating, checks if a block face can catch fire.default boolean
IBlockExtension.onCaughtFire
(BlockState state, Level level, BlockPos pos, @Nullable Direction direction, @Nullable LivingEntity igniter) If the block is flammable, this is called when it gets lit on fire.default boolean
IBlockStateExtension.onCaughtFire
(Level level, BlockPos pos, @Nullable Direction face, @Nullable LivingEntity igniter) If the block is flammable, this is called when it gets lit on fire.default void
IBlockExtension.onDestroyedByPushReaction
(BlockState state, Level level, BlockPos pos, Direction pushDirection, FluidState fluid) Called when a block is removed byPushReaction.DESTROY
.default void
IBlockStateExtension.onDestroyedByPushReaction
(Level level, BlockPos pos, Direction pushDirection, FluidState fluid) Called when a block is removed byPushReaction.DESTROY
.default Direction
ITransformationExtension.rotateTransform
(Direction facing) Rotates the direction according to this transformation and returns the nearestDirection
to the resulting direction.default boolean
IBlockExtension.shouldCheckWeakPower
(BlockState state, SignalGetter level, BlockPos pos, Direction side) Called to determine whether to allow the block to handle its own indirect power rather than using the default rules.default boolean
IBlockStateExtension.shouldCheckWeakPower
(SignalGetter level, BlockPos pos, Direction side) Called to determine whether to allow the block to handle its own indirect power rather than using the default rules.default boolean
IBlockExtension.shouldHideAdjacentFluidFace
(BlockState state, Direction selfFace, FluidState adjacentFluid) Determines if a fluid adjacent to the block on the given side should not be rendered.default boolean
IBlockStateExtension.shouldHideAdjacentFluidFace
(Direction selfFace, FluidState adjacentFluid) Determines if a fluid adjacent to the block on the given side should not be rendered. -
Uses of Direction in net.neoforged.neoforge.event
Methods in net.neoforged.neoforge.event with parameters of type DirectionModifier and TypeMethodDescriptionstatic boolean
EventHooks.onBlockPlace
(@Nullable Entity entity, BlockSnapshot blockSnapshot, Direction direction) static boolean
EventHooks.onMultiBlockPlace
(@Nullable Entity entity, List<BlockSnapshot> blockSnapshots, Direction direction) static void
EventHooks.onPistonMovePost
(Level level, BlockPos pos, Direction direction, boolean extending) static boolean
EventHooks.onPistonMovePre
(Level level, BlockPos pos, Direction direction, boolean extending) Method parameters in net.neoforged.neoforge.event with type arguments of type DirectionModifier and TypeMethodDescriptionEventHooks.onNeighborNotify
(Level level, BlockPos pos, BlockState state, EnumSet<Direction> notifiedSides, boolean forceRedstoneUpdate) -
Uses of Direction in net.neoforged.neoforge.event.entity.player
Fields in net.neoforged.neoforge.event.entity.player declared as DirectionModifier and TypeFieldDescriptionprivate final @Nullable Direction
PlayerInteractEvent.face
private final @Nullable Direction
UseItemOnBlockEvent.face
Methods in net.neoforged.neoforge.event.entity.player that return DirectionModifier and TypeMethodDescription@Nullable Direction
PlayerInteractEvent.getFace()
@Nullable Direction
UseItemOnBlockEvent.getFace()
Constructors in net.neoforged.neoforge.event.entity.player with parameters of type DirectionModifierConstructorDescriptionLeftClickBlock
(Player player, BlockPos pos, Direction face, PlayerInteractEvent.LeftClickBlock.Action action) protected
PlayerInteractEvent
(Player player, InteractionHand hand, BlockPos pos, @Nullable Direction face) -
Uses of Direction in net.neoforged.neoforge.event.level
Fields in net.neoforged.neoforge.event.level declared as DirectionFields in net.neoforged.neoforge.event.level with type parameters of type DirectionMethods in net.neoforged.neoforge.event.level that return DirectionMethods in net.neoforged.neoforge.event.level that return types with arguments of type DirectionModifier and TypeMethodDescriptionBlockEvent.NeighborNotifyEvent.getNotifiedSides()
Gets a list of directions from the base block that updates will occur upon.Constructors in net.neoforged.neoforge.event.level with parameters of type DirectionModifierConstructorDescriptionPistonEvent
(Level world, BlockPos pos, Direction direction, PistonEvent.PistonMoveType moveType) Post
(Level world, BlockPos pos, Direction direction, PistonEvent.PistonMoveType moveType) Pre
(Level world, BlockPos pos, Direction direction, PistonEvent.PistonMoveType moveType) Constructor parameters in net.neoforged.neoforge.event.level with type arguments of type DirectionModifierConstructorDescriptionNeighborNotifyEvent
(Level level, BlockPos pos, BlockState state, EnumSet<Direction> notifiedSides, boolean forceRedstoneUpdate) -
Uses of Direction in net.neoforged.neoforge.fluids
Methods in net.neoforged.neoforge.fluids with parameters of type DirectionModifier and TypeMethodDescriptionprotected boolean
BaseFlowingFluid.canBeReplacedWith
(FluidState state, BlockGetter level, BlockPos pos, Fluid fluidIn, Direction direction) static Optional
<IFluidHandler> FluidUtil.getFluidHandler
(Level level, BlockPos blockPos, @Nullable Direction side) Helper method to get an IFluidHandler for at a block position.static boolean
FluidUtil.interactWithFluidHandler
(Player player, InteractionHand hand, Level level, BlockPos pos, @Nullable Direction side) Used to handle the common case of a player holding a fluid item and right-clicking on a fluid handler block.static FluidActionResult
FluidUtil.tryPickUpFluid
(ItemStack emptyContainer, @Nullable Player playerIn, Level level, BlockPos pos, Direction side) Attempts to pick up a fluid in the level and put it in an empty container item. -
Uses of Direction in net.neoforged.neoforge.items
Methods in net.neoforged.neoforge.items with parameters of type DirectionModifier and TypeMethodDescriptionstatic ContainerOrHandler
VanillaInventoryCodeHooks.getEntityContainerOrHandler
(Level level, double x, double y, double z, @Nullable Direction side) -
Uses of Direction in net.neoforged.neoforge.items.wrapper
Fields in net.neoforged.neoforge.items.wrapper declared as DirectionMethods in net.neoforged.neoforge.items.wrapper with parameters of type DirectionModifier and TypeMethodDescriptionstatic int
SidedInvWrapper.getSlot
(WorldlyContainer inv, int slot, @Nullable Direction side) Constructors in net.neoforged.neoforge.items.wrapper with parameters of type Direction