Uses of Enum Class
net.minecraft.core.Direction
Packages that use Direction
Package
Description
Extension interfaces for
client
-only classes.-
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> posPredicate, BlockPos.MutableBlockPos centerPos, Direction direction, int max) Finds the distance we can travel in the given direction while the predicate returns trueBlockUtil.getTopConnectedBlock
(BlockGetter getter, BlockPos pos, Block baseBlock, Direction direction, Block endBlock) -
Uses of Direction in net.minecraft.client.model.geom
Constructors in net.minecraft.client.model.geom with parameters of type DirectionModifierConstructorDescriptionPolygon
(ModelPart.Vertex[] vertices, float u1, float v1, float u2, float v2, float textureWidth, float textureHeight, boolean mirror, Direction direction) 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 originX, float originY, float originZ, float dimensionX, float dimensionY, float dimensionZ, Set<Direction> visibleFaces) Constructor parameters in net.minecraft.client.model.geom.builders with type arguments of type DirectionModifierConstructorDescriptionprotected
CubeDefinition
(String comment, float texCoordU, float texCoordV, float originX, float originY, float originZ, float dimensionX, float dimensionY, float dimensionZ, CubeDeformation grow, boolean mirror, float texScaleU, float texScaleV, Set<Direction> visibleFaces) -
Uses of Direction in net.minecraft.client.multiplayer
Methods in net.minecraft.client.multiplayer with parameters of type DirectionModifier and TypeMethodDescriptionboolean
MultiPlayerGameMode.continueDestroyBlock
(BlockPos posBlock, Direction directionFacing) float
boolean
MultiPlayerGameMode.startDestroyBlock
(BlockPos loc, Direction face) 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 TypeFieldDescriptionstatic final Direction[]
LevelRenderer.DIRECTIONS
private 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 sourceDirection) static FaceInfo
FaceInfo.fromFacing
(Direction facing) SectionOcclusionGraph.getRelativeFrom
(BlockPos pos, SectionRenderDispatcher.RenderSection section, Direction direction) (package private) boolean
SectionOcclusionGraph.Node.hasDirection
(Direction direction) static void
LevelRenderer.renderFace
(PoseStack poseStack, VertexConsumer buffer, Direction face, float x1, float y1, float z1, float x2, float y2, float z2, float red, float green, float blue, float alpha) (package private) void
SectionOcclusionGraph.Node.setDirections
(byte currentValue, Direction direction) Constructors in net.minecraft.client.renderer with parameters of type DirectionModifierConstructorDescription(package private)
Node
(SectionRenderDispatcher.RenderSection section, Direction sourceDirection, int step) -
Uses of Direction in net.minecraft.client.renderer.block
Fields in net.minecraft.client.renderer.block declared as DirectionModifier and TypeFieldDescription(package private) final Direction[]
ModelBlockRenderer.AdjacencyInfo.corners
(package private) static final Direction[]
ModelBlockRenderer.DIRECTIONS
Methods in net.minecraft.client.renderer.block with parameters of type DirectionModifier and TypeMethodDescriptionvoid
ModelBlockRenderer.AmbientOcclusionFace.calculate
(BlockAndTintGetter level, BlockState state, BlockPos pos, Direction direction, float[] shape, BitSet shapeFlags, boolean shade) private void
ModelBlockRenderer.calculateShape
(BlockAndTintGetter level, BlockState state, BlockPos pos, int[] vertices, Direction direction, float[] shape, BitSet shapeFlags) Calculates the shape and corresponding flags for the specifieddirection
andvertices
, storing the resulting shape in the specifiedshape
array and the shape flags inshapeFlags
.ModelBlockRenderer.AdjacencyInfo.fromFacing
(Direction facing) ModelBlockRenderer.AmbientVertexRemap.fromFacing
(Direction facing) private static boolean
LiquidBlockRenderer.isFaceOccludedByNeighbor
(BlockGetter level, BlockPos pos, Direction side, float height, BlockState blockState) private static boolean
LiquidBlockRenderer.isFaceOccludedBySelf
(BlockGetter level, BlockPos pos, BlockState state, Direction face) private static boolean
LiquidBlockRenderer.isFaceOccludedByState
(BlockGetter level, Direction face, float height, BlockPos pos, BlockState state) private static boolean
LiquidBlockRenderer.isNeighborStateHidingOverlay
(FluidState selfState, BlockState otherState, Direction neighborFace) static boolean
LiquidBlockRenderer.shouldRenderFace
(BlockAndTintGetter level, BlockPos pos, FluidState fluidState, BlockState selfState, Direction direction, BlockState otherState) static boolean
LiquidBlockRenderer.shouldRenderFace
(BlockAndTintGetter level, BlockPos pos, FluidState fluidState, BlockState blockState, Direction side, FluidState neighborFluid) Deprecated.Neo: use overload that accepts BlockStateConstructors in net.minecraft.client.renderer.block with parameters of type DirectionModifierConstructorDescriptionprivate
AdjacencyInfo
(Direction[] corners, float shadeBrightness, boolean doNonCubicWeight, ModelBlockRenderer.SizeInfo[] vert0Weights, ModelBlockRenderer.SizeInfo[] vert1Weights, ModelBlockRenderer.SizeInfo[] vert2Weights, ModelBlockRenderer.SizeInfo[] vert3Weights) private
-
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.protected final Direction
BakedQuad.direction
private final Direction
ItemModelGenerator.SpanFacing.direction
Fields in net.minecraft.client.renderer.block.model with type parameters of type DirectionMethods in net.minecraft.client.renderer.block.model that return DirectionModifier and TypeMethodDescriptionstatic Direction
FaceBakery.calculateFacing
(int[] faceData) BlockElementFace.cullForDirection()
Returns the value of thecullForDirection
record component.private Direction
BlockElementFace.Deserializer.getCullFacing
(com.google.gson.JsonObject json) BakedQuad.getDirection()
ItemModelGenerator.SpanFacing.getDirection()
private Direction
Methods in net.minecraft.client.renderer.block.model that return types with arguments of type DirectionModifier and TypeMethodDescriptionprivate Map
<Direction, BlockElementFace> BlockElement.Deserializer.filterNullFromFaces
(com.google.gson.JsonDeserializationContext context, com.google.gson.JsonObject json) private Map
<Direction, BlockElementFace> BlockElement.Deserializer.getFaces
(com.google.gson.JsonDeserializationContext context, com.google.gson.JsonObject json) Methods in net.minecraft.client.renderer.block.model with parameters of type DirectionModifier and TypeMethodDescriptionstatic BakedQuad
BlockModel.bakeFace
(BlockElement element, BlockElementFace face, TextureAtlasSprite sprite, Direction facing, ModelState state) FaceBakery.bakeQuad
(org.joml.Vector3f posFrom, org.joml.Vector3f posTo, BlockElementFace face, TextureAtlasSprite sprite, Direction facing, ModelState transform, BlockElementRotation rotation, boolean shade) private void
FaceBakery.bakeVertex
(int[] vertexData, int vertexIndex, Direction facing, BlockFaceUV blockFaceUV, float[] posDiv16, TextureAtlasSprite sprite, Transformation rotation, BlockElementRotation partRotation, boolean shade) private int[]
FaceBakery.makeVertices
(BlockFaceUV uvs, TextureAtlasSprite sprite, Direction orientation, float[] posDiv16, Transformation rotation, BlockElementRotation partRotation, boolean shade) private void
FaceBakery.recalculateWinding
(int[] vertices, Direction direction) static BlockFaceUV
FaceBakery.recomputeUVs
(BlockFaceUV uv, Direction facing, Transformation rotation) float[]
Constructors in net.minecraft.client.renderer.block.model with parameters of type DirectionModifierConstructorDescriptionBakedQuad
(int[] vertices, int tintIndex, Direction direction, TextureAtlasSprite sprite, boolean shade) BakedQuad
(int[] vertices, int tintIndex, Direction direction, TextureAtlasSprite sprite, boolean shade, boolean hasAmbientOcclusion) BlockElementFace
(Direction p_111359_, int p_111360_, String p_111361_, BlockFaceUV p_111362_) BlockElementFace
(Direction cullForDirection, int tintIndex, String texture, BlockFaceUV uv, ExtraFaceData faceData, org.apache.commons.lang3.mutable.MutableObject<BlockElement> parent) Creates an instance of aBlockElementFace
record class.private
SpanFacing
(Direction direction, int xOffset, int yOffset) Constructor parameters in net.minecraft.client.renderer.block.model with type arguments of type DirectionModifierConstructorDescriptionBlockElement
(org.joml.Vector3f from, org.joml.Vector3f to, Map<Direction, BlockElementFace> faces, BlockElementRotation rotation, boolean shade) BlockElement
(org.joml.Vector3f from, org.joml.Vector3f to, Map<Direction, BlockElementFace> faces, BlockElementRotation rotation, boolean shade, ExtraFaceData faceData) -
Uses of Direction in net.minecraft.client.renderer.blockentity
Methods in net.minecraft.client.renderer.blockentity with parameters of type DirectionModifier and TypeMethodDescriptionprivate void
TheEndPortalRenderer.renderFace
(T blockEntity, org.joml.Matrix4f pose, VertexConsumer consumer, float x0, float x1, float y0, float y1, float z0, float z1, float z2, float z3, Direction direction) private void
BedRenderer.renderPiece
(PoseStack poseStack, MultiBufferSource bufferSource, ModelPart modelPart, Direction direction, Material material, int packedLight, int packedOverlay, boolean foot) static void
SkullBlockRenderer.renderSkull
(Direction direction, float yRot, float mouthAnimation, PoseStack poseStack, MultiBufferSource bufferSource, int packedLight, SkullModelBase model, RenderType renderType) private float[]
BrushableBlockRenderer.translations
(Direction direction, int dustedLevel) -
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
SectionRenderDispatcher.CompiledSection.facesCanSeeEachother
(Direction face1, Direction face2) private int
VisGraph.getNeighborIndexAtFace
(int index, Direction face) SectionRenderDispatcher.RenderSection.getRelativeOrigin
(Direction direction) float
void
boolean
VisibilitySet.visibilityBetween
(Direction face, Direction otherFace) Method parameters in net.minecraft.client.renderer.chunk with type arguments of type Direction -
Uses of Direction in net.minecraft.client.renderer.debug
Methods in net.minecraft.client.renderer.debug with parameters of type DirectionModifier and TypeMethodDescriptionprivate static void
LightSectionDebugRenderer.renderFace
(PoseStack poseStack, VertexConsumer buffer, Direction face, double camX, double camY, double camZ, int blockX, int blockY, int blockZ, org.joml.Vector4f color) -
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 facing) -
Uses of Direction in net.minecraft.client.resources.model
Fields in net.minecraft.client.resources.model with type parameters of type DirectionModifier and TypeFieldDescriptionSimpleBakedModel.Builder.culledFaces
SimpleBakedModel.culledFaces
Methods in net.minecraft.client.resources.model with parameters of type DirectionModifier and TypeMethodDescriptionSimpleBakedModel.Builder.addCulledFace
(Direction facing, BakedQuad quad) BakedModel.getQuads
(BlockState state, Direction direction, RandomSource random) BuiltInModel.getQuads
(BlockState state, Direction direction, RandomSource random) MultiPartBakedModel.getQuads
(BlockState state, Direction direction, RandomSource random, ModelData modelData, RenderType renderType) SimpleBakedModel.getQuads
(BlockState state, Direction direction, RandomSource random) WeightedBakedModel.getQuads
(BlockState state, Direction direction, RandomSource random, ModelData modelData, RenderType renderType) Constructor parameters in net.minecraft.client.resources.model with type arguments of type DirectionModifierConstructorDescriptionSimpleBakedModel
(List<BakedQuad> unculledFaces, Map<Direction, List<BakedQuad>> culledFaces, boolean hasAmbientOcclusion, boolean usesBlockLight, boolean isGui3d, TextureAtlasSprite particleIcon, ItemTransforms transforms, ItemOverrides overrides) Deprecated.Forge: Use variant with RenderTypeGroupSimpleBakedModel
(List<BakedQuad> unculledFaces, Map<Direction, List<BakedQuad>> culledFaces, boolean hasAmbientOcclusion, boolean usesBlockLight, boolean isGui3d, TextureAtlasSprite particleIcon, ItemTransforms transforms, ItemOverrides overrides, RenderTypeGroup renderTypes) -
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 StreamCodec
<io.netty.buffer.ByteBuf, Direction> Direction.STREAM_CODEC
static final Map
<Direction, Transformation> BlockMath.VANILLA_UV_TRANSFORM_GLOBAL_TO_LOCAL
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 horizontalIndex) static Direction
Direction.from3DDataValue
(int index) static Direction
Direction.fromAxisAndDirection
(Direction.Axis axis, Direction.AxisDirection axisDirection) static Direction
Direction.fromDelta
(int x, int y, int z) static Direction
Direction.fromYRot
(double angle) FrontAndTop.front()
static Direction
Direction.get
(Direction.AxisDirection axisDirection, Direction.Axis axis) Direction.getClockWise()
Direction.getClockWise
(Direction.Axis axis) private Direction
Direction.getClockWiseX()
private Direction
Direction.getClockWiseZ()
Direction.getCounterClockWise()
Direction.getCounterClockWise
(Direction.Axis axis) private Direction
Direction.getCounterClockWiseX()
private Direction
Direction.getCounterClockWiseZ()
static Direction
Direction.getFacingAxis
(Entity entity, Direction.Axis axis) static Direction
Direction.getNearest
(double x, double y, double z) static Direction
Direction.getNearest
(float x, float y, float z) static Direction
Direction.getNearest
(Vec3 ois) Direction.getOpposite()
static Direction
Direction.getRandom
(RandomSource random) Direction.Plane.getRandomDirection
(RandomSource random) private static Direction[]
Direction.makeDirectionArray
(Direction first, Direction second, Direction third) static Direction[]
Direction.orderedByNearest
(Entity entity) 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 random) Direction8.getDirections()
Direction.Plane.iterator()
Direction.Plane.shuffledCopy
(RandomSource random) Direction.Plane.stream()
Direction.stream()
private static com.mojang.serialization.DataResult
<Direction> Direction.verifyVertical
(Direction direction) Methods in net.minecraft.core with parameters of type DirectionModifier and TypeMethodDescriptionstatic FrontAndTop
FrontAndTop.fromFrontAndTop
(Direction front, Direction top) static Transformation
BlockMath.getUVLockTransform
(Transformation p_transformation, Direction p_direction) private static int
private static Direction[]
Direction.makeDirectionArray
(Direction first, Direction second, Direction third) 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 pos, Direction direction) static Iterable
<BlockPos.MutableBlockPos> BlockPos.spiralAround
(BlockPos center, int size, Direction rotationDirection, Direction expansionDirection) boolean
boolean
private static com.mojang.serialization.DataResult
<Direction> Direction.verifyVertical
(Direction direction) Constructors in net.minecraft.core with parameters of type DirectionModifierConstructorDescriptionprivate
Direction8
(Direction... directions) private
FrontAndTop
(String name, Direction front, Direction top) private
Plane
(Direction[] faces, Direction.Axis[] axis) -
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 blockSource, Direction direction) private static void
DefaultDispenseItemBehavior.playDefaultAnimation
(BlockSource blockSource, Direction direction) static void
DefaultDispenseItemBehavior.spawnItem
(Level level, ItemStack stack, int speed, Direction facing, Position position) -
Uses of Direction in net.minecraft.data.models
Methods in net.minecraft.data.models that return types with arguments of type DirectionModifier and TypeMethodDescriptionprivate static PropertyDispatch.C4
<Direction, DoubleBlockHalf, DoorHingeSide, Boolean> BlockModelGenerators.configureDoorHalf
(PropertyDispatch.C4<Direction, DoubleBlockHalf, DoorHingeSide, Boolean> properties, DoubleBlockHalf half, ResourceLocation leftModelLocation, ResourceLocation leftOpenModelLocation, ResourceLocation rightModelLocation, ResourceLocation rightOpenModelLocation) Methods in net.minecraft.data.models with parameters of type DirectionModifier and TypeMethodDescriptionprivate Variant
BlockModelGenerators.createPointedDripstoneVariant
(Direction direction, DripstoneThickness dripstoneThickness) Method parameters in net.minecraft.data.models with type arguments of type DirectionModifier and TypeMethodDescriptionprivate static PropertyDispatch.C4
<Direction, DoubleBlockHalf, DoorHingeSide, Boolean> BlockModelGenerators.configureDoorHalf
(PropertyDispatch.C4<Direction, DoubleBlockHalf, DoorHingeSide, Boolean> properties, DoubleBlockHalf half, ResourceLocation leftModelLocation, ResourceLocation leftOpenModelLocation, ResourceLocation rightModelLocation, ResourceLocation rightOpenModelLocation) -
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 facingDirection) -
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 action, BlockPos pos, Direction direction) ServerboundPlayerActionPacket
(ServerboundPlayerActionPacket.Action action, BlockPos pos, Direction direction, int sequence) -
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 pos, Direction direction) private boolean
ServerPlayer.bedInRange
(BlockPos pos, Direction direction) float
float
void
DemoMode.handleBlockBreakAction
(BlockPos pos, ServerboundPlayerActionPacket.Action action, Direction face, int maxBuildHeight, int sequence) void
ServerPlayerGameMode.handleBlockBreakAction
(BlockPos pos, ServerboundPlayerActionPacket.Action action, Direction face, int maxBuildHeight, int sequence) void
ServerLevel.updateNeighborsAtExceptFromFacing
(BlockPos pos, Block blockType, Direction skipSide) -
Uses of Direction in net.minecraft.util
Methods in net.minecraft.util with parameters of type DirectionModifier and TypeMethodDescriptionint
SegmentedAnglePrecision.fromDirection
(Direction direction) static void
ParticleUtils.spawnParticleOnFace
(Level level, BlockPos pos, Direction direction, ParticleOptions particle, Vec3 speed, double spread) static void
ParticleUtils.spawnParticlesOnBlockFace
(Level level, BlockPos pos, ParticleOptions particle, IntProvider count, Direction direction, Supplier<Vec3> speedSupplier, double spread) -
Uses of Direction in net.minecraft.world
Methods in net.minecraft.world with parameters of type DirectionModifier and TypeMethodDescriptionboolean
WorldlyContainer.canPlaceItemThroughFace
(int index, ItemStack itemStack, Direction direction) Returnstrue
if automation can insert the given item in the given slot from the given side.boolean
WorldlyContainer.canTakeItemThroughFace
(int index, ItemStack stack, Direction direction) Returnstrue
if automation can extract the given item in the given slot from the given side.int[]
WorldlyContainer.getSlotsForFace
(Direction side) -
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 DirectionModifier and TypeFieldDescriptionprotected Direction
HangingEntity.direction
The direction the entity is facingMethods 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 pos, Direction direction) protected AABB
ItemFrame.calculateBoundingBox
(BlockPos pos, Direction direction) protected AABB
Painting.calculateBoundingBox
(BlockPos pos, Direction p_direction) protected void
HangingEntity.setDirection
(Direction facingDirection) Updates facing and bounding box based on itprotected void
ItemFrame.setDirection
(Direction facingDirection) Updates facing and bounding box based on itConstructors in net.minecraft.world.entity.decoration with parameters of type DirectionModifierConstructorDescriptionGlowItemFrame
(Level p_149610_, BlockPos p_149611_, Direction p_149612_) ItemFrame
(EntityType<? extends ItemFrame> entityType, Level level, BlockPos pos, Direction direction) -
Uses of Direction in net.minecraft.world.entity.monster
Fields in net.minecraft.world.entity.monster declared as DirectionModifier and TypeFieldDescriptionprivate 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 pos) Shulker.getAttachFace()
Methods in net.minecraft.world.entity.monster with parameters of type DirectionModifier and TypeMethodDescription(package private) boolean
static AABB
Shulker.getProgressAabb
(float scale, Direction expansionDirection, float peek) static AABB
Shulker.getProgressDeltaAabb
(float scale, Direction expansionDirection, float currentPeek, float oldPeek) private void
Shulker.setAttachFace
(Direction attachFace) -
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 pos, Direction facing, ItemStack stack) 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 direction) -
Uses of Direction in net.minecraft.world.entity.vehicle
Methods in net.minecraft.world.entity.vehicle that return DirectionModifier and TypeMethodDescriptionAbstractMinecart.getMotionDirection()
Boat.getMotionDirection()
Methods in net.minecraft.world.entity.vehicle with parameters of type DirectionModifier and TypeMethodDescriptionstatic int[][]
DismountHelper.offsetsForDirection
(Direction p_direction) -
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 level, Position pos, ItemStack stack, Direction direction) EggItem.asProjectile
(Level level, Position pos, ItemStack stack, Direction direction) ExperienceBottleItem.asProjectile
(Level level, Position pos, ItemStack stack, Direction direction) FireChargeItem.asProjectile
(Level level, Position pos, ItemStack stack, Direction direction) FireworkRocketItem.asProjectile
(Level level, Position pos, ItemStack stack, Direction direction) ProjectileItem.asProjectile
(Level level, Position pos, ItemStack stack, Direction direction) SnowballItem.asProjectile
(Level level, Position pos, ItemStack stack, Direction direction) SpectralArrowItem.asProjectile
(Level p_338332_, Position p_338313_, ItemStack p_338304_, Direction p_338842_) ThrowablePotionItem.asProjectile
(Level level, Position pos, ItemStack stack, Direction direction) TridentItem.asProjectile
(Level level, Position pos, ItemStack stack, Direction direction) WindChargeItem.asProjectile
(Level p_338589_, Position p_338670_, ItemStack p_338308_, Direction p_338206_) static BrushItem.DustParticlesDelta
BrushItem.DustParticlesDelta.fromDirection
(Vec3 pos, Direction direction) ProjectileItem.PositionFunction.getDispensePosition
(BlockSource source, Direction direction) private static Vec3
FireworkRocketItem.getEntityPokingOutOfBlockPos
(BlockSource source, Direction direction) static boolean
BoneMealItem.growWaterPlant
(ItemStack stack, Level level, BlockPos pos, Direction clickedSide) protected boolean
HangingEntityItem.mayPlace
(Player player, Direction direction, ItemStack hangingEntityStack, BlockPos pos) protected boolean
Constructors in net.minecraft.world.item with parameters of type DirectionModifierConstructorDescriptionSignItem
(Item.Properties properties, Block standingBlock, Block wallBlock, Direction attachmentDirection) StandingAndWallBlockItem
(Block block, Block wallBlock, Item.Properties properties, Direction attachmentDirection) -
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 context, BlockPos pos, Direction direction) 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 DirectionMethods in net.minecraft.world.level with parameters of type DirectionModifier and TypeMethodDescriptiondefault int
SignalGetter.getControlInputSignal
(BlockPos pos, Direction direction, boolean diodesOnly) Returns the control signal emitted from the given position in the given direction.default int
SignalGetter.getDirectSignal
(BlockPos pos, Direction direction) Returns the direct redstone signal emitted from the given position in the given direction.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 pos, Entity entity, Direction direction) void
Level.neighborShapeChanged
(Direction direction, BlockState queried, BlockPos pos, BlockPos offsetPos, int flags, int recursionLevel) default void
LevelAccessor.neighborShapeChanged
(Direction direction, BlockState queried, BlockPos pos, BlockPos offsetPos, int flags, int recursionLevel) void
Level.updateNeighborsAtExceptFromFacing
(BlockPos pos, Block blockType, Direction skipSide) -
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 final Direction
Block.BlockStatePairKey.direction
private static final Direction[]
BuddingAmethystBlock.DIRECTIONS
protected static final Direction[]
MultifaceBlock.DIRECTIONS
private static final Direction[]
PipeBlock.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 TypeFieldDescriptionprivate static final Map
<Direction, VoxelShape> AttachedStemBlock.AABBS
private static final Map
<Direction, VoxelShape> PiglinWallSkullBlock.AABBS
private static final Map
<Direction, VoxelShape> WallHangingSignBlock.AABBS
private static final Map
<Direction, VoxelShape> WallSignBlock.AABBS
private static final Map
<Direction, VoxelShape> WallSkullBlock.AABBS
private static final Map
<Direction, VoxelShape> WallTorchBlock.AABBS
SculkSpreader.ChargeCursor.DIRECTION_SET
static final EnumProperty
<Direction> ShulkerBoxBlock.FACING
SculkSpreader.ChargeCursor.facings
private static final Map
<Direction, VoxelShape> ShulkerBoxBlock.OPEN_SHAPE_BY_DIRECTION
static final com.google.common.collect.ImmutableList
<Direction> LiquidBlock.POSSIBLE_FLOW_DIRECTIONS
protected static final Map
<Direction, BooleanProperty> CrossCollisionBlock.PROPERTY_BY_DIRECTION
private static final Map
<Direction, BooleanProperty> FireBlock.PROPERTY_BY_DIRECTION
private static final Map
<Direction, BooleanProperty> HugeMushroomBlock.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
private static final Map
<Direction, VoxelShape> MultifaceBlock.SHAPE_BY_DIRECTION
private static final BiFunction
<Direction, Integer, VoxelShape> PinkPetalsBlock.SHAPE_BY_PROPERTIES
private static final Map
<Direction, VoxelShape> BaseCoralWallFanBlock.SHAPES
private static final Map
<Direction, VoxelShape> WallBannerBlock.SHAPES
private static final Map
<Direction, VoxelShape> RedStoneWireBlock.SHAPES_FLOOR
private static final Map
<Direction, VoxelShape> RedStoneWireBlock.SHAPES_UP
private static final Map
<Direction, VoxelShape> BigDripleafBlock.STEM_SHAPES
Methods in net.minecraft.world.level.block that return DirectionModifier and TypeMethodDescriptionprivate static Direction
PointedDripstoneBlock.calculateTipDirection
(LevelReader level, BlockPos pos, Direction dir) private Direction
ChestBlock.candidatePartnerFacing
(BlockPlaceContext context, Direction direction) MultifaceSpreader.SpreadPos.face()
Returns the value of theface
record component.static Direction
BedBlock.getBedOrientation
(BlockGetter level, BlockPos pos) static Direction
BedBlock.getConnectedDirection
(BlockState state) private static Direction
BellBlock.getConnectedDirection
(BlockState state) static Direction
ChestBlock.getConnectedDirection
(BlockState state) protected static Direction
FaceAttachedHorizontalDirectionalBlock.getConnectedDirection
(BlockState state) protected static Direction
LanternBlock.getConnectedDirection
(BlockState state) static Direction
JigsawBlock.getFrontFacing
(BlockState state) This represents the face that the puzzle piece is on.private static Direction
BedBlock.getNeighbourDirection
(BedPart part, Direction direction) 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 state) 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 state) SculkSpreader.ChargeCursor.getFacingData()
MultifaceBlock.unpack
(byte packedDirections) Methods in net.minecraft.world.level.block with parameters of type DirectionModifier and TypeMethodDescriptionprivate static boolean
ChorusFlowerBlock.allNeighborsEmpty
(LevelReader level, BlockPos pos, Direction excludingSide) boolean
BellBlock.attemptToRing
(Entity entity, Level level, BlockPos pos, Direction direction) boolean
BellBlock.attemptToRing
(Level level, BlockPos pos, Direction direction) private static int[][]
BedBlock.bedAboveStandUpOffsets
(Direction dir) private static int[][]
BedBlock.bedStandUpOffsets
(Direction firstDir, Direction secondDir) private static int[][]
BedBlock.bedSurroundStandUpOffsets
(Direction firstDir, Direction secondDir) private static DripstoneThickness
PointedDripstoneBlock.calculateDripstoneThickness
(LevelReader level, BlockPos pos, Direction dir, boolean isTipMerge) private static Direction
PointedDripstoneBlock.calculateTipDirection
(LevelReader level, BlockPos pos, Direction dir) static boolean
FaceAttachedHorizontalDirectionalBlock.canAttach
(LevelReader reader, BlockPos pos, Direction direction) private boolean
LadderBlock.canAttachTo
(BlockGetter blockReader, BlockPos pos, Direction direction) static boolean
MultifaceBlock.canAttachTo
(BlockGetter level, Direction direction, BlockPos pos, BlockState state) boolean
WallHangingSignBlock.canAttachTo
(LevelReader level, BlockState state, BlockPos pos, Direction direction) static boolean
BaseFireBlock.canBePlacedAt
(Level level, BlockPos pos, Direction direction) boolean
FireBlock.canCatchFire
(BlockGetter world, BlockPos pos, Direction face) Side sensitive version that calls the block function.private Direction
ChestBlock.candidatePartnerFacing
(BlockPlaceContext context, Direction direction) boolean
ComposterBlock.EmptyContainer.canPlaceItemThroughFace
(int index, ItemStack itemStack, Direction direction) Returnstrue
if automation can insert the given item in the given slot from the given side.boolean
ComposterBlock.InputContainer.canPlaceItemThroughFace
(int index, ItemStack itemStack, Direction direction) Returnstrue
if automation can insert the given item in the given slot from the given side.boolean
ComposterBlock.OutputContainer.canPlaceItemThroughFace
(int index, ItemStack itemStack, Direction direction) Returnstrue
if automation can insert the given item in the given slot from the given side.default boolean
MultifaceSpreader.SpreadConfig.canSpreadFrom
(BlockState state, Direction direction) boolean
MultifaceSpreader.canSpreadInAnyDirection
(BlockState state, BlockGetter level, BlockPos pos, Direction spreadDirection) private boolean
VineBlock.canSupportAtFace
(BlockGetter level, BlockPos pos, Direction direction) static boolean
Block.canSupportCenter
(LevelReader level, BlockPos pos, Direction direction) static boolean
WallTorchBlock.canSurvive
(LevelReader level, BlockPos pos, Direction facing) boolean
ComposterBlock.EmptyContainer.canTakeItemThroughFace
(int index, ItemStack stack, Direction direction) Returnstrue
if automation can extract the given item in the given slot from the given side.boolean
ComposterBlock.InputContainer.canTakeItemThroughFace
(int index, ItemStack stack, Direction direction) Returnstrue
if automation can extract the given item in the given slot from the given side.boolean
ComposterBlock.OutputContainer.canTakeItemThroughFace
(int index, ItemStack stack, Direction direction) Returnstrue
if automation can extract the given item in the given slot from the given side.private static boolean
StairBlock.canTakeShape
(BlockState state, BlockGetter level, BlockPos pos, Direction face) private void
FireBlock.checkBurnOut
(Level level, BlockPos pos, int chance, RandomSource random, int age, Direction face) boolean
FenceBlock.connectsTo
(BlockState state, boolean isSideSolid, Direction direction) private boolean
WallBlock.connectsTo
(BlockState state, boolean sideSolid, Direction direction) static boolean
FenceGateBlock.connectsToDirection
(BlockState state, Direction direction) private static void
PointedDripstoneBlock.createDripstone
(LevelAccessor level, BlockPos pos, Direction direction, DripstoneThickness thickness) private static void
CommandBlock.executeChain
(Level level, BlockPos pos, Direction direction) BedBlock.findBunkBedStandUpPosition
(EntityType<?> entityType, CollisionGetter collisionGetter, BlockPos pos, Direction stateFacing, Direction entityFacing) BedBlock.findStandUpPosition
(EntityType<?> entityType, CollisionGetter collisionGetter, BlockPos pos, Direction p_direction, float yRot) private RedstoneSide
RedStoneWireBlock.getConnectingSide
(BlockGetter level, BlockPos pos, Direction face) private RedstoneSide
RedStoneWireBlock.getConnectingSide
(BlockGetter level, BlockPos pos, Direction direction, boolean nonNormalCubeAbove) protected int
BasePressurePlateBlock.getDirectSignal
(BlockState blockState, BlockGetter blockAccess, BlockPos pos, Direction side) Returns the direct signal this block emits in the given direction.protected int
ButtonBlock.getDirectSignal
(BlockState blockState, BlockGetter blockAccess, BlockPos pos, Direction side) Returns the direct signal this block emits in the given direction.protected int
DetectorRailBlock.getDirectSignal
(BlockState blockState, BlockGetter blockAccess, BlockPos pos, Direction side) Returns the direct signal this block emits in the given direction.protected int
DiodeBlock.getDirectSignal
(BlockState blockState, BlockGetter blockAccess, BlockPos pos, Direction side) Returns the direct signal this block emits in the given direction.protected int
LecternBlock.getDirectSignal
(BlockState blockState, BlockGetter blockAccess, BlockPos pos, Direction side) Returns the direct signal this block emits in the given direction.protected int
LeverBlock.getDirectSignal
(BlockState blockState, BlockGetter blockAccess, BlockPos pos, Direction side) Returns the direct signal this block emits in the given direction.protected int
LightningRodBlock.getDirectSignal
(BlockState state, BlockGetter level, BlockPos pos, Direction direction) Returns the direct signal this block emits in the given direction.protected int
ObserverBlock.getDirectSignal
(BlockState blockState, BlockGetter blockAccess, BlockPos pos, Direction side) Returns the direct signal this block emits in the given direction.protected int
RedstoneTorchBlock.getDirectSignal
(BlockState blockState, BlockGetter blockAccess, BlockPos pos, Direction side) Returns the direct signal this block emits in the given direction.protected int
RedStoneWireBlock.getDirectSignal
(BlockState blockState, BlockGetter blockAccess, BlockPos pos, Direction side) Returns the direct signal this block emits in the given direction.int
SculkSensorBlock.getDirectSignal
(BlockState state, BlockGetter level, BlockPos pos, Direction direction) Returns the direct signal this block emits in the given direction.protected int
TrappedChestBlock.getDirectSignal
(BlockState blockState, BlockGetter blockAccess, BlockPos pos, Direction side) Returns the direct signal this block emits in the given direction.protected int
TripWireHookBlock.getDirectSignal
(BlockState blockState, BlockGetter blockAccess, BlockPos pos, Direction side) Returns the direct signal this block emits in the given direction.static BooleanProperty
MultifaceBlock.getFaceProperty
(Direction direction) private ItemFrame
ComparatorBlock.getItemFrame
(Level level, Direction facing, BlockPos pos) private static Direction
BedBlock.getNeighbourDirection
(BedPart part, Direction direction) Given a bed part and the direction it's facing, find the direction to move to get the other bed partstatic BooleanProperty
VineBlock.getPropertyForFace
(Direction face) ChiseledBookShelfBlock.getRelativeHitCoordinatesForBlockFace
(BlockHitResult hitResult, Direction face) Mirror.getRotation
(Direction facing) Determines the rotation that is equivalent to this mirror if the rotating object faces in the given directionprotected int
BasePressurePlateBlock.getSignal
(BlockState blockState, BlockGetter blockAccess, BlockPos pos, Direction side) Returns the signal this block emits in the given direction.protected int
ButtonBlock.getSignal
(BlockState blockState, BlockGetter blockAccess, BlockPos pos, Direction side) 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 blockState, BlockGetter blockAccess, BlockPos pos, Direction side) Returns the signal this block emits in the given direction.protected int
DetectorRailBlock.getSignal
(BlockState blockState, BlockGetter blockAccess, BlockPos pos, Direction side) Returns the signal this block emits in the given direction.protected int
DiodeBlock.getSignal
(BlockState blockState, BlockGetter blockAccess, BlockPos pos, Direction side) Returns the signal this block emits in the given direction.int
JukeboxBlock.getSignal
(BlockState state, BlockGetter level, BlockPos pos, Direction direction) Returns the signal this block emits in the given direction.protected int
LecternBlock.getSignal
(BlockState blockState, BlockGetter blockAccess, BlockPos pos, Direction side) Returns the signal this block emits in the given direction.protected int
LeverBlock.getSignal
(BlockState blockState, BlockGetter blockAccess, BlockPos pos, Direction side) Returns the signal this block emits in the given direction.protected int
LightningRodBlock.getSignal
(BlockState state, BlockGetter level, BlockPos pos, Direction direction) Returns the signal this block emits in the given direction.protected int
ObserverBlock.getSignal
(BlockState blockState, BlockGetter blockAccess, BlockPos pos, Direction side) Returns the signal this block emits in the given direction.protected int
PoweredBlock.getSignal
(BlockState blockState, BlockGetter blockAccess, BlockPos pos, Direction side) Returns the signal this block emits in the given direction.protected int
RedstoneTorchBlock.getSignal
(BlockState blockState, BlockGetter blockAccess, BlockPos pos, Direction side) Returns the signal this block emits in the given direction.protected int
RedstoneWallTorchBlock.getSignal
(BlockState blockState, BlockGetter blockAccess, BlockPos pos, Direction side) Returns the signal this block emits in the given direction.protected int
RedStoneWireBlock.getSignal
(BlockState blockState, BlockGetter blockAccess, BlockPos pos, Direction side) Returns the signal this block emits in the given direction.protected int
SculkSensorBlock.getSignal
(BlockState state, BlockGetter level, BlockPos pos, Direction direction) Returns the signal this block emits in the given direction.protected int
TargetBlock.getSignal
(BlockState blockState, BlockGetter blockAccess, BlockPos pos, Direction side) Returns the signal this block emits in the given direction.protected int
TrappedChestBlock.getSignal
(BlockState blockState, BlockGetter blockAccess, BlockPos pos, Direction side) Returns the signal this block emits in the given direction.protected int
TripWireHookBlock.getSignal
(BlockState blockState, BlockGetter blockAccess, BlockPos pos, Direction side) Returns the signal this block emits in the given direction.int[]
ComposterBlock.EmptyContainer.getSlotsForFace
(Direction side) int[]
ComposterBlock.InputContainer.getSlotsForFace
(Direction side) int[]
ComposterBlock.OutputContainer.getSlotsForFace
(Direction side) MultifaceSpreader.getSpreadFromFaceTowardDirection
(BlockState state, BlockGetter level, BlockPos pos, Direction spreadDirection, Direction face, MultifaceSpreader.SpreadPredicate predicate) abstract MultifaceSpreader.SpreadPos
MultifaceSpreader.SpreadType.getSpreadPos
(BlockPos pos, Direction face, Direction spreadDirection) MultifaceBlock.getStateForPlacement
(BlockState currentState, BlockGetter level, BlockPos pos, Direction lookingDirection) MultifaceSpreader.DefaultSpreaderConfig.getStateForPlacement
(BlockState currentState, BlockGetter level, BlockPos pos, Direction lookingDirection) MultifaceSpreader.SpreadConfig.getStateForPlacement
(BlockState currentState, BlockGetter level, BlockPos pos, Direction lookingDirection) private static void
PointedDripstoneBlock.grow
(ServerLevel server, BlockPos pos, Direction direction) static boolean
MultifaceBlock.hasFace
(BlockState state, Direction direction) default boolean
MultifaceSpreader.SpreadConfig.hasFace
(BlockState state, Direction direction) private static int
static boolean
VineBlock.isAcceptableNeighbour
(BlockGetter blockReader, BlockPos neighborPos, Direction attachedFace) static boolean
Block.isFaceFull
(VoxelShape shape, Direction face) protected boolean
MultifaceBlock.isFaceSupported
(Direction face) private static boolean
PointedDripstoneBlock.isPointedDripstoneWithDirection
(BlockState state, Direction dir) private static boolean
private boolean
BellBlock.isProperHit
(BlockState pos, Direction p_direction, double distanceY) abstract boolean
SupportType.isSupporting
(BlockState state, BlockGetter level, BlockPos pos, Direction face) private static boolean
PointedDripstoneBlock.isUnmergedTipWithDirection
(BlockState state, Direction dir) private static boolean
SculkSpreader.ChargeCursor.isUnobstructed
(LevelAccessor level, BlockPos pos, Direction direction) private static boolean
PointedDripstoneBlock.isValidPointedDripstonePlacement
(LevelReader level, BlockPos pos, Direction dir) boolean
MultifaceBlock.isValidStateForPlacement
(BlockGetter level, BlockState state, BlockPos pos, Direction direction) Mirror the given facing according to this mirrorprivate static void
TripWireHookBlock.notifyNeighbors
(Block block, Level level, BlockPos pos, Direction direction) void
TntBlock.onCaughtFire
(BlockState state, Level world, BlockPos pos, Direction face, LivingEntity igniter) protected static boolean
BigDripleafBlock.place
(LevelAccessor level, BlockPos pos, FluidState fluidState, Direction direction) protected static boolean
BigDripleafStemBlock.place
(LevelAccessor level, BlockPos pos, FluidState fluidState, Direction direction) static void
BigDripleafBlock.placeWithRandomHeight
(LevelAccessor level, RandomSource random, BlockPos pos, Direction direction) static void
Block.popResourceFromFace
(Level level, BlockPos pos, Direction direction, ItemStack stack) protected static boolean
RedStoneWireBlock.shouldConnectTo
(BlockState state, Direction p_direction) boolean
TripWireBlock.shouldConnectTo
(BlockState state, Direction direction) static boolean
Block.shouldRenderFace
(BlockState state, BlockGetter level, BlockPos offset, Direction face, BlockPos pos) private BlockState
WallBlock.sideUpdate
(LevelReader level, BlockPos firstPos, BlockState firstState, BlockPos secondPos, BlockState secondState, Direction dir) protected boolean
HalfTransparentBlock.skipRendering
(BlockState state, BlockState adjacentBlockState, Direction side) protected boolean
IronBarsBlock.skipRendering
(BlockState state, BlockState adjacentBlockState, Direction side) protected boolean
LiquidBlock.skipRendering
(BlockState state, BlockState adjacentBlockState, Direction side) protected boolean
MangroveRootsBlock.skipRendering
(BlockState p_221510_, BlockState p_221511_, Direction p_221512_) protected boolean
PowderSnowBlock.skipRendering
(BlockState state, BlockState adjacentState, Direction direction) private void
RedStoneWireBlock.spawnParticlesAlongLine
(Level level, RandomSource random, BlockPos pos, Vec3 particleVec, Direction xDirection, Direction zDirection, float min, float max) private long
MultifaceSpreader.spreadFromFaceTowardAllDirections
(BlockState state, LevelAccessor level, BlockPos pos, Direction spreadDirection, boolean markForPostprocessing) MultifaceSpreader.spreadFromFaceTowardDirection
(BlockState state, LevelAccessor level, BlockPos pos, Direction spreadDirection, Direction face, boolean markForPostprocessing) MultifaceSpreader.spreadFromFaceTowardRandomDirection
(BlockState state, LevelAccessor level, BlockPos pos, Direction spreadDirection, RandomSource random, boolean markForPostprocessing) protected boolean
MultifaceSpreader.DefaultSpreaderConfig.stateCanBeReplaced
(BlockGetter level, BlockPos pos, BlockPos spreadPos, Direction direction, BlockState state) boolean
SculkVeinBlock.SculkVeinSpreaderConfig.stateCanBeReplaced
(BlockGetter level, BlockPos pos, BlockPos spreadPos, Direction direction, BlockState state) protected BlockState
AmethystClusterBlock.updateShape
(BlockState state, Direction direction, BlockState neighborState, LevelAccessor level, BlockPos pos, BlockPos neighborPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
AttachedStemBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) protected BlockState
BambooSaplingBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
BambooStalkBlock.updateShape
(BlockState state, Direction direction, BlockState neighborState, LevelAccessor level, BlockPos pos, BlockPos neighborPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
BannerBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
BarrierBlock.updateShape
(BlockState state, Direction direction, BlockState neighborState, LevelAccessor level, BlockPos pos, BlockPos neighborPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
BaseCoralPlantTypeBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
BaseCoralWallFanBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
BasePressurePlateBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
BaseRailBlock.updateShape
(BlockState state, Direction direction, BlockState neighborState, LevelAccessor level, BlockPos pos, BlockPos neighborPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
BaseTorchBlock.updateShape
(BlockState p_304418_, Direction p_304475_, BlockState p_304669_, LevelAccessor p_304637_, BlockPos p_304633_, BlockPos p_304603_) protected BlockState
BedBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
BeehiveBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
BellBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
BigDripleafBlock.updateShape
(BlockState state, Direction direction, BlockState neighborState, LevelAccessor level, BlockPos pos, BlockPos neighborPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
BigDripleafStemBlock.updateShape
(BlockState state, Direction direction, BlockState neighborState, LevelAccessor level, BlockPos pos, BlockPos neighborPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.BrushableBlock.updateShape
(BlockState state, Direction direction, BlockState neighborState, LevelAccessor level, BlockPos pos, BlockPos neighborPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
BubbleColumnBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
BushBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
CactusBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
CakeBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
CampfireBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
CandleBlock.updateShape
(BlockState state, Direction direction, BlockState neighborState, LevelAccessor level, BlockPos pos, BlockPos neighborPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
CandleCakeBlock.updateShape
(BlockState state, Direction direction, BlockState neighborState, LevelAccessor level, BlockPos pos, BlockPos neighborPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
CarpetBlock.updateShape
(BlockState p_152926_, Direction p_152927_, BlockState p_152928_, LevelAccessor p_152929_, BlockPos p_152930_, BlockPos p_152931_) protected BlockState
CeilingHangingSignBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) protected BlockState
ChainBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
ChestBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor facing and neighbor state, returning a new state.protected BlockState
ChorusFlowerBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
ChorusPlantBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
CocoaBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.ComparatorBlock.updateShape
(BlockState state, Direction direction, BlockState neighborState, LevelAccessor level, BlockPos pos, BlockPos neighborPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
ConcretePowderBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) protected BlockState
ConduitBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
CoralBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
CoralFanBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
CoralPlantBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
CoralWallFanBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
DecoratedPotBlock.updateShape
(BlockState p_276307_, Direction p_276322_, BlockState p_276280_, LevelAccessor p_276320_, BlockPos p_276270_, BlockPos p_276312_) protected BlockState
DirtPathBlock.updateShape
(BlockState p_153152_, Direction p_153153_, BlockState p_153154_, LevelAccessor p_153155_, BlockPos p_153156_, BlockPos p_153157_) protected BlockState
DoorBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
DoublePlantBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
EnderChestBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
FaceAttachedHorizontalDirectionalBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
FallingBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
FarmBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
FenceBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
FenceGateBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
FireBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
FlowerPotBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
FrogspawnBlock.updateShape
(BlockState state, Direction direction, BlockState neighborState, LevelAccessor level, BlockPos pos, BlockPos neighborPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
GlowLichenBlock.updateShape
(BlockState state, Direction direction, BlockState neighborState, LevelAccessor level, BlockPos pos, BlockPos neighborPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
GrowingPlantBodyBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
GrowingPlantHeadBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
HangingRootsBlock.updateShape
(BlockState p_153351_, Direction p_153352_, BlockState p_153353_, LevelAccessor p_153354_, BlockPos p_153355_, BlockPos p_153356_) protected BlockState
HeavyCoreBlock.updateShape
(BlockState p_338756_, Direction p_338189_, BlockState p_338723_, LevelAccessor p_338514_, BlockPos p_338346_, BlockPos p_338401_) protected BlockState
HugeMushroomBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
IronBarsBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
LadderBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
LanternBlock.updateShape
(BlockState state, Direction direction, BlockState neighborState, LevelAccessor level, BlockPos pos, BlockPos neighborPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
LeavesBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
LightBlock.updateShape
(BlockState state, Direction direction, BlockState neighborState, LevelAccessor level, BlockPos pos, BlockPos neighborPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
LightningRodBlock.updateShape
(BlockState state, Direction direction, BlockState neighborState, LevelAccessor level, BlockPos pos, BlockPos neighborPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
LiquidBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
MagmaBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
MangrovePropaguleBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
MangroveRootsBlock.updateShape
(BlockState p_221514_, Direction p_221515_, BlockState p_221516_, LevelAccessor p_221517_, BlockPos p_221518_, BlockPos p_221519_) protected BlockState
MultifaceBlock.updateShape
(BlockState state, Direction direction, BlockState neighborState, LevelAccessor level, BlockPos pos, BlockPos neighborPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
NetherPortalBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
NoteBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
ObserverBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.PitcherCropBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
PointedDripstoneBlock.updateShape
(BlockState state, Direction p_direction, BlockState neighborState, LevelAccessor level, BlockPos pos, BlockPos neighborPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
RedstoneWallTorchBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
RedStoneWireBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
RepeaterBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
ScaffoldingBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
SculkSensorBlock.updateShape
(BlockState state, Direction direction, BlockState neighborState, LevelAccessor level, BlockPos pos, BlockPos neighborPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
SculkShriekerBlock.updateShape
(BlockState state, Direction direction, BlockState neighborState, LevelAccessor level, BlockPos pos, BlockPos neighborPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
SculkVeinBlock.updateShape
(BlockState state, Direction direction, BlockState neighborState, LevelAccessor level, BlockPos pos, BlockPos neighborPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
SeagrassBlock.updateShape
(BlockState p_154530_, Direction p_154531_, BlockState p_154532_, LevelAccessor p_154533_, BlockPos p_154534_, BlockPos p_154535_) protected BlockState
SeaPickleBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
SignBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
SlabBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
SmallDripleafBlock.updateShape
(BlockState p_154625_, Direction p_154626_, BlockState p_154627_, LevelAccessor p_154628_, BlockPos p_154629_, BlockPos p_154630_) protected BlockState
SnowLayerBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
SnowyDirtBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
SoulFireBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
SoulSandBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
SporeBlossomBlock.updateShape
(BlockState p_154713_, Direction p_154714_, BlockState p_154715_, LevelAccessor p_154716_, BlockPos p_154717_, BlockPos p_154718_) protected BlockState
StairBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
StandingSignBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
SugarCaneBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
TrapDoorBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
TripWireBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
TripWireHookBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
VineBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
WallBannerBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
WallBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
WallHangingSignBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
WallSignBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
WallTorchBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.protected BlockState
WaterloggedTransparentBlock.updateShape
(BlockState p_313906_, Direction p_313739_, BlockState p_313829_, LevelAccessor p_313692_, BlockPos p_313842_, BlockPos p_313843_) Method parameters in net.minecraft.world.level.block with type arguments of type DirectionModifier and TypeMethodDescriptiondefault boolean
SculkBehaviour.attemptSpreadVein
(LevelAccessor level, BlockPos pos, BlockState state, Collection<Direction> directions, boolean markForPostprocessing) private BlockState
MultifaceBlock.mapDirections
(BlockState state, Function<Direction, Direction> directionalFunction) private BlockState
MultifaceBlock.mapDirections
(BlockState state, Function<Direction, Direction> directionalFunction) static byte
MultifaceBlock.pack
(Collection<Direction> directions) static boolean
SculkVeinBlock.regrow
(LevelAccessor level, BlockPos pos, BlockState state, Collection<Direction> directions) Constructors in net.minecraft.world.level.block with parameters of type DirectionModifierConstructorDescriptionBlockStatePairKey
(BlockState first, BlockState second, Direction direction) protected
GrowingPlantBlock
(BlockBehaviour.Properties properties, Direction growthDirection, VoxelShape shape, boolean scheduleFluidTicks) protected
GrowingPlantBodyBlock
(BlockBehaviour.Properties properties, Direction growthDirection, VoxelShape shape, boolean scheduleFluidTicks) protected
GrowingPlantHeadBlock
(BlockBehaviour.Properties properties, Direction growthDirection, VoxelShape shape, boolean scheduleFluidTicks, double growPerTickProbability) Creates an instance of aSpreadPos
record class.Constructor parameters in net.minecraft.world.level.block with type arguments of type DirectionModifierConstructorDescriptionprivate
ChargeCursor
(BlockPos pos, int charge, int decayDelay, int updateDelay, Optional<Set<Direction>> facings) -
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 source, Container destination, ItemStack stack, Direction direction) Attempts to place the passed stack in the container, using as many slots as required.boolean
private static boolean
HopperBlockEntity.canPlaceItemInContainer
(Container container, ItemStack stack, int slot, Direction direction) boolean
AbstractFurnaceBlockEntity.canPlaceItemThroughFace
(int index, ItemStack itemStack, Direction direction) Returnstrue
if automation can insert the given item in the given slot from the given side.boolean
BrewingStandBlockEntity.canPlaceItemThroughFace
(int index, ItemStack itemStack, Direction direction) Returnstrue
if automation can insert the given item in the given slot from the given side.boolean
ShulkerBoxBlockEntity.canPlaceItemThroughFace
(int index, ItemStack itemStack, Direction direction) Returnstrue
if automation can insert the given item in the given slot from the given side.private static boolean
HopperBlockEntity.canTakeItemFromContainer
(Container source, Container destination, ItemStack stack, int slot, Direction direction) boolean
AbstractFurnaceBlockEntity.canTakeItemThroughFace
(int index, ItemStack stack, Direction direction) Returnstrue
if automation can extract the given item in the given slot from the given side.boolean
BrewingStandBlockEntity.canTakeItemThroughFace
(int index, ItemStack stack, Direction direction) Returnstrue
if automation can extract the given item in the given slot from the given side.boolean
ShulkerBoxBlockEntity.canTakeItemThroughFace
(int index, ItemStack stack, Direction direction) Returnstrue
if automation can extract the given item in the given slot from the given side.private static int[]
int[]
AbstractFurnaceBlockEntity.getSlotsForFace
(Direction side) int[]
BrewingStandBlockEntity.getSlotsForFace
(Direction side) int[]
ShulkerBoxBlockEntity.getSlotsForFace
(Direction side) private static boolean
HopperBlockEntity.isFullContainer
(Container container, Direction direction) void
boolean
TheEndGatewayBlockEntity.shouldRenderFace
(Direction face) boolean
TheEndPortalBlockEntity.shouldRenderFace
(Direction face) private static ItemStack
HopperBlockEntity.tryMoveInItem
(Container source, Container destination, ItemStack stack, int slot, Direction direction) private static boolean
HopperBlockEntity.tryTakeInItemFromSlot
(Hopper hopper, Container container, int slot, Direction direction) 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 pos, Direction facing) -
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 TypeFieldDescriptionprivate static final ThreadLocal
<Direction> PistonMovingBlockEntity.NOCLIP
Methods in net.minecraft.world.level.block.piston that return DirectionModifier and TypeMethodDescriptionPistonMovingBlockEntity.getDirection()
PistonMovingBlockEntity.getMovementDirection()
PistonStructureResolver.getPushDirection()
Methods in net.minecraft.world.level.block.piston with parameters of type DirectionModifier and TypeMethodDescriptionprivate boolean
PistonStructureResolver.addBlockLine
(BlockPos originPos, Direction direction) private static VoxelShape
PistonHeadBlock.calculateShape
(Direction direction, boolean shortArm) private static void
PistonMovingBlockEntity.fixEntityWithinPistonBase
(BlockPos pos, Entity entity, Direction dir, double progress) private static double
PistonMovingBlockEntity.getMovement
(AABB headShape, Direction direction, AABB facing) static AABB
PistonMath.getMovementArea
(AABB bounds, Direction dir, double delta) private boolean
PistonBaseBlock.getNeighborSignal
(SignalGetter signalGetter, BlockPos pos, Direction p_direction) static boolean
PistonBaseBlock.isPushable
(BlockState state, Level level, BlockPos pos, Direction movementDirection, boolean allowDestroy, Direction pistonFacing) Checks if the piston can push the given BlockState.private boolean
PistonBaseBlock.moveBlocks
(Level level, BlockPos pos, Direction facing, boolean extending) private static void
PistonMovingBlockEntity.moveEntityByPiston
(Direction noClipDirection, Entity entity, double progress, Direction direction) static BlockEntity
MovingPistonBlock.newMovingBlockEntity
(BlockPos pos, BlockState blockState, BlockState movedState, Direction direction, boolean extending, boolean isSourcePiston) protected BlockState
PistonHeadBlock.updateShape
(BlockState state, Direction facing, BlockState facingState, LevelAccessor level, BlockPos currentPos, BlockPos facingPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state.Constructors in net.minecraft.world.level.block.piston with parameters of type DirectionModifierConstructorDescriptionPistonMovingBlockEntity
(BlockPos pos, BlockState blockState, BlockState movedState, Direction direction, boolean extending, boolean isSourcePiston) PistonStructureResolver
(Level level, BlockPos pistonPos, Direction pistonDirection, boolean extending) -
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
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 level, BlockPos pos, Entity entity, Direction face) int
BlockBehaviour.BlockStateBase.getDirectSignal
(BlockGetter level, BlockPos pos, Direction direction) protected int
BlockBehaviour.getDirectSignal
(BlockState state, BlockGetter level, BlockPos pos, Direction direction) Returns the direct signal this block emits in the given direction.BlockBehaviour.BlockStateBase.getFaceOcclusionShape
(BlockGetter level, BlockPos pos, Direction direction) private static int
BlockBehaviour.BlockStateBase.Cache.getFaceSupportIndex
(Direction direction, SupportType supportType) int
BlockBehaviour.BlockStateBase.getSignal
(BlockGetter level, BlockPos pos, Direction direction) protected int
BlockBehaviour.getSignal
(BlockState state, BlockGetter level, BlockPos pos, Direction direction) Returns the signal this block emits in the given direction.boolean
BlockBehaviour.BlockStateBase.Cache.isFaceSturdy
(Direction direction, SupportType supportType) boolean
BlockBehaviour.BlockStateBase.isFaceSturdy
(BlockGetter level, BlockPos pos, Direction direction) boolean
BlockBehaviour.BlockStateBase.isFaceSturdy
(BlockGetter level, BlockPos pos, Direction face, SupportType supportType) boolean
BlockBehaviour.BlockStateBase.skipRendering
(BlockState state, Direction face) protected boolean
BlockBehaviour.skipRendering
(BlockState state, BlockState adjacentState, Direction direction) BlockBehaviour.BlockStateBase.updateShape
(Direction direction, BlockState neighborState, LevelAccessor level, BlockPos pos, BlockPos neighborPos) protected BlockState
BlockBehaviour.updateShape
(BlockState state, Direction direction, BlockState neighborState, LevelAccessor level, BlockPos pos, BlockPos neighborPos) Update the provided state given the provided neighbor direction and neighbor state, returning a new state. -
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 pos, Direction finger, Direction thumb, com.google.common.cache.LoadingCache<BlockPos, BlockInWorld> cache) Checks that the given pattern invalid input: '&' rotation is at the block coordinates.BlockPattern.matches
(LevelReader level, BlockPos pos, Direction finger, Direction thumb) protected static BlockPos
BlockPattern.translateAndRotate
(BlockPos pos, Direction finger, Direction thumb, int palmOffset, int thumbOffset, int fingerOffset) 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 frontTopLeft, Direction forwards, Direction up, com.google.common.cache.LoadingCache<BlockPos, BlockInWorld> cache, int width, int height, int depth) -
Uses of Direction in net.minecraft.world.level.block.state.properties
Fields in net.minecraft.world.level.block.state.properties declared as DirectionMethods 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 direction) static DirectionProperty
Method parameters in net.minecraft.world.level.block.state.properties with type arguments of type DirectionModifier and TypeMethodDescriptionstatic DirectionProperty
DirectionProperty.create
(String name, Collection<Direction> values) Create a new DirectionProperty for the given direction valuesstatic DirectionProperty
Create a new DirectionProperty with all directions that match the given PredicateConstructors in net.minecraft.world.level.block.state.properties with parameters of type DirectionConstructor parameters in net.minecraft.world.level.block.state.properties with type arguments of type DirectionModifierConstructorDescriptionprotected
DirectionProperty
(String name, Collection<Direction> values) -
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 state, Direction direction, BlockState offsetState, LevelAccessor level, BlockPos pos, BlockPos offsetPos) private static BlockState
UpgradeData.updateState
(BlockState state, Direction direction, LevelAccessor level, BlockPos pos, BlockPos offsetPos) -
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 level, int maxDistance, Predicate<BlockState> columnPredicate, Predicate<BlockState> tipPredicate, BlockPos.MutableBlockPos mutablePos, int startY, Direction direction) 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 direction) static BlockPredicate
BlockPredicate.hasSturdyFace
(Vec3i offset, Direction direction) 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 level, BlockPos pos, RandomSource random) Methods in net.minecraft.world.level.levelgen.feature with parameters of type DirectionModifier and TypeMethodDescriptionprotected static void
DripstoneUtils.buildBaseToTipColumn
(Direction direction, int height, boolean mergeTip, Consumer<BlockState> blockSetter) private static BlockState
DripstoneUtils.createPointedDripstone
(Direction direction, DripstoneThickness dripstoneThickness) protected static void
DripstoneUtils.growPointedDripstone
(LevelAccessor level, BlockPos pos, Direction direction, int height, boolean mergeTip) private static boolean
WaterloggedVegetationPatchFeature.isExposedDirection
(WorldGenLevel level, BlockPos pos, BlockPos.MutableBlockPos mutablePos, Direction direction) private void
DripstoneClusterFeature.replaceBlocksWithDripstoneBlocks
(WorldGenLevel level, BlockPos pos, int thickness, Direction direction) Method parameters in net.minecraft.world.level.levelgen.feature with type arguments of type DirectionModifier and TypeMethodDescriptionstatic boolean
MultifaceGrowthFeature.placeGrowthIfPossible
(WorldGenLevel level, BlockPos pos, BlockState state, MultifaceGrowthConfiguration config, RandomSource random, List<Direction> directions) -
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 random) MultifaceGrowthConfiguration.getShuffledDirectionsExcept
(RandomSource random, Direction direction) Methods in net.minecraft.world.level.levelgen.feature.configurations with parameters of type DirectionModifier and TypeMethodDescriptionMultifaceGrowthConfiguration.getShuffledDirectionsExcept
(RandomSource random, Direction direction) 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 pos, Direction direction, RandomSource random, BlockPos trunkOrigin) private boolean
MangroveRootPlacer.simulateRoots
(LevelSimulatedReader level, RandomSource random, BlockPos pos, Direction direction, BlockPos trunkOrigin, List<BlockPos> roots, int length) -
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 DirectionMethods in net.minecraft.world.level.levelgen.feature.treedecorators with parameters of type DirectionModifier and TypeMethodDescriptionprivate boolean
AttachedToLeavesDecorator.hasRequiredEmptyBlocks
(TreeDecorator.Context context, BlockPos pos, Direction direction) Constructor parameters in net.minecraft.world.level.levelgen.feature.treedecorators with type arguments of type DirectionModifierConstructorDescriptionAttachedToLeavesDecorator
(float probability, int exclusionRadiusXZ, int exclusionRadiusY, BlockStateProvider blockProvider, int requiredEmptyBlocks, List<Direction> directions) -
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 level, BiConsumer<BlockPos, BlockState> blockSetter, RandomSource random, int freeTreeHeight, BlockPos pos, TreeConfiguration config, Function<BlockState, BlockState> propertySetter, Direction p_direction, int secondBranchStartOffsetFromTop, boolean doubleBranch, BlockPos.MutableBlockPos currentPos) private void
UpwardsBranchingTrunkPlacer.placeBranch
(LevelSimulatedReader level, BiConsumer<BlockPos, BlockState> blockSetter, RandomSource random, int freeTreeHeight, TreeConfiguration treeConfig, List<FoliagePlacer.FoliageAttachment> foliageAttachments, BlockPos.MutableBlockPos pos, int y, Direction direction, int extraBranchLength, int extraBranchSteps) -
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 directionOfSearch, BlockPredicate targetCondition, int maxSteps) static EnvironmentScanPlacement
EnvironmentScanPlacement.scanningFor
(Direction directionOfSearch, BlockPredicate targetCondition, BlockPredicate allowedSearchCondition, int maxSteps) Constructors in net.minecraft.world.level.levelgen.placement with parameters of type DirectionModifierConstructorDescriptionprivate
CaveSurface
(Direction direction, int y, String id) private
EnvironmentScanPlacement
(Direction directionOfSearch, BlockPredicate targetCondition, BlockPredicate allowedSearchCondition, int maxSteps) -
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 random) Methods in net.minecraft.world.level.levelgen.structure with parameters of type DirectionModifier and TypeMethodDescriptionprotected boolean
StructurePiece.createDispenser
(WorldGenLevel level, BoundingBox box, RandomSource random, int x, int y, int z, Direction facing, ResourceKey<LootTable> lootTable) protected static BoundingBox
StructurePiece.makeBoundingBox
(int x, int y, int z, Direction direction, int offsetX, int offsetY, int offsetZ) static BoundingBox
BoundingBox.orientBox
(int structureMinX, int structureMinY, int structureMinZ, int xMin, int yMin, int zMin, int xMax, int yMax, int zMax, Direction facing) Create a bounding box with the specified dimensions and rotate it.void
StructurePiece.setOrientation
(Direction orientation) Constructors in net.minecraft.world.level.levelgen.structure with parameters of type DirectionModifierConstructorDescriptionprotected
ScatteredFeaturePiece
(StructurePieceType type, int x, int y, int z, int width, int height, int depth, Direction orientation) -
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 layout, int x, int y, int floor, int roomId) Methods in net.minecraft.world.level.levelgen.structure.structures with parameters of type DirectionModifier and TypeMethodDescriptionprivate void
WoodlandMansionPieces.MansionPiecePlacer.addRoom1x1
(List<WoodlandMansionPieces.WoodlandMansionPiece> pieces, BlockPos pos, Rotation p_rotation, Direction direction, WoodlandMansionPieces.FloorRoomCollection floorRooms) private void
WoodlandMansionPieces.MansionPiecePlacer.addRoom1x2
(List<WoodlandMansionPieces.WoodlandMansionPiece> pieces, BlockPos pos, Rotation rotation, Direction frontDirection, Direction sideDirection, WoodlandMansionPieces.FloorRoomCollection floorRooms, boolean isStairs) private void
WoodlandMansionPieces.MansionPiecePlacer.addRoom2x2
(List<WoodlandMansionPieces.WoodlandMansionPiece> pieces, BlockPos pos, Rotation p_rotation, Direction frontDirection, Direction sideDirection, WoodlandMansionPieces.FloorRoomCollection floorRooms) 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 direction, OceanMonumentPieces.RoomDefinition room, RandomSource random) NetherFortressPieces.BridgeCrossing.createPiece
(StructurePieceAccessor pieces, int x, int y, int z, Direction orientation, int genDepth) NetherFortressPieces.BridgeEndFiller.createPiece
(StructurePieceAccessor pieces, RandomSource random, int x, int y, int z, Direction orientation, int genDepth) NetherFortressPieces.BridgeStraight.createPiece
(StructurePieceAccessor pieces, RandomSource random, int x, int y, int z, Direction orientation, int genDepth) NetherFortressPieces.CastleCorridorStairsPiece.createPiece
(StructurePieceAccessor pieces, int x, int y, int z, Direction orientation, int genDepth) NetherFortressPieces.CastleCorridorTBalconyPiece.createPiece
(StructurePieceAccessor pieces, int x, int y, int z, Direction orientation, int genDepth) NetherFortressPieces.CastleEntrance.createPiece
(StructurePieceAccessor pieces, RandomSource random, int x, int y, int z, Direction orientation, int genDepth) NetherFortressPieces.CastleSmallCorridorCrossingPiece.createPiece
(StructurePieceAccessor pieces, int x, int y, int z, Direction orientation, int genDepth) NetherFortressPieces.CastleSmallCorridorLeftTurnPiece.createPiece
(StructurePieceAccessor pieces, RandomSource random, int x, int y, int z, Direction orientation, int genDepth) NetherFortressPieces.CastleSmallCorridorPiece.createPiece
(StructurePieceAccessor pieces, int x, int y, int z, Direction orientation, int genDepth) NetherFortressPieces.CastleSmallCorridorRightTurnPiece.createPiece
(StructurePieceAccessor pieces, RandomSource random, int x, int y, int z, Direction orientation, int genDepth) NetherFortressPieces.CastleStalkRoom.createPiece
(StructurePieceAccessor pieces, int x, int y, int z, Direction orientation, int genDepth) NetherFortressPieces.MonsterThrone.createPiece
(StructurePieceAccessor pieces, int x, int y, int z, int genDepth, Direction orientation) NetherFortressPieces.RoomCrossing.createPiece
(StructurePieceAccessor pieces, int x, int y, int z, Direction orientation, int genDepth) NetherFortressPieces.StairsRoom.createPiece
(StructurePieceAccessor pieces, int x, int y, int z, int genDepth, Direction orientation) StrongholdPieces.ChestCorridor.createPiece
(StructurePieceAccessor pieces, RandomSource random, int x, int y, int z, Direction orientation, int genDepth) StrongholdPieces.FiveCrossing.createPiece
(StructurePieceAccessor pieces, RandomSource random, int x, int y, int z, Direction orientation, int genDepth) static StrongholdPieces.LeftTurn
StrongholdPieces.LeftTurn.createPiece
(StructurePieceAccessor pieces, RandomSource random, int x, int y, int z, Direction orientation, int genDepth) static StrongholdPieces.Library
StrongholdPieces.Library.createPiece
(StructurePieceAccessor pieces, RandomSource random, int x, int y, int z, Direction orientation, int genDepth) static StrongholdPieces.PortalRoom
StrongholdPieces.PortalRoom.createPiece
(StructurePieceAccessor pieces, int x, int y, int z, Direction orientation, int genDepth) static StrongholdPieces.PrisonHall
StrongholdPieces.PrisonHall.createPiece
(StructurePieceAccessor pieces, RandomSource random, int x, int y, int z, Direction orientation, int genDepth) static StrongholdPieces.RightTurn
StrongholdPieces.RightTurn.createPiece
(StructurePieceAccessor pieces, RandomSource random, int x, int y, int z, Direction orientation, int genDepth) StrongholdPieces.RoomCrossing.createPiece
(StructurePieceAccessor pieces, RandomSource random, int x, int y, int z, Direction orientation, int genDepth) static StrongholdPieces.StairsDown
StrongholdPieces.StairsDown.createPiece
(StructurePieceAccessor pieces, RandomSource random, int x, int y, int z, Direction orientation, int genDepth) static StrongholdPieces.Straight
StrongholdPieces.Straight.createPiece
(StructurePieceAccessor pieces, RandomSource random, int x, int y, int z, Direction direction, int genDepth) StrongholdPieces.StraightStairsDown.createPiece
(StructurePieceAccessor pieces, RandomSource random, int x, int y, int z, Direction orientation, int genDepth) private static MineshaftPieces.MineShaftPiece
MineshaftPieces.createRandomShaftPiece
(StructurePieceAccessor pieces, RandomSource random, int x, int y, int z, Direction orientation, int genDepth, MineshaftStructure.Type type) (package private) static NetherFortressPieces.NetherBridgePiece
NetherFortressPieces.findAndCreateBridgePieceFactory
(NetherFortressPieces.PieceWeight weight, StructurePieceAccessor pieces, RandomSource random, int x, int y, int z, Direction orientation, int genDepth) private static StrongholdPieces.StrongholdPiece
StrongholdPieces.findAndCreatePieceFactory
(Class<? extends StrongholdPieces.StrongholdPiece> pieceClass, StructurePieceAccessor pieces, RandomSource random, int x, int y, int z, Direction direction, int genDepth) static BoundingBox
MineshaftPieces.MineShaftCorridor.findCorridorSize
(StructurePieceAccessor pieces, RandomSource random, int x, int y, int z, Direction direction) static BoundingBox
MineshaftPieces.MineShaftCrossing.findCrossing
(StructurePieceAccessor pieces, RandomSource random, int x, int y, int z, Direction direction) static BoundingBox
StrongholdPieces.FillerCorridor.findPieceBox
(StructurePieceAccessor pieces, RandomSource random, int x, int y, int z, Direction orientation) static BoundingBox
MineshaftPieces.MineShaftStairs.findStairs
(StructurePieceAccessor pieces, RandomSource random, int x, int y, int z, Direction direction) (package private) static MineshaftPieces.MineShaftPiece
MineshaftPieces.generateAndAddPiece
(StructurePiece piece, StructurePieceAccessor pieces, RandomSource random, int x, int y, int z, Direction direction, int genDepth) private StructurePiece
NetherFortressPieces.NetherBridgePiece.generateAndAddPiece
(NetherFortressPieces.StartPiece startPiece, StructurePieceAccessor pieces, RandomSource random, int x, int y, int z, Direction orientation, int genDepth, boolean castlePiece) (package private) static StructurePiece
StrongholdPieces.generateAndAddPiece
(StrongholdPieces.StartPiece piece, StructurePieceAccessor pieces, RandomSource random, int x, int y, int z, Direction direction, int genDepth) NetherFortressPieces.NetherBridgePiece.generatePiece
(NetherFortressPieces.StartPiece startPiece, List<NetherFortressPieces.PieceWeight> weights, StructurePieceAccessor pieces, RandomSource random, int x, int y, int z, Direction orientation, int genDepth) private static StrongholdPieces.StrongholdPiece
StrongholdPieces.generatePieceFromSmallDoor
(StrongholdPieces.StartPiece piece, StructurePieceAccessor pieces, RandomSource random, int x, int y, int z, Direction direction, int genDepth) private static BoundingBox
OceanMonumentPieces.OceanMonumentPiece.makeBoundingBox
(Direction direction, OceanMonumentPieces.RoomDefinition definition, int x, int y, int z) private void
WoodlandMansionPieces.MansionGrid.recursiveCorridor
(WoodlandMansionPieces.SimpleGrid layout, int x, int y, Direction p_direction, int length) void
OceanMonumentPieces.RoomDefinition.setConnection
(Direction direction, OceanMonumentPieces.RoomDefinition connectingRoom) private void
WoodlandMansionPieces.MansionPiecePlacer.traverseOuterWalls
(List<WoodlandMansionPieces.WoodlandMansionPiece> pieces, WoodlandMansionPieces.PlacementData data, WoodlandMansionPieces.SimpleGrid layout, Direction p_direction, int startX, int startY, int entranceX, int entranceY) Constructors in net.minecraft.world.level.levelgen.structure.structures with parameters of type DirectionModifierConstructorDescriptionprotected
BridgeCrossing
(int x, int z, Direction orientation) BridgeCrossing
(int genDepth, BoundingBox box, Direction orientation) BridgeEndFiller
(int genDepth, RandomSource random, BoundingBox box, Direction orientation) BridgeStraight
(int genDepth, RandomSource random, BoundingBox box, Direction orientation) CastleCorridorStairsPiece
(int genDepth, BoundingBox box, Direction orientation) CastleCorridorTBalconyPiece
(int genDepth, BoundingBox box, Direction orientation) CastleEntrance
(int genDepth, RandomSource random, BoundingBox box, Direction orientation) CastleSmallCorridorCrossingPiece
(int genDepth, BoundingBox box, Direction orientation) CastleSmallCorridorLeftTurnPiece
(int genDepth, RandomSource random, BoundingBox box, Direction orientation) CastleSmallCorridorPiece
(int genDepth, BoundingBox box, Direction orientation) CastleSmallCorridorRightTurnPiece
(int genDepth, RandomSource random, BoundingBox box, Direction orientation) CastleStalkRoom
(int genDepth, BoundingBox box, Direction orientation) ChestCorridor
(int genDepth, RandomSource random, BoundingBox box, Direction orientation) FillerCorridor
(int genDepth, BoundingBox box, Direction orientation) FiveCrossing
(int genDepth, RandomSource random, BoundingBox box, Direction orientation) LeftTurn
(int genDepth, RandomSource random, BoundingBox box, Direction orientation) Library
(int genDepth, RandomSource random, BoundingBox box, Direction orientation) MineShaftCorridor
(int genDepth, RandomSource random, BoundingBox boundingBox, Direction orientation, MineshaftStructure.Type type) MineShaftCrossing
(int genDepth, BoundingBox boundingBox, Direction direction, MineshaftStructure.Type type) MineShaftStairs
(int genDepth, BoundingBox boundingBox, Direction orientation, MineshaftStructure.Type type) MonsterThrone
(int genDepth, BoundingBox box, Direction orientation) MonumentBuilding
(RandomSource random, int x, int z, Direction orientation) OceanMonumentCoreRoom
(Direction direction, OceanMonumentPieces.RoomDefinition room) OceanMonumentDoubleXRoom
(Direction direction, OceanMonumentPieces.RoomDefinition room) OceanMonumentDoubleXYRoom
(Direction direction, OceanMonumentPieces.RoomDefinition room) OceanMonumentDoubleYRoom
(Direction direction, OceanMonumentPieces.RoomDefinition room) OceanMonumentDoubleYZRoom
(Direction direction, OceanMonumentPieces.RoomDefinition room) OceanMonumentDoubleZRoom
(Direction direction, OceanMonumentPieces.RoomDefinition room) OceanMonumentEntryRoom
(Direction direction, OceanMonumentPieces.RoomDefinition room) OceanMonumentPenthouse
(Direction direction, BoundingBox box) protected
OceanMonumentPiece
(StructurePieceType type, int genDepth, Direction orientation, OceanMonumentPieces.RoomDefinition roomDefinition, int x, int y, int z) OceanMonumentPiece
(StructurePieceType type, Direction orientation, int genDepth, BoundingBox box) OceanMonumentSimpleRoom
(Direction direction, OceanMonumentPieces.RoomDefinition room, RandomSource random) OceanMonumentSimpleTopRoom
(Direction direction, OceanMonumentPieces.RoomDefinition room) OceanMonumentWingRoom
(Direction direction, BoundingBox box, int flag) PortalRoom
(int genDepth, BoundingBox box, Direction orientation) PrisonHall
(int genDepth, RandomSource random, BoundingBox box, Direction orientation) RightTurn
(int genDepth, RandomSource random, BoundingBox box, Direction orientation) RoomCrossing
(int genDepth, BoundingBox box, Direction orientation) RoomCrossing
(int genDepth, RandomSource random, BoundingBox box, Direction orientation) StairsDown
(int genDepth, RandomSource random, BoundingBox box, Direction orientation) StairsDown
(StructurePieceType type, int genDepth, int x, int z, Direction orientation) StairsRoom
(int genDepth, BoundingBox box, Direction orientation) Straight
(int genDepth, RandomSource random, BoundingBox box, Direction orientation) StraightStairsDown
(int genDepth, RandomSource random, BoundingBox box, Direction orientation) -
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 direction, int x, int z) static long
LightEngine.QueueEntry.decreaseSkipOneDirection
(int level, Direction direction) static int
LightEngine.getLightBlockInto
(BlockGetter level, BlockState state1, BlockPos pos1, BlockState state2, BlockPos pos2, Direction direction, int defaultReturnValue) protected VoxelShape
LightEngine.getOcclusionShape
(BlockState state, long pos, Direction direction) static VoxelShape
LightEngine.getOcclusionShape
(BlockGetter level, BlockPos pos, BlockState state, Direction direction) static long
LightEngine.QueueEntry.increaseOnlyOneDirection
(int level, boolean fromEmptyShape, Direction direction) static long
LightEngine.QueueEntry.increaseSkipOneDirection
(int level, boolean fromEmptyShape, Direction direction) private void
SkyLightEngine.propagateFromEmptySections
(long packedPos, Direction direction, int level, boolean shouldIncrease, int emptySections) protected boolean
LightEngine.shapeOccludes
(long packedPos1, BlockState state1, long packedPos2, BlockState state2, Direction direction) static boolean
LightEngine.QueueEntry.shouldPropagateInDirection
(long entry, Direction direction) private static long
LightEngine.QueueEntry.withDirection
(long entry, Direction direction) private static long
LightEngine.QueueEntry.withoutDirection
(long entry, Direction direction) -
Uses of Direction in net.minecraft.world.level.material
Methods in net.minecraft.world.level.material that return types with arguments of type DirectionModifier and TypeMethodDescriptionprotected Map
<Direction, FluidState> FlowingFluid.getSpread
(Level level, BlockPos pos, BlockState state) Methods in net.minecraft.world.level.material with parameters of type DirectionModifier and TypeMethodDescriptionboolean
EmptyFluid.canBeReplacedWith
(FluidState fluidState, BlockGetter blockReader, BlockPos pos, Fluid fluid, Direction direction) protected abstract boolean
Fluid.canBeReplacedWith
(FluidState state, BlockGetter level, BlockPos pos, Fluid fluid, Direction direction) boolean
FluidState.canBeReplacedWith
(BlockGetter level, BlockPos pos, Fluid fluid, Direction direction) boolean
LavaFluid.canBeReplacedWith
(FluidState fluidState, BlockGetter blockReader, BlockPos pos, Fluid fluid, Direction direction) boolean
WaterFluid.canBeReplacedWith
(FluidState fluidState, BlockGetter blockReader, BlockPos pos, Fluid fluid, Direction direction) private boolean
FlowingFluid.canPassThrough
(BlockGetter level, Fluid fluid, BlockPos pos, BlockState state, Direction direction, BlockPos spreadPos, BlockState spreadState, FluidState fluidState) private boolean
FlowingFluid.canPassThroughWall
(Direction direction, BlockGetter level, BlockPos pos, BlockState state, BlockPos spreadPos, BlockState spreadState) protected boolean
FlowingFluid.canSpreadTo
(BlockGetter level, BlockPos fromPos, BlockState fromBlockState, Direction direction, BlockPos toPos, BlockState toBlockState, FluidState toFluidState, Fluid fluid) protected int
FlowingFluid.getSlopeDistance
(LevelReader level, BlockPos spreadPos, int distance, Direction p_direction, BlockState currentSpreadState, BlockPos sourcePos, it.unimi.dsi.fastutil.shorts.Short2ObjectMap<com.mojang.datafixers.util.Pair<BlockState, FluidState>> stateCache, it.unimi.dsi.fastutil.shorts.Short2BooleanMap waterHoleCache) private boolean
LavaFluid.isFlammable
(LevelReader p_level, BlockPos p_pos, Direction face) protected boolean
FlowingFluid.isSolidFace
(BlockGetter level, BlockPos neighborPos, Direction side) protected void
FlowingFluid.spreadTo
(LevelAccessor level, BlockPos pos, BlockState blockState, Direction direction, FluidState fluidState) protected void
LavaFluid.spreadTo
(LevelAccessor level, BlockPos pos, BlockState blockState, Direction direction, FluidState fluidState) -
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 x, int y, int z, int verticalDeltaLimit, double nodeFloorLevel, Direction direction, PathType pathType) private Node
WalkNodeEvaluator.tryJumpOn
(int x, int y, int z, int verticalDeltaLimit, double nodeFloorLevel, Direction direction, PathType pathType, BlockPos.MutableBlockPos pos) -
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 boolean
PortalForcer.canHostFrame
(BlockPos originalPos, BlockPos.MutableBlockPos offsetPos, Direction p_direction, int offsetScale) private int
PortalShape.getDistanceUntilEdgeAboveFrame
(BlockPos pos, Direction direction) -
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
CollectingNeighborUpdater.MultiNeighborUpdate.skipDirection
static final Direction[]
NeighborUpdater.UPDATE_ORDER
Methods in net.minecraft.world.level.redstone that return DirectionModifier and TypeMethodDescriptionCollectingNeighborUpdater.ShapeUpdate.direction()
Returns the value of thedirection
record component.Methods in net.minecraft.world.level.redstone with parameters of type DirectionModifier and TypeMethodDescriptionstatic void
NeighborUpdater.executeShapeUpdate
(LevelAccessor level, Direction direction, BlockState state, BlockPos pos, BlockPos neighborPos, int flags, int recursionLevel) void
CollectingNeighborUpdater.shapeUpdate
(Direction direction, BlockState state, BlockPos pos, BlockPos neighborPos, int flags, int recursionLevel) void
InstantNeighborUpdater.shapeUpdate
(Direction direction, BlockState state, BlockPos pos, BlockPos neighborPos, int flags, int recursionLevel) void
NeighborUpdater.shapeUpdate
(Direction direction, BlockState state, BlockPos pos, BlockPos neighborPos, int flags, int recursionLevel) void
CollectingNeighborUpdater.updateNeighborsAtExceptFromFacing
(BlockPos pos, Block block, Direction facing) default void
NeighborUpdater.updateNeighborsAtExceptFromFacing
(BlockPos pos, Block block, Direction facing) Constructors in net.minecraft.world.level.redstone with parameters of type DirectionModifierConstructorDescription(package private)
MultiNeighborUpdate
(BlockPos sourcePos, Block sourceBlock, Direction skipDirection) (package private)
ShapeUpdate
(Direction direction, BlockState state, 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[] minDistance, Direction prevDirection, double distanceSide, double distanceOtherA, double distanceOtherB, double minSide, double minOtherA, double maxOtherA, double minOtherB, double maxOtherB, Direction hitSide, double startSide, double startOtherA, double startOtherB) private static Direction
AABB.getDirection
(AABB aabb, Vec3 start, double[] minDistance, Direction facing, double deltaX, double deltaY, double deltaZ) BlockHitResult.getDirection()
Methods in net.minecraft.world.phys with parameters of type DirectionModifier and TypeMethodDescriptionprivate static Direction
AABB.clipPoint
(double[] minDistance, Direction prevDirection, double distanceSide, double distanceOtherA, double distanceOtherB, double minSide, double minOtherA, double maxOtherA, double minOtherB, double maxOtherB, Direction hitSide, double startSide, double startOtherA, double startOtherB) private static Direction
AABB.getDirection
(AABB aabb, Vec3 start, double[] minDistance, Direction facing, double deltaX, double deltaY, double deltaZ) static BlockHitResult
Creates a new BlockRayTraceResult marked as a miss.BlockHitResult.withDirection
(Direction newFace) 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 miss, Vec3 location, Direction direction, BlockPos blockPos, boolean inside) BlockHitResult
(Vec3 location, Direction direction, BlockPos blockPos, boolean inside) -
Uses of Direction in net.minecraft.world.phys.shapes
Methods in net.minecraft.world.phys.shapes with parameters of type DirectionModifier and TypeMethodDescriptionstatic boolean
Shapes.blockOccudes
(VoxelShape shape, VoxelShape adjacentShape, Direction side) private VoxelShape
VoxelShape.calculateFace
(Direction side) void
static VoxelShape
Shapes.getFaceShape
(VoxelShape voxelShape, Direction direction) VoxelShape.getFaceShape
(Direction side) Projects this shape onto the given side.static boolean
Shapes.mergedFaceOccludes
(VoxelShape shape, VoxelShape adjacentShape, Direction side) -
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
Methods in net.neoforged.neoforge.client with parameters of type DirectionModifier and TypeMethodDescriptionstatic void
ClientHooks.fillNormal
(int[] faceData, Direction facing) internal, relies on fixed format of FaceBakery -
Uses of Direction in net.neoforged.neoforge.client.extensions
Methods in net.neoforged.neoforge.client.extensions with parameters of type DirectionModifier and TypeMethodDescriptionIBakedModelExtension.getQuads
(@Nullable BlockState state, @Nullable Direction side, RandomSource rand, ModelData data, @Nullable RenderType renderType) A nullRenderType
is used for the breaking overlay as well as non-standard rendering, so models should return all their quads. -
Uses of Direction in net.neoforged.neoforge.client.model
Methods in net.neoforged.neoforge.client.model that return types with arguments of type DirectionMethods in net.neoforged.neoforge.client.model with parameters of type DirectionModifier and TypeMethodDescriptionIModelBuilder.addCulledFace
(Direction facing, BakedQuad quad) IModelBuilder.Collecting.addCulledFace
(Direction facing, BakedQuad quad) IModelBuilder.Simple.addCulledFace
(Direction facing, BakedQuad quad) BakedModelWrapper.getQuads
(@Nullable BlockState state, @Nullable Direction side, RandomSource rand) BakedModelWrapper.getQuads
(@Nullable BlockState state, @Nullable Direction side, RandomSource rand, ModelData extraData, @Nullable RenderType renderType) CompositeModel.Baked.getQuads
(@Nullable BlockState state, @Nullable Direction side, RandomSource rand, ModelData data, @Nullable RenderType renderType) IDynamicBakedModel.getQuads
(@Nullable BlockState state, @Nullable Direction side, RandomSource rand) IDynamicBakedModel.getQuads
(@Nullable BlockState state, @Nullable Direction side, RandomSource rand, ModelData extraData, @Nullable RenderType renderType) SeparateTransformsModel.Baked.getQuads
(@Nullable BlockState state, @Nullable Direction side, RandomSource rand, ModelData data, @Nullable RenderType renderType) -
Uses of Direction in net.neoforged.neoforge.client.model.generators
Fields in net.neoforged.neoforge.client.model.generators declared as DirectionModifier and TypeFieldDescriptionprivate Direction
ModelBuilder.ElementBuilder.FaceBuilder.cullface
Fields in net.neoforged.neoforge.client.model.generators with type parameters of type DirectionModifier and TypeFieldDescriptionprivate final Map
<Direction, ModelBuilder<T>.ElementBuilder.FaceBuilder> ModelBuilder.ElementBuilder.faces
BlockStateProvider.WALL_PROPS
Methods in net.neoforged.neoforge.client.model.generators that return types with arguments of type DirectionModifier and TypeMethodDescriptionprivate BiConsumer
<Direction, ModelBuilder<T>.ElementBuilder.FaceBuilder> ModelBuilder.ElementBuilder.addTexture
(String texture) Methods in net.neoforged.neoforge.client.model.generators with parameters of type DirectionModifier and TypeMethodDescriptionReturn or create the face builder for the given direction.Method parameters in net.neoforged.neoforge.client.model.generators with type arguments of type DirectionModifier and TypeMethodDescriptionModelBuilder.ElementBuilder.allFaces
(BiConsumer<Direction, ModelBuilder<T>.ElementBuilder.FaceBuilder> action) Modify all possible faces dynamically using a function, creating new faces as necessary.ModelBuilder.ElementBuilder.allFacesExcept
(BiConsumer<Direction, ModelBuilder<T>.ElementBuilder.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.ModelBuilder.ElementBuilder.allFacesExcept
(BiConsumer<Direction, ModelBuilder<T>.ElementBuilder.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.ModelBuilder.ElementBuilder.faces
(BiConsumer<Direction, ModelBuilder<T>.ElementBuilder.FaceBuilder> action) Modify all existing faces dynamically using a function.private void
BlockStateProvider.wallSidePart
(MultiPartBlockStateBuilder builder, ModelFile model, Map.Entry<Direction, Property<WallSide>> entry, WallSide height) Constructors in net.neoforged.neoforge.client.model.generators with parameters of type Direction -
Uses of Direction in net.neoforged.neoforge.client.model.geometry
Methods in net.neoforged.neoforge.client.model.geometry with parameters of type DirectionModifier and TypeMethodDescriptionstatic BakedQuad
UnbakedGeometryHelper.bakeElementFace
(BlockElement element, BlockElementFace face, TextureAtlasSprite sprite, Direction direction, ModelState state) Turns a singleBlockElementFace
into aBakedQuad
. -
Uses of Direction in net.neoforged.neoforge.client.model.lighting
Fields in net.neoforged.neoforge.client.model.lighting declared as Direction -
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 TypeMethodDescriptionObjModel.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.client.model.renderable
Fields in net.neoforged.neoforge.client.model.renderable declared as DirectionModifier and TypeFieldDescriptionprivate static final Direction[]
BakedModelRenderable.Context.ALL_FACES_AND_NULL
private final Direction[]
BakedModelRenderable.Context.faces
The field for thefaces
record component.Methods in net.neoforged.neoforge.client.model.renderable that return DirectionModifier and TypeMethodDescriptionBakedModelRenderable.Context.faces()
Returns the value of thefaces
record component.Constructors in net.neoforged.neoforge.client.model.renderable with parameters of type DirectionModifierConstructorDescriptionContext
(@Nullable BlockState state, Direction[] faces, RandomSource randomSource, long seed, ModelData data, org.joml.Vector4f tint) Creates an instance of aContext
record class. -
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.default int
IBlockStateExtension.getFlammability
(BlockGetter level, BlockPos pos, Direction face) Chance that fire will spread and consume this block.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 void
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 void
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 TypeMethodDescriptionprivate static Optional
<org.apache.commons.lang3.tuple.Pair<IItemHandler, Object>> VanillaInventoryCodeHooks.getAttachedItemHandler
(Level level, BlockPos pos, Direction direction) private static Optional
<org.apache.commons.lang3.tuple.Pair<IItemHandler, Object>> VanillaInventoryCodeHooks.getItemHandlerAt
(Level worldIn, double x, double y, double z, 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