Uses of Enum Class
net.minecraft.util.math.Direction
Package
Description
Contains utility method classes, various enums, serialization helpers, and
miscellaneous classes.
-
Uses of Direction in net.minecraft.block
Modifier and TypeFieldDescriptionprivate static final Direction[]
AbstractBlock.AbstractBlockState.ShapeCache.DIRECTIONS
protected static final Direction[]
AbstractBlock.DIRECTIONS
private static final Direction[]
BuddingAmethystBlock.DIRECTIONS
protected static final Direction[]
MultifaceGrowthBlock.DIRECTIONS
private static final Direction[]
SpongeBlock.DIRECTIONS
private final Direction
LichenGrower.GrowPos.face
The field for theface
record component.private final Direction
Block.NeighborGroup.facing
private static final Direction[]
ConnectingBlock.FACINGS
protected final Direction
AbstractPlantPartBlock.growthDirection
Modifier and TypeFieldDescriptionprivate static final Map
<Direction, VoxelShape> WallTorchBlock.BOUNDING_SHAPES
private static final Map
<Direction, BooleanProperty> FireBlock.DIRECTION_PROPERTIES
private static final Map
<Direction, VoxelShape> RedstoneWireBlock.DIRECTION_TO_SIDE_SHAPE
private static final Map
<Direction, VoxelShape> RedstoneWireBlock.DIRECTION_TO_UP_SHAPE
static final Map
<Direction, EnumProperty<WireConnection>> RedstoneWireBlock.DIRECTION_TO_WIRE_CONNECTION_PROPERTY
static final EnumProperty
<Direction> ShulkerBoxBlock.FACING
private static final BiFunction
<Direction, Integer, VoxelShape> FlowerbedBlock.FACING_AND_AMOUNT_TO_SHAPE
static final Map
<Direction, BooleanProperty> ConnectingBlock.FACING_PROPERTIES
protected static final Map
<Direction, BooleanProperty> HorizontalConnectingBlock.FACING_PROPERTIES
private static final Map
<Direction, BooleanProperty> MultifaceGrowthBlock.FACING_PROPERTIES
private static final Map
<Direction, BooleanProperty> MushroomBlock.FACING_PROPERTIES
private static final Map
<Direction, BooleanProperty> TripwireBlock.FACING_PROPERTIES
static final Map
<Direction, BooleanProperty> VineBlock.FACING_PROPERTIES
private static final Map
<Direction, VoxelShape> AttachedStemBlock.FACING_TO_SHAPE
private static final Map
<Direction, VoxelShape> DeadCoralWallFanBlock.FACING_TO_SHAPE
private static final Map
<Direction, VoxelShape> WallBannerBlock.FACING_TO_SHAPE
private static final Map
<Direction, VoxelShape> WallSignBlock.FACING_TO_SHAPE
private static final Map
<Direction, VoxelShape> WallSkullBlock.FACING_TO_SHAPE
static final ImmutableList
<Direction> FluidBlock.FLOW_DIRECTIONS
private static final Map
<Direction, VoxelShape> WallHangingSignBlock.OUTLINE_SHAPES
private static final Map
<Direction, VoxelShape> WallPiglinHeadBlock.SHAPES
private static final Map
<Direction, VoxelShape> BigDripleafBlock.SHAPES_FOR_DIRECTION
private static final Map
<Direction, VoxelShape> MultifaceGrowthBlock.SHAPES_FOR_DIRECTIONS
private static final Map
<Direction, VoxelShape> ShulkerBoxBlock.SIDES_SHAPES
Modifier and TypeMethodDescriptionprotected static Direction
LanternBlock.attachedDirection
(BlockState state) LichenGrower.GrowPos.face()
Returns the value of theface
record component.BedBlock.getDirection
(BlockView world, BlockPos pos) protected static Direction
WallMountedBlock.getDirection
(BlockState state) PointedDripstoneBlock.getDirectionToPlaceAt
(WorldView world, BlockPos pos, Direction direction) private static Direction
BedBlock.getDirectionTowardsOtherPart
(BedPart part, Direction direction) static Direction
ChestBlock.getFacing
(BlockState state) static Direction
JigsawBlock.getFacing
(BlockState state) ChestBlock.getNeighborChestDirection
(ItemPlacementContext ctx, Direction dir) static Direction
BedBlock.getOppositePartDirection
(BlockState state) private static Direction
BellBlock.getPlacementSide
(BlockState state) static Direction
JigsawBlock.getRotation
(BlockState state) Modifier and TypeMethodDescriptionMultifaceGrowthBlock.collectDirections
(BlockState state) MultifaceGrowthBlock.flagToDirections
(byte flag) Modifier and TypeMethodDescriptionprivate void
RedstoneWireBlock.addPoweredParticles
(World world, Random random, BlockPos pos, Vec3d color, Direction direction, Direction direction2, float float2, float float3) boolean
WallHangingSignBlock.canAttachTo
(WorldView world, BlockState state, BlockPos toPos, Direction direction) boolean
FenceBlock.canConnect
(BlockState state, boolean neighborIsFullSquare, Direction dir) boolean
ComposterBlock.ComposterInventory.canExtract
(int slot, ItemStack stack, Direction dir) Returns whether the given stack can be removed from this inventory at the specified slot position from the given direction.boolean
ComposterBlock.DummyInventory.canExtract
(int slot, ItemStack stack, Direction dir) Returns whether the given stack can be removed from this inventory at the specified slot position from the given direction.boolean
ComposterBlock.FullComposterInventory.canExtract
(int slot, ItemStack stack, Direction dir) Returns whether the given stack can be removed from this inventory at the specified slot position from the given direction.boolean
LichenGrower.canGrow
(BlockState state, BlockView world, BlockPos pos, Direction direction) default boolean
LichenGrower.GrowChecker.canGrow
(BlockState state, Direction direction) protected boolean
LichenGrower.LichenGrowChecker.canGrow
(BlockView world, BlockPos pos, BlockPos growPos, Direction direction, BlockState state) boolean
SculkVeinBlock.SculkVeinGrowChecker.canGrow
(BlockView world, BlockPos pos, BlockPos growPos, Direction direction, BlockState state) static boolean
MultifaceGrowthBlock.canGrowOn
(BlockView world, Direction direction, BlockPos pos, BlockState state) boolean
MultifaceGrowthBlock.canGrowWithDirection
(BlockView world, BlockState state, BlockPos pos, Direction direction) protected boolean
MultifaceGrowthBlock.canHaveDirection
(Direction direction) boolean
Returns whether the given stack can be inserted into this inventory at the specified slot position from the given direction.boolean
Returns whether the given stack can be inserted into this inventory at the specified slot position from the given direction.boolean
Returns whether the given stack can be inserted into this inventory at the specified slot position from the given direction.static boolean
AbstractFireBlock.canPlaceAt
(World world, BlockPos pos, Direction direction) static boolean
WallMountedBlock.canPlaceAt
(WorldView world, BlockPos pos, Direction direction) static boolean
WallTorchBlock.canPlaceAt
(WorldView world, BlockPos pos, Direction facing) private static boolean
PointedDripstoneBlock.canPlaceAtWithDirection
(WorldView world, BlockPos pos, Direction direction) private boolean
LadderBlock.canPlaceOn
(BlockView world, BlockPos pos, Direction side) static boolean
FenceGateBlock.canWallConnect
(BlockState state, Direction side) protected static boolean
RedstoneWireBlock.connectsTo
(BlockState state, @Nullable Direction dir) static BlockEntity
PistonExtensionBlock.createBlockEntityPiston
(BlockPos pos, BlockState state, BlockState pushedBlock, Direction facing, boolean extending, boolean source) static void
private static void
CommandBlock.executeCommandChain
(World world, BlockPos pos, Direction facing) BedBlock.findWakeUpPosition
(EntityType<?> type, CollisionView world, BlockPos pos, Direction bedDirection, float spawnAngle) BedBlock.findWakeUpPosition
(EntityType<?> type, CollisionView world, BlockPos pos, Direction bedDirection, Direction respawnDirection) private static int[][]
BedBlock.getAroundAndOnBedOffsets
(Direction bedDirection, Direction respawnDirection) private static int[][]
BedBlock.getAroundBedOffsets
(Direction bedDirection, Direction respawnDirection) private @Nullable ItemFrameEntity
ComparatorBlock.getAttachedItemFrame
(World world, Direction facing, BlockPos pos) int[]
ComposterBlock.ComposterInventory.getAvailableSlots
(Direction side) Returns the available slot positions that are reachable from a given side.int[]
ComposterBlock.DummyInventory.getAvailableSlots
(Direction side) Returns the available slot positions that are reachable from a given side.int[]
ComposterBlock.FullComposterInventory.getAvailableSlots
(Direction side) Returns the available slot positions that are reachable from a given side.AbstractBlock.AbstractBlockState.getCullingFace
(BlockView world, BlockPos pos, Direction direction) private static int
HorizontalConnectingBlock.getDirectionMask
(Direction dir) PointedDripstoneBlock.getDirectionToPlaceAt
(WorldView world, BlockPos pos, Direction direction) private static Direction
BedBlock.getDirectionTowardsOtherPart
(BedPart part, Direction direction) static BooleanProperty
VineBlock.getFacingProperty
(Direction direction) LichenGrower.getGrowPos
(BlockState state, BlockView world, BlockPos pos, Direction oldDirection, Direction newDirection, LichenGrower.GrowPosPredicate predicate) abstract LichenGrower.GrowPos
LichenGrower.GrowType.getGrowPos
(BlockPos pos, Direction newDirection, Direction oldDirection) private static VoxelShape
PistonHeadBlock.getHeadShape
(Direction direction, boolean shortHead) ChiseledBookshelfBlock.getHitPos
(BlockHitResult hit, Direction facing) ChestBlock.getNeighborChestDirection
(ItemPlacementContext ctx, Direction dir) private static int[][]
BedBlock.getOnBedOffsets
(Direction bedDirection) static BooleanProperty
MultifaceGrowthBlock.getProperty
(Direction direction) private WireConnection
RedstoneWireBlock.getRenderConnectionType
(BlockView world, BlockPos pos, Direction direction) private WireConnection
RedstoneWireBlock.getRenderConnectionType
(BlockView world, BlockPos pos, Direction direction, boolean bool) AbstractBlock.AbstractBlockState.getStateForNeighborUpdate
(Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Gets the possibly updated block state of this block when a neighboring block is updated.protected BlockState
AbstractBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockState
AbstractPlantBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockState
AbstractPlantStemBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockState
AbstractPressurePlateBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockState
AbstractRailBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockState
AbstractSignBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockState
AbstractTorchBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockState
AmethystClusterBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockState
AttachedStemBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockState
BambooBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockState
BambooShootBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockState
BannerBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockState
BarrierBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockState
BedBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockState
BeehiveBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockState
BellBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockState
BigDripleafBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockState
BigDripleafStemBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.BrushableBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockState
BubbleColumnBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockState
CactusBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockState
CakeBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockState
CampfireBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockState
CandleBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockState
CandleCakeBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockState
CarpetBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockState
ChainBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockState
ChestBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockState
ChorusFlowerBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockState
ChorusPlantBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockState
CocoaBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.ComparatorBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockState
ConcretePowderBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockState
ConduitBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockState
CoralBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockState
CoralBlockBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockState
CoralFanBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockState
CoralParentBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockState
CoralWallFanBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockState
DeadCoralWallFanBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockState
DecoratedPotBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockState
DirtPathBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockState
DoorBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockState
EnderChestBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockState
FallingBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockState
FarmlandBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockState
FenceBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockState
FenceGateBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockState
FireBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockState
FlowerPotBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockState
FluidBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockState
FrogspawnBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockState
GlowLichenBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockState
GrateBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockState
HangingRootsBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockState
HangingSignBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockState
HeavyCoreBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockState
LadderBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockState
LanternBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockState
LeavesBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockState
LightBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockState
LightningRodBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockState
MagmaBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockState
MangroveRootsBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockState
MultifaceGrowthBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockState
MushroomBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockState
NetherPortalBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockState
NoteBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockState
ObserverBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockState
PaneBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockState
PistonHeadBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.PitcherCropBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockState
PlantBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockState
PointedDripstoneBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockState
PropaguleBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockState
RedstoneWireBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockState
RepeaterBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockState
ScaffoldingBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockState
SculkSensorBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockState
SculkShriekerBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockState
SculkVeinBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockState
SeagrassBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockState
SeaPickleBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockState
SignBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockState
SlabBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockState
SmallDripleafBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockState
SnowBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockState
SnowyBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockState
SoulFireBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockState
SoulSandBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockState
SporeBlossomBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockState
StairsBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockState
SugarCaneBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockState
TallPlantBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockState
TrapdoorBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockState
TripwireBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockState
TripwireHookBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockState
VineBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockState
WallBannerBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockState
WallBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockState
WallHangingSignBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockState
WallMountedBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockState
WallRedstoneTorchBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockState
WallSignBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected BlockState
WallTorchBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.LichenGrower.GrowChecker.getStateWithDirection
(BlockState state, BlockView world, BlockPos pos, Direction direction) LichenGrower.LichenGrowChecker.getStateWithDirection
(BlockState state, BlockView world, BlockPos pos, Direction direction) private BlockState
WallBlock.getStateWithNeighbor
(WorldView world, BlockPos pos, BlockState state, BlockPos neighborPos, BlockState neighborState, Direction direction) int
AbstractBlock.AbstractBlockState.getStrongRedstonePower
(BlockView world, BlockPos pos, Direction direction) protected int
AbstractBlock.getStrongRedstonePower
(BlockState state, BlockView world, BlockPos pos, Direction direction) Returns the strong redstone power emitted from the block.protected int
AbstractPressurePlateBlock.getStrongRedstonePower
(BlockState state, BlockView world, BlockPos pos, Direction direction) Returns the strong redstone power emitted from the block.protected int
AbstractRedstoneGateBlock.getStrongRedstonePower
(BlockState state, BlockView world, BlockPos pos, Direction direction) Returns the strong redstone power emitted from the block.protected int
ButtonBlock.getStrongRedstonePower
(BlockState state, BlockView world, BlockPos pos, Direction direction) Returns the strong redstone power emitted from the block.protected int
DetectorRailBlock.getStrongRedstonePower
(BlockState state, BlockView world, BlockPos pos, Direction direction) Returns the strong redstone power emitted from the block.protected int
LecternBlock.getStrongRedstonePower
(BlockState state, BlockView world, BlockPos pos, Direction direction) Returns the strong redstone power emitted from the block.protected int
LeverBlock.getStrongRedstonePower
(BlockState state, BlockView world, BlockPos pos, Direction direction) Returns the strong redstone power emitted from the block.protected int
LightningRodBlock.getStrongRedstonePower
(BlockState state, BlockView world, BlockPos pos, Direction direction) Returns the strong redstone power emitted from the block.protected int
ObserverBlock.getStrongRedstonePower
(BlockState state, BlockView world, BlockPos pos, Direction direction) Returns the strong redstone power emitted from the block.protected int
RedstoneTorchBlock.getStrongRedstonePower
(BlockState state, BlockView world, BlockPos pos, Direction direction) Returns the strong redstone power emitted from the block.protected int
RedstoneWireBlock.getStrongRedstonePower
(BlockState state, BlockView world, BlockPos pos, Direction direction) Returns the strong redstone power emitted from the block.int
SculkSensorBlock.getStrongRedstonePower
(BlockState state, BlockView world, BlockPos pos, Direction direction) Returns the strong redstone power emitted from the block.protected int
TrappedChestBlock.getStrongRedstonePower
(BlockState state, BlockView world, BlockPos pos, Direction direction) Returns the strong redstone power emitted from the block.protected int
TripwireHookBlock.getStrongRedstonePower
(BlockState state, BlockView world, BlockPos pos, Direction direction) Returns the strong redstone power emitted from the block.private static Thickness
PointedDripstoneBlock.getThickness
(WorldView world, BlockPos pos, Direction direction, boolean tryMerge) int
AbstractBlock.AbstractBlockState.getWeakRedstonePower
(BlockView world, BlockPos pos, Direction direction) protected int
AbstractBlock.getWeakRedstonePower
(BlockState state, BlockView world, BlockPos pos, Direction direction) Returns the weak redstone power emitted from the block.protected int
AbstractPressurePlateBlock.getWeakRedstonePower
(BlockState state, BlockView world, BlockPos pos, Direction direction) Returns the weak redstone power emitted from the block.protected int
AbstractRedstoneGateBlock.getWeakRedstonePower
(BlockState state, BlockView world, BlockPos pos, Direction direction) Returns the weak redstone power emitted from the block.protected int
ButtonBlock.getWeakRedstonePower
(BlockState state, BlockView world, BlockPos pos, Direction direction) Returns the weak redstone power emitted from the block.int
CalibratedSculkSensorBlock.getWeakRedstonePower
(BlockState state, BlockView world, BlockPos pos, Direction direction) Returns the weak redstone power emitted from the block.protected int
DaylightDetectorBlock.getWeakRedstonePower
(BlockState state, BlockView world, BlockPos pos, Direction direction) Returns the weak redstone power emitted from the block.protected int
DetectorRailBlock.getWeakRedstonePower
(BlockState state, BlockView world, BlockPos pos, Direction direction) Returns the weak redstone power emitted from the block.int
JukeboxBlock.getWeakRedstonePower
(BlockState state, BlockView world, BlockPos pos, Direction direction) Returns the weak redstone power emitted from the block.protected int
LecternBlock.getWeakRedstonePower
(BlockState state, BlockView world, BlockPos pos, Direction direction) Returns the weak redstone power emitted from the block.protected int
LeverBlock.getWeakRedstonePower
(BlockState state, BlockView world, BlockPos pos, Direction direction) Returns the weak redstone power emitted from the block.protected int
LightningRodBlock.getWeakRedstonePower
(BlockState state, BlockView world, BlockPos pos, Direction direction) Returns the weak redstone power emitted from the block.protected int
ObserverBlock.getWeakRedstonePower
(BlockState state, BlockView world, BlockPos pos, Direction direction) Returns the weak redstone power emitted from the block.protected int
RedstoneBlock.getWeakRedstonePower
(BlockState state, BlockView world, BlockPos pos, Direction direction) Returns the weak redstone power emitted from the block.protected int
RedstoneTorchBlock.getWeakRedstonePower
(BlockState state, BlockView world, BlockPos pos, Direction direction) Returns the weak redstone power emitted from the block.protected int
RedstoneWireBlock.getWeakRedstonePower
(BlockState state, BlockView world, BlockPos pos, Direction direction) Returns the weak redstone power emitted from the block.protected int
SculkSensorBlock.getWeakRedstonePower
(BlockState state, BlockView world, BlockPos pos, Direction direction) Returns the weak redstone power emitted from the block.protected int
TargetBlock.getWeakRedstonePower
(BlockState state, BlockView world, BlockPos pos, Direction direction) Returns the weak redstone power emitted from the block.protected int
TrappedChestBlock.getWeakRedstonePower
(BlockState state, BlockView world, BlockPos pos, Direction direction) Returns the weak redstone power emitted from the block.protected int
TripwireHookBlock.getWeakRedstonePower
(BlockState state, BlockView world, BlockPos pos, Direction direction) Returns the weak redstone power emitted from the block.protected int
WallRedstoneTorchBlock.getWeakRedstonePower
(BlockState state, BlockView world, BlockPos pos, Direction direction) Returns the weak redstone power emitted from the block.static void
BigDripleafBlock.grow
(WorldAccess world, Random random, BlockPos pos, Direction direction) private long
LichenGrower.grow
(BlockState state, WorldAccess world, BlockPos pos, Direction direction, boolean markForPostProcessing) LichenGrower.grow
(BlockState state, WorldAccess world, BlockPos pos, Direction oldDirection, Direction newDirection, boolean markForPostProcessing) LichenGrower.grow
(BlockState state, WorldAccess world, BlockPos pos, Direction direction, Random random, boolean markForPostProcessing) default boolean
LichenGrower.GrowChecker.hasDirection
(BlockState state, Direction direction) static boolean
MultifaceGrowthBlock.hasDirection
(BlockState state, Direction direction) private static int
AbstractBlock.AbstractBlockState.ShapeCache.indexSolidSide
(Direction direction, SideShapeType shapeType) private static boolean
StairsBlock.isDifferentOrientation
(BlockState state, BlockView world, BlockPos pos, Direction dir) static boolean
Block.isFaceFullSquare
(VoxelShape shape, Direction side) static boolean
PistonBlock.isMovable
(BlockState state, World world, BlockPos pos, Direction direction, boolean canBreak, Direction pistonDir) private static boolean
PointedDripstoneBlock.isPointedDripstoneFacingDirection
(BlockState state, Direction direction) private boolean
BellBlock.isPointOnBell
(BlockState state, Direction side, double y) boolean
AbstractBlock.AbstractBlockState.isSideInvisible
(BlockState state, Direction direction) protected boolean
AbstractBlock.isSideInvisible
(BlockState state, BlockState stateFrom, Direction direction) protected boolean
FluidBlock.isSideInvisible
(BlockState state, BlockState stateFrom, Direction direction) protected boolean
MangroveRootsBlock.isSideInvisible
(BlockState state, BlockState stateFrom, Direction direction) protected boolean
PaneBlock.isSideInvisible
(BlockState state, BlockState stateFrom, Direction direction) protected boolean
PowderSnowBlock.isSideInvisible
(BlockState state, BlockState stateFrom, Direction direction) protected boolean
TranslucentBlock.isSideInvisible
(BlockState state, BlockState stateFrom, Direction direction) boolean
AbstractBlock.AbstractBlockState.isSideSolid
(BlockView world, BlockPos pos, Direction direction, SideShapeType shapeType) boolean
AbstractBlock.AbstractBlockState.ShapeCache.isSideSolid
(Direction direction, SideShapeType shapeType) boolean
AbstractBlock.AbstractBlockState.isSideSolidFullSquare
(BlockView world, BlockPos pos, Direction direction) final boolean
AbstractBlock.AbstractBlockState.isSolidSurface
(BlockView world, BlockPos pos, Entity entity, Direction direction) private static boolean
ChorusFlowerBlock.isSurroundedByAir
(WorldView world, BlockPos pos, @Nullable Direction exceptDirection) private static boolean
PointedDripstoneBlock.isTip
(BlockState state, Direction direction) abstract boolean
SideShapeType.matches
(BlockState state, BlockView world, BlockPos pos, Direction direction) private boolean
private static void
PointedDripstoneBlock.place
(WorldAccess world, BlockPos pos, Direction direction, Thickness thickness) protected static boolean
BigDripleafBlock.placeDripleafAt
(WorldAccess world, BlockPos pos, FluidState fluidState, Direction direction) protected static boolean
BigDripleafStemBlock.placeStemAt
(WorldAccess world, BlockPos pos, FluidState fluidState, Direction direction) boolean
boolean
boolean
TripwireBlock.shouldConnectTo
(BlockState state, Direction facing) static boolean
VineBlock.shouldConnectTo
(BlockView world, BlockPos pos, Direction direction) private boolean
WallBlock.shouldConnectTo
(BlockState state, boolean faceFullSquare, Direction side) static boolean
Block.shouldDrawSide
(BlockState state, BlockView world, BlockPos pos, Direction side, BlockPos otherPos) private boolean
PistonBlock.shouldExtend
(RedstoneView world, BlockPos pos, Direction pistonFace) private boolean
VineBlock.shouldHaveSide
(BlockView world, BlockPos pos, Direction side) private static boolean
AbstractFireBlock.shouldLightPortalAt
(World world, BlockPos pos, Direction direction) static boolean
Block.sideCoversSmallSquare
(WorldView world, BlockPos pos, Direction side) private static void
PointedDripstoneBlock.tryGrow
(ServerWorld world, BlockPos pos, Direction direction) private static void
TripwireHookBlock.updateNeighborsOnAxis
(Block block, World world, BlockPos pos, Direction direction) MultifaceGrowthBlock.withDirection
(BlockState state, BlockView world, BlockPos pos, Direction direction) Modifier and TypeMethodDescriptionstatic byte
MultifaceGrowthBlock.directionsToFlag
(Collection<Direction> directions) private BlockState
MultifaceGrowthBlock.mirror
(BlockState state, Function<Direction, Direction> mirror) private BlockState
MultifaceGrowthBlock.mirror
(BlockState state, Function<Direction, Direction> mirror) static boolean
SculkVeinBlock.place
(WorldAccess world, BlockPos pos, BlockState state, Collection<Direction> directions) default boolean
SculkSpreadable.spread
(WorldAccess world, BlockPos pos, BlockState state, @Nullable Collection<Direction> directions, boolean markForPostProcessing) ModifierConstructorDescriptionprotected
AbstractPlantBlock
(AbstractBlock.Settings settings, Direction growthDirection, VoxelShape outlineShape, boolean tickWater) protected
AbstractPlantPartBlock
(AbstractBlock.Settings settings, Direction growthDirection, VoxelShape outlineShape, boolean tickWater) protected
AbstractPlantStemBlock
(AbstractBlock.Settings settings, Direction growthDirection, VoxelShape outlineShape, boolean tickWater, double growthChance) NeighborGroup
(BlockState self, BlockState other, Direction facing) -
Uses of Direction in net.minecraft.block.dispenser
Modifier and TypeMethodDescriptionstatic void
ItemDispenserBehavior.spawnItem
(World world, ItemStack stack, int speed, Direction side, Position pos) protected void
ItemDispenserBehavior.spawnParticles
(BlockPointer pointer, Direction side) private static void
ItemDispenserBehavior.syncActivatesEvent
(BlockPointer pointer, Direction side) -
Uses of Direction in net.minecraft.block.entity
Modifier and TypeFieldDescriptionprivate Direction
HopperBlockEntity.facing
private Direction
PistonBlockEntity.facing
BrushableBlockEntity.hitDirection
BellBlockEntity.lastSideHit
Modifier and TypeFieldDescriptionSculkSpreadManager.Cursor.DIRECTION_SET_CODEC
private static final ThreadLocal
<Direction> PistonBlockEntity.entityMovementDirection
SculkSpreadManager.Cursor.faces
Modifier and TypeMethodDescriptionPistonBlockEntity.getFacing()
BrushableBlockEntity.getHitDirection()
DecoratedPotBlockEntity.getHorizontalFacing()
PistonBlockEntity.getMovementDirection()
Modifier and TypeMethodDescriptionvoid
Rings the bell in a given direction.boolean
BrushableBlockEntity.brush
(long worldTime, PlayerEntity player, Direction hitDirection) boolean
AbstractFurnaceBlockEntity.canExtract
(int slot, ItemStack stack, Direction dir) Returns whether the given stack can be removed from this inventory at the specified slot position from the given direction.boolean
BrewingStandBlockEntity.canExtract
(int slot, ItemStack stack, Direction dir) Returns whether the given stack can be removed from this inventory at the specified slot position from the given direction.private static boolean
HopperBlockEntity.canExtract
(Inventory hopperInventory, Inventory fromInventory, ItemStack stack, int slot, Direction facing) boolean
ShulkerBoxBlockEntity.canExtract
(int slot, ItemStack stack, Direction dir) Returns whether the given stack can be removed from this inventory at the specified slot position from the given direction.boolean
Returns whether the given stack can be inserted into this inventory at the specified slot position from the given direction.boolean
Returns whether the given stack can be inserted into this inventory at the specified slot position from the given direction.private static boolean
HopperBlockEntity.canInsert
(Inventory inventory, ItemStack stack, int slot, @Nullable Direction side) boolean
Returns whether the given stack can be inserted into this inventory at the specified slot position from the given direction.private static boolean
SculkSpreadManager.Cursor.canSpread
(WorldAccess world, BlockPos pos, Direction direction) private static boolean
int[]
AbstractFurnaceBlockEntity.getAvailableSlots
(Direction side) Returns the available slot positions that are reachable from a given side.int[]
BrewingStandBlockEntity.getAvailableSlots
(Direction side) Returns the available slot positions that are reachable from a given side.private static int[]
HopperBlockEntity.getAvailableSlots
(Inventory inventory, Direction side) int[]
ShulkerBoxBlockEntity.getAvailableSlots
(Direction side) Returns the available slot positions that are reachable from a given side.private static Vec3d
VaultBlockEntity.Client.getConnectedParticlesOrigin
(BlockPos pos, Direction direction) private static double
PistonBlockEntity.getIntersectionSize
(Box box, Direction direction, Box box2) private static boolean
HopperBlockEntity.isInventoryFull
(Inventory inventory, Direction direction) private static void
PistonBlockEntity.moveEntity
(Direction direction, Entity entity, double distance, Direction movementDirection) private static void
boolean
EndGatewayBlockEntity.shouldDrawSide
(Direction direction) boolean
EndPortalBlockEntity.shouldDrawSide
(Direction direction) private static ItemStack
HopperBlockEntity.transfer
(@Nullable Inventory from, Inventory to, ItemStack stack, int slot, @Nullable Direction side) static ItemStack
HopperBlockEntity.transfer
(@Nullable Inventory from, Inventory to, ItemStack stack, @Nullable Direction side) ModifierConstructorDescriptionPistonBlockEntity
(BlockPos pos, BlockState state, BlockState pushedBlock, Direction facing, boolean extending, boolean source) -
Uses of Direction in net.minecraft.block.enums
Modifier and TypeFieldDescriptionprivate final Direction
Orientation.facing
private final Direction
DoubleBlockHalf.oppositeDirection
private final Direction
Orientation.rotation
Modifier and TypeMethodDescriptionOrientation.getFacing()
DoubleBlockHalf.getOppositeDirection()
Orientation.getRotation()
Modifier and TypeMethodDescriptionstatic Orientation
Orientation.byDirections
(Direction facing, Direction rotation) private static int
ModifierConstructorDescriptionprivate
DoubleBlockHalf
(Direction oppositeDirection) private
Orientation
(String name, Direction facing, Direction rotation) -
Uses of Direction in net.minecraft.block.pattern
Modifier and TypeFieldDescriptionprivate final Direction
BlockPattern.Result.forwards
private final Direction
BlockPattern.Result.up
Modifier and TypeMethodDescriptionprivate @Nullable BlockPattern.Result
BlockPattern.testTransform
(BlockPos frontTopLeft, Direction forwards, Direction up, LoadingCache<BlockPos, CachedBlockPosition> cache) BlockPattern.testTransform
(WorldView world, BlockPos frontTopLeft, Direction forwards, Direction up) protected static BlockPos
BlockPattern.translate
(BlockPos pos, Direction forwards, Direction up, int offsetLeft, int offsetDown, int offsetForwards) ModifierConstructorDescriptionResult
(BlockPos frontTopLeft, Direction forwards, Direction up, LoadingCache<BlockPos, CachedBlockPosition> cache, int width, int height, int depth) -
Uses of Direction in net.minecraft.block.piston
Modifier and TypeFieldDescriptionprivate final Direction
PistonHandler.motionDirection
private final Direction
PistonHandler.pistonDirection
Modifier and TypeMethodDescriptionprivate boolean
ModifierConstructorDescriptionPistonHandler
(World world, BlockPos pos, Direction dir, boolean retracted) -
Uses of Direction in net.minecraft.client.model
Modifier and TypeMethodDescriptionModelPartBuilder.cuboid
(float offsetX, float offsetY, float offsetZ, float sizeX, float sizeY, float sizeZ, Set<Direction> directions) ModifierConstructorDescriptionQuad
(ModelPart.Vertex[] vertices, float u1, float v1, float u2, float v2, float squishU, float squishV, boolean flip, Direction direction) ModifierConstructorDescriptionCuboid
(int u, int v, float x, float y, float z, float sizeX, float sizeY, float sizeZ, float extraX, float extraY, float extraZ, boolean mirror, float textureWidth, float textureHeight, Set<Direction> set) protected
ModelCuboidData
(@Nullable String name, float textureX, float textureY, float offsetX, float offsetY, float offsetZ, float sizeX, float sizeY, float sizeZ, Dilation extra, boolean mirror, float textureScaleX, float textureScaleY, Set<Direction> directions) -
Uses of Direction in net.minecraft.client.network
Modifier and TypeMethodDescriptionboolean
ClientPlayerInteractionManager.attackBlock
(BlockPos pos, Direction direction) boolean
ClientPlayerInteractionManager.updateBlockBreakingProgress
(BlockPos pos, Direction direction) -
Uses of Direction in net.minecraft.client.particle
Modifier and TypeMethodDescriptionvoid
ParticleManager.addBlockBreakingParticles
(BlockPos pos, Direction direction) -
Uses of Direction in net.minecraft.client.render
Modifier and TypeFieldDescriptionstatic final Direction[]
WorldRenderer.DIRECTIONS
private static final Direction[]
ChunkRenderingDataPreparer.field_45618
Modifier and TypeMethodDescription(package private) void
ChunkRenderingDataPreparer.ChunkInfo.addDirection
(Direction direction) (package private) boolean
private ChunkBuilder.BuiltChunk
ChunkRenderingDataPreparer.method_52831
(BlockPos blockPos, ChunkBuilder.BuiltChunk builtChunk, Direction direction) static void
WorldRenderer.renderFilledBoxFace
(MatrixStack matrices, VertexConsumer vertexConsumer, Direction face, float minX, float minY, float minZ, float maxX, float maxY, float maxZ, float red, float green, float blue, float alpha) (package private) void
ChunkRenderingDataPreparer.ChunkInfo.updateCullingState
(byte parentCullingState, Direction from) ModifierConstructorDescription(package private)
ChunkInfo
(ChunkBuilder.BuiltChunk chunk, @Nullable Direction direction, int propagationLevel) -
Uses of Direction in net.minecraft.client.render.block
Modifier and TypeFieldDescription(package private) static final Direction[]
BlockModelRenderer.DIRECTIONS
(package private) final Direction[]
BlockModelRenderer.NeighborData.faces
Modifier and TypeMethodDescriptionvoid
BlockModelRenderer.AmbientOcclusionCalculator.apply
(BlockRenderView world, BlockState state, BlockPos pos, Direction direction, float[] box, BitSet flags, boolean shaded) private void
BlockModelRenderer.getQuadDimensions
(BlockRenderView world, BlockState state, BlockPos pos, int[] vertexData, Direction face, @org.jetbrains.annotations.Nullable float[] box, BitSet flags) BlockModelRenderer.Translation.getTranslations
(Direction direction) private static boolean
FluidRenderer.isOppositeSideCovered
(BlockView world, BlockPos pos, BlockState state, Direction direction) private static boolean
FluidRenderer.isSideCovered
(BlockView world, BlockPos pos, Direction direction, float maxDeviation, BlockState state) private static boolean
FluidRenderer.isSideCovered
(BlockView world, Direction direction, float height, BlockPos pos, BlockState state) static boolean
FluidRenderer.shouldRenderSide
(BlockRenderView world, BlockPos pos, FluidState fluidState, BlockState blockState, Direction direction, FluidState neighborFluidState) ModifierConstructorDescriptionprivate
NeighborData
(Direction[] faces, float float2, boolean nonCubicWeight, BlockModelRenderer.NeighborOrientation[] neighborOrientation, BlockModelRenderer.NeighborOrientation[] neighborOrientation2, BlockModelRenderer.NeighborOrientation[] neighborOrientation3, BlockModelRenderer.NeighborOrientation[] neighborOrientation4) private
NeighborOrientation
(Direction direction, boolean flip) -
Uses of Direction in net.minecraft.client.render.block.entity
Modifier and TypeMethodDescriptionprivate float[]
BrushableBlockEntityRenderer.getTranslation
(Direction direction, int dustedLevel) private void
BedBlockEntityRenderer.renderPart
(MatrixStack matrices, VertexConsumerProvider vertexConsumers, ModelPart part, Direction direction, SpriteIdentifier sprite, int light, int overlay, boolean isFoot) private void
EndPortalBlockEntityRenderer.renderSide
(T entity, Matrix4f model, VertexConsumer vertices, float x1, float x2, float y1, float y2, float z1, float z2, float z3, float z4, Direction side) static void
SkullBlockEntityRenderer.renderSkull
(@Nullable Direction direction, float yaw, float animationProgress, MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light, SkullBlockEntityModel model, RenderLayer renderLayer) -
Uses of Direction in net.minecraft.client.render.chunk
Modifier and TypeFieldDescriptionprivate static final Direction[]
ChunkOcclusionDataBuilder.DIRECTIONS
Modifier and TypeMethodDescriptionfloat
ChunkRendererRegion.getBrightness
(Direction direction, boolean shaded) ChunkBuilder.BuiltChunk.getNeighborPosition
(Direction direction) boolean
ChunkBuilder.ChunkData.isVisibleThrough
(Direction from, Direction to) boolean
ChunkOcclusionData.isVisibleThrough
(Direction from, Direction to) private int
void
ChunkOcclusionData.setVisibleThrough
(Direction from, Direction to, boolean visible) Modifier and TypeMethodDescriptionprivate void
ChunkOcclusionDataBuilder.addEdgeFaces
(int pos, Set<Direction> openFaces) void
ChunkOcclusionData.addOpenEdgeFaces
(Set<Direction> faces) -
Uses of Direction in net.minecraft.client.render.debug
Modifier and TypeMethodDescriptionprivate static void
LightDebugRenderer.drawFace
(MatrixStack matrices, VertexConsumer vertexConsumer, Direction direction, double cameraX, double cameraY, double cameraZ, int x, int y, int z, Vector4f color) -
Uses of Direction in net.minecraft.client.render.entity
-
Uses of Direction in net.minecraft.client.render.model
Modifier and TypeMethodDescriptionstatic Direction
BakedQuadFactory.decodeDirection
(int[] rotationMatrix) BakedQuad.getFace()
Modifier and TypeMethodDescriptionBakedQuadFactory.bake
(Vector3f from, Vector3f to, ModelElementFace face, Sprite texture, Direction side, ModelBakeSettings settings, @Nullable ModelRotation rotation, boolean shade) private void
BakedQuadFactory.encodeDirection
(int[] rotationMatrix, Direction direction) static CubeFace
private void
BakedQuadFactory.packVertexData
(int[] vertices, int cornerIndex, Direction direction, ModelElementTexture texture, float[] positionMatrix, Sprite sprite, AffineTransformation orientation, @Nullable ModelRotation rotation, boolean shaded) private int[]
BakedQuadFactory.packVertexData
(ModelElementTexture texture, Sprite sprite, Direction direction, float[] positionMatrix, AffineTransformation orientation, @Nullable ModelRotation rotation, boolean shaded) static ModelElementTexture
BakedQuadFactory.uvLock
(ModelElementTexture texture, Direction orientation, AffineTransformation rotation) ModifierConstructorDescriptionModifierConstructorDescriptionBasicBakedModel
(List<BakedQuad> quads, Map<Direction, List<BakedQuad>> faceQuads, boolean usesAo, boolean isSideLit, boolean hasDepth, Sprite sprite, ModelTransformation transformation, ModelOverrideList itemPropertyOverrides) -
Uses of Direction in net.minecraft.client.render.model.json
Modifier and TypeFieldDescriptionModelElementFace.cullFace
The field for thecullFace
record component.private final Direction
ItemModelGenerator.Side.direction
Modifier and TypeMethodDescriptionModelElementFace.cullFace()
Returns the value of thecullFace
record component.ModelElementFace.Deserializer.deserializeCullFace
(JsonObject object) ItemModelGenerator.Side.getDirection()
private Direction
ModelElement.Deserializer.getDirection
(String name) Modifier and TypeMethodDescriptionprivate Map
<Direction, ModelElementFace> ModelElement.Deserializer.deserializeFaces
(JsonDeserializationContext context, JsonObject object) private Map
<Direction, ModelElementFace> ModelElement.Deserializer.deserializeFacesValidating
(JsonDeserializationContext context, JsonObject object) Modifier and TypeMethodDescriptionprivate static BakedQuad
JsonUnbakedModel.createQuad
(ModelElement element, ModelElementFace elementFace, Sprite sprite, Direction side, ModelBakeSettings settings) private float[]
ModelElement.getRotatedMatrix
(Direction direction) ModifierConstructorDescriptionModelElementFace
(@Nullable Direction cullFace, int tintIndex, String textureId, ModelElementTexture textureData) Creates an instance of aModelElementFace
record class.private
ModifierConstructorDescriptionModelElement
(Vector3f from, Vector3f to, Map<Direction, ModelElementFace> faces, @Nullable ModelRotation rotation, boolean shade) -
Uses of Direction in net.minecraft.client.world
Modifier and TypeMethodDescriptionfloat
ClientWorld.getBrightness
(Direction direction, boolean shaded) -
Uses of Direction in net.minecraft.data.client
Modifier and TypeMethodDescriptionprivate static BlockStateVariantMap.QuadrupleProperty
<Direction, DoubleBlockHalf, DoorHinge, Boolean> BlockStateModelGenerator.fillDoorVariantMap
(BlockStateVariantMap.QuadrupleProperty<Direction, DoubleBlockHalf, DoorHinge, Boolean> variantMap, DoubleBlockHalf targetHalf, Identifier leftHingeClosedModelId, Identifier leftHingeOpenModelId, Identifier rightHingeClosedModelId, Identifier rightHingeOpenModelId) Modifier and TypeMethodDescriptionprivate BlockStateVariant
BlockStateModelGenerator.getDripstoneVariant
(Direction direction, Thickness thickness) Modifier and TypeMethodDescriptionprivate static BlockStateVariantMap.QuadrupleProperty
<Direction, DoubleBlockHalf, DoorHinge, Boolean> BlockStateModelGenerator.fillDoorVariantMap
(BlockStateVariantMap.QuadrupleProperty<Direction, DoubleBlockHalf, DoorHinge, Boolean> variantMap, DoubleBlockHalf targetHalf, Identifier leftHingeClosedModelId, Identifier leftHingeOpenModelId, Identifier rightHingeClosedModelId, Identifier rightHingeOpenModelId) -
Uses of Direction in net.minecraft.entity
Modifier and TypeMethodDescriptionEntity.getFacing()
Entity.getHorizontalFacing()
Entity.getMovementDirection()
LivingEntity.getSleepingDirection()
Modifier and TypeMethodDescriptionstatic int[][]
Dismounting.getDismountOffsets
(Direction movementDirection) -
Uses of Direction in net.minecraft.entity.ai.pathing
Modifier and TypeMethodDescriptionLandPathNodeMaker.getJumpOnTopNode
(int x, int y, int z, int maxYStep, double prevFeetY, Direction direction, PathNodeType nodeType, BlockPos.Mutable mutablePos) LandPathNodeMaker.getPathNode
(int x, int y, int z, int maxYStep, double prevFeetY, Direction direction, PathNodeType nodeType) -
Uses of Direction in net.minecraft.entity.data
Modifier and TypeFieldDescriptionstatic final TrackedDataHandler
<Direction> TrackedDataHandlerRegistry.FACING
-
Uses of Direction in net.minecraft.entity.decoration
Modifier and TypeMethodDescriptionprotected abstract Box
AbstractDecorationEntity.calculateBoundingBox
(BlockPos pos, Direction side) protected Box
ItemFrameEntity.calculateBoundingBox
(BlockPos pos, Direction side) protected void
protected void
ModifierConstructorDescriptionGlowItemFrameEntity
(World world, BlockPos pos, Direction facing) ItemFrameEntity
(EntityType<? extends ItemFrameEntity> type, World world, BlockPos pos, Direction facing) ItemFrameEntity
(World world, BlockPos pos, Direction facing) -
Uses of Direction in net.minecraft.entity.decoration.painting
Modifier and TypeMethodDescriptionprotected Box
PaintingEntity.calculateBoundingBox
(BlockPos pos, Direction side) static Optional
<PaintingEntity> PaintingEntity.placePainting
(World world, BlockPos pos, Direction facing) ModifierConstructorDescriptionPaintingEntity
(World world, BlockPos pos, Direction direction, RegistryEntry<PaintingVariant> variant) -
Uses of Direction in net.minecraft.entity.mob
Modifier and TypeFieldDescriptionprotected static final TrackedData
<Direction> ShulkerEntity.ATTACHED_FACE
Modifier and TypeMethodDescriptionShulkerEntity.findAttachSide
(BlockPos pos) ShulkerEntity.getAttachedFace()
Modifier and TypeMethodDescriptionstatic Box
ShulkerEntity.calculateBoundingBox
(float scale, Direction facing, float extraLength) static Box
ShulkerEntity.calculateBoundingBox
(float scale, Direction facing, float prevExtraLength, float extraLength) (package private) boolean
private void
ShulkerEntity.setAttachedFace
(Direction face) -
Uses of Direction in net.minecraft.entity.player
Modifier and TypeMethodDescriptionboolean
PlayerEntity.canPlaceOn
(BlockPos pos, Direction facing, ItemStack stack) -
Uses of Direction in net.minecraft.entity.projectile
Modifier and TypeMethodDescriptionprivate void
ShulkerBulletEntity.setDirection
(@Nullable Direction direction) -
Uses of Direction in net.minecraft.entity.vehicle
Modifier and TypeMethodDescriptionAbstractMinecartEntity.getMovementDirection()
BoatEntity.getMovementDirection()
-
Uses of Direction in net.minecraft.fluid
Modifier and TypeMethodDescriptionprotected Map
<Direction, FluidState> FlowableFluid.getSpread
(World world, BlockPos pos, BlockState state) Modifier and TypeMethodDescriptionboolean
EmptyFluid.canBeReplacedWith
(FluidState state, BlockView world, BlockPos pos, Fluid fluid, Direction direction) protected abstract boolean
Fluid.canBeReplacedWith
(FluidState state, BlockView world, BlockPos pos, Fluid fluid, Direction direction) boolean
FluidState.canBeReplacedWith
(BlockView world, BlockPos pos, Fluid fluid, Direction direction) boolean
LavaFluid.canBeReplacedWith
(FluidState state, BlockView world, BlockPos pos, Fluid fluid, Direction direction) boolean
WaterFluid.canBeReplacedWith
(FluidState state, BlockView world, BlockPos pos, Fluid fluid, Direction direction) protected boolean
FlowableFluid.canFlow
(BlockView world, BlockPos fluidPos, BlockState fluidBlockState, Direction flowDirection, BlockPos flowTo, BlockState flowToBlockState, FluidState fluidState, Fluid fluid) private boolean
FlowableFluid.canFlowThrough
(BlockView world, Fluid fluid, BlockPos pos, BlockState state, Direction face, BlockPos fromPos, BlockState fromState, FluidState fluidState) protected void
FlowableFluid.flow
(WorldAccess world, BlockPos pos, BlockState state, Direction direction, FluidState fluidState) protected void
LavaFluid.flow
(WorldAccess world, BlockPos pos, BlockState state, Direction direction, FluidState fluidState) protected int
FlowableFluid.getMinFlowDownDistance
(WorldView world, BlockPos pos, int int2, Direction direction, BlockState state, BlockPos fromPos, Short2ObjectMap<com.mojang.datafixers.util.Pair<BlockState, FluidState>> stateCache, Short2BooleanMap flowDownCache) Finds the distance to the closest hole the fluid can flow down into starting with the direction specified.protected boolean
FlowableFluid.isFlowBlocked
(BlockView world, BlockPos pos, Direction direction) private boolean
FlowableFluid.receivesFlow
(Direction face, BlockView world, BlockPos pos, BlockState state, BlockPos fromPos, BlockState fromState) -
Uses of Direction in net.minecraft.inventory
Modifier and TypeMethodDescriptionboolean
SidedInventory.canExtract
(int slot, ItemStack stack, Direction dir) Returns whether the given stack can be removed from this inventory at the specified slot position from the given direction.boolean
Returns whether the given stack can be inserted into this inventory at the specified slot position from the given direction.int[]
SidedInventory.getAvailableSlots
(Direction side) Returns the available slot positions that are reachable from a given side. -
Uses of Direction in net.minecraft.item
Modifier and TypeFieldDescriptionprivate final Direction
AutomaticItemPlacementContext.facing
private final Direction
VerticallyAttachableBlockItem.verticalAttachmentDirection
Modifier and TypeMethodDescriptionAutomaticItemPlacementContext.getHorizontalPlayerFacing()
Returns the horizontal facing direction of the player.ItemUsageContext.getHorizontalPlayerFacing()
Returns the horizontal facing direction of the player.AutomaticItemPlacementContext.getPlacementDirections()
ItemPlacementContext.getPlacementDirections()
AutomaticItemPlacementContext.getPlayerLookDirection()
ItemPlacementContext.getPlayerLookDirection()
ItemUsageContext.getSide()
ItemPlacementContext.getVerticalPlayerLookDirection()
Modifier and TypeMethodDescriptionprotected boolean
DecorationItem.canPlaceOn
(PlayerEntity player, Direction side, ItemStack stack, BlockPos pos) protected boolean
ItemFrameItem.canPlaceOn
(PlayerEntity player, Direction side, ItemStack stack, BlockPos pos) ArrowItem.createEntity
(World world, Position pos, ItemStack stack, Direction direction) EggItem.createEntity
(World world, Position pos, ItemStack stack, Direction direction) ExperienceBottleItem.createEntity
(World world, Position pos, ItemStack stack, Direction direction) FireChargeItem.createEntity
(World world, Position pos, ItemStack stack, Direction direction) FireworkRocketItem.createEntity
(World world, Position pos, ItemStack stack, Direction direction) ProjectileItem.createEntity
(World world, Position pos, ItemStack stack, Direction direction) SnowballItem.createEntity
(World world, Position pos, ItemStack stack, Direction direction) SpectralArrowItem.createEntity
(World world, Position pos, ItemStack stack, Direction direction) ThrowablePotionItem.createEntity
(World world, Position pos, ItemStack stack, Direction direction) TridentItem.createEntity
(World world, Position pos, ItemStack stack, Direction direction) WindChargeItem.createEntity
(World world, Position pos, ItemStack stack, Direction direction) ProjectileItem.PositionFunction.getDispensePosition
(BlockPointer pointer, Direction facing) static ItemPlacementContext
ItemPlacementContext.offset
(ItemPlacementContext context, BlockPos pos, Direction side) private static Vec3d
FireworkRocketItem.position
(BlockPointer pointer, Direction facing) static boolean
BoneMealItem.useOnGround
(ItemStack stack, World world, BlockPos blockPos, @Nullable Direction facing) ModifierConstructorDescriptionAutomaticItemPlacementContext
(World world, BlockPos pos, Direction facing, ItemStack stack, Direction side) SignItem
(Item.Settings settings, Block standingBlock, Block wallBlock, Direction verticalAttachmentDirection) VerticallyAttachableBlockItem
(Block standingBlock, Block wallBlock, Item.Settings settings, Direction verticalAttachmentDirection) -
Uses of Direction in net.minecraft.network.packet.c2s.play
ModifierConstructorDescriptionPlayerActionC2SPacket
(PlayerActionC2SPacket.Action action, BlockPos pos, Direction direction) PlayerActionC2SPacket
(PlayerActionC2SPacket.Action action, BlockPos pos, Direction direction, int sequence) -
Uses of Direction in net.minecraft.particle
Modifier and TypeMethodDescriptionstatic void
ParticleUtil.spawnParticle
(World world, BlockPos pos, Direction direction, ParticleEffect effect, Vec3d velocity, double offsetMultiplier) static void
ParticleUtil.spawnParticles
(World world, BlockPos pos, ParticleEffect effect, IntProvider count, Direction direction, Supplier<Vec3d> velocity, double offsetMultiplier) -
Uses of Direction in net.minecraft.server.network
Modifier and TypeMethodDescriptionprivate boolean
ServerPlayerEntity.isBedObstructed
(BlockPos pos, Direction direction) private boolean
ServerPlayerEntity.isBedWithinRange
(BlockPos pos, Direction direction) void
DemoServerPlayerInteractionManager.processBlockBreakingAction
(BlockPos pos, PlayerActionC2SPacket.Action action, Direction direction, int worldHeight, int sequence) void
ServerPlayerInteractionManager.processBlockBreakingAction
(BlockPos pos, PlayerActionC2SPacket.Action action, Direction direction, int worldHeight, int sequence) -
Uses of Direction in net.minecraft.server.world
Modifier and TypeMethodDescriptionfloat
ServerWorld.getBrightness
(Direction direction, boolean shaded) void
ServerWorld.updateNeighborsExcept
(BlockPos pos, Block sourceBlock, Direction direction) Emits a neighbor update to neighboring blocks ofpos
, except for the one indirection
direction. -
Uses of Direction in net.minecraft.state.property
Modifier and TypeMethodDescriptionstatic DirectionProperty
Creates a direction property with the given values.Modifier and TypeMethodDescriptionstatic DirectionProperty
DirectionProperty.of
(String name, Collection<Direction> values) Creates a direction property with the given values.static DirectionProperty
Creates a direction property with the values allowed by the given filter out of all 6 directions.ModifierConstructorDescriptionprotected
DirectionProperty
(String name, Collection<Direction> values) -
Uses of Direction in net.minecraft.structure
Modifier and TypeFieldDescriptionprivate final Direction
MineshaftGenerator.MineshaftCrossing.direction
StructurePiece.facing
Modifier and TypeMethodDescriptionWoodlandMansionGenerator.MansionParameters.findConnectedRoomDirection
(WoodlandMansionGenerator.FlagMatrix layout, int i, int j, int floor, int roomId) StructurePiece.getFacing()
protected static Direction
StructurePiece.getRandomHorizontalDirection
(Random random) Modifier and TypeMethodDescriptionprivate void
WoodlandMansionGenerator.LayoutGenerator.addBigRoom
(List<WoodlandMansionGenerator.Piece> pieces, BlockPos pos, BlockRotation rotation, Direction connectedRoomDirection, Direction entranceDirection, WoodlandMansionGenerator.RoomPool pool) protected boolean
StructurePiece.addDispenser
(StructureWorldAccess world, BlockBox boundingBox, Random random, int x, int y, int z, Direction facing, RegistryKey<LootTable> lootTable) private void
WoodlandMansionGenerator.LayoutGenerator.addMediumRoom
(List<WoodlandMansionGenerator.Piece> pieces, BlockPos pos, BlockRotation rotation, Direction connectedRoomDirection, Direction entranceDirection, WoodlandMansionGenerator.RoomPool pool, boolean staircase) private void
WoodlandMansionGenerator.LayoutGenerator.addOuterWall
(List<WoodlandMansionGenerator.Piece> pieces, WoodlandMansionGenerator.GenerationPiece wallPiece, WoodlandMansionGenerator.FlagMatrix layout, Direction direction, int startI, int startJ, int endI, int endJ) private void
WoodlandMansionGenerator.LayoutGenerator.addSmallRoom
(List<WoodlandMansionGenerator.Piece> pieces, BlockPos pos, BlockRotation rotation, Direction direction, WoodlandMansionGenerator.RoomPool pool) NetherFortressGenerator.Bridge.create
(StructurePiecesHolder holder, Random random, int x, int y, int z, Direction orientation, int chainLength) NetherFortressGenerator.BridgeCrossing.create
(StructurePiecesHolder holder, int x, int y, int z, Direction orientation, int chainLength) NetherFortressGenerator.BridgeEnd.create
(StructurePiecesHolder holder, Random random, int x, int y, int z, Direction orientation, int chainLength) NetherFortressGenerator.BridgePlatform.create
(StructurePiecesHolder holder, int x, int y, int z, int chainLength, Direction orientation) NetherFortressGenerator.BridgeSmallCrossing.create
(StructurePiecesHolder holder, int x, int y, int z, Direction orientation, int chainLength) NetherFortressGenerator.BridgeStairs.create
(StructurePiecesHolder holder, int x, int y, int z, int chainlength, Direction orientation) NetherFortressGenerator.CorridorBalcony.create
(StructurePiecesHolder holder, int x, int y, int z, Direction orientation, int chainLength) NetherFortressGenerator.CorridorCrossing.create
(StructurePiecesHolder holder, int x, int y, int z, Direction orientation, int chainLength) NetherFortressGenerator.CorridorExit.create
(StructurePiecesHolder holder, Random random, int x, int y, int z, Direction orientation, int chainLength) NetherFortressGenerator.CorridorLeftTurn.create
(StructurePiecesHolder holder, Random random, int x, int y, int z, Direction orientation, int chainLength) NetherFortressGenerator.CorridorNetherWartsRoom.create
(StructurePiecesHolder holder, int x, int y, int z, Direction orientation, int chainlength) NetherFortressGenerator.CorridorRightTurn.create
(StructurePiecesHolder holder, Random random, int x, int y, int z, Direction orientation, int chainLength) NetherFortressGenerator.CorridorStairs.create
(StructurePiecesHolder holder, int x, int y, int z, Direction orientation, int chainLength) NetherFortressGenerator.SmallCorridor.create
(StructurePiecesHolder holder, int x, int y, int z, Direction orientation, int chainLength) StrongholdGenerator.ChestCorridor.create
(StructurePiecesHolder holder, Random random, int x, int y, int z, Direction orientation, int chainlength) static StrongholdGenerator.Corridor
StrongholdGenerator.Corridor.create
(StructurePiecesHolder holder, Random random, int x, int y, int z, Direction orientation, int chainLength) StrongholdGenerator.FiveWayCrossing.create
(StructurePiecesHolder holder, Random random, int x, int y, int z, Direction orientation, int chainLength) static StrongholdGenerator.LeftTurn
StrongholdGenerator.LeftTurn.create
(StructurePiecesHolder holder, Random random, int x, int y, int z, Direction orientation, int chainLength) static StrongholdGenerator.Library
StrongholdGenerator.Library.create
(StructurePiecesHolder holder, Random random, int x, int y, int z, Direction orientation, int chainLength) StrongholdGenerator.PortalRoom.create
(StructurePiecesHolder holder, int x, int y, int z, Direction orientation, int chainLength) StrongholdGenerator.PrisonHall.create
(StructurePiecesHolder holder, Random random, int x, int y, int z, Direction orientation, int chainLength) StrongholdGenerator.RightTurn.create
(StructurePiecesHolder holder, Random random, int x, int y, int z, Direction orientation, int chainLength) static BlockBox
StrongholdGenerator.SmallCorridor.create
(StructurePiecesHolder holder, Random random, int x, int y, int z, Direction orientation) StrongholdGenerator.SpiralStaircase.create
(StructurePiecesHolder holder, Random random, int x, int y, int z, Direction orientation, int chainLength) StrongholdGenerator.SquareRoom.create
(StructurePiecesHolder holder, Random random, int x, int y, int z, Direction orientation, int chainLength) static StrongholdGenerator.Stairs
StrongholdGenerator.Stairs.create
(StructurePiecesHolder holder, Random random, int x, int y, int z, Direction orientation, int chainLength) private static BlockBox
OceanMonumentGenerator.Piece.createBox
(Direction orientation, OceanMonumentGenerator.PieceSetting setting, int int2, int int3, int int4) protected static BlockBox
StructurePiece.createBox
(int x, int y, int z, Direction orientation, int width, int height, int depth) (package private) static NetherFortressGenerator.Piece
NetherFortressGenerator.createPiece
(NetherFortressGenerator.PieceData pieceData, StructurePiecesHolder holder, Random random, int x, int y, int z, Direction orientation, int chainLength) private static StrongholdGenerator.Piece
StrongholdGenerator.createPiece
(Class<? extends StrongholdGenerator.Piece> pieceType, StructurePiecesHolder holder, Random random, int x, int y, int z, @Nullable Direction orientation, int chainLength) OceanMonumentGenerator.DoubleXRoomFactory.generate
(Direction direction, OceanMonumentGenerator.PieceSetting setting, Random random) OceanMonumentGenerator.DoubleXYRoomFactory.generate
(Direction direction, OceanMonumentGenerator.PieceSetting setting, Random random) OceanMonumentGenerator.DoubleYRoomFactory.generate
(Direction direction, OceanMonumentGenerator.PieceSetting setting, Random random) OceanMonumentGenerator.DoubleYZRoomFactory.generate
(Direction direction, OceanMonumentGenerator.PieceSetting setting, Random random) OceanMonumentGenerator.DoubleZRoomFactory.generate
(Direction direction, OceanMonumentGenerator.PieceSetting setting, Random random) OceanMonumentGenerator.PieceFactory.generate
(Direction direction, OceanMonumentGenerator.PieceSetting setting, Random random) OceanMonumentGenerator.SimpleRoomFactory.generate
(Direction direction, OceanMonumentGenerator.PieceSetting setting, Random random) OceanMonumentGenerator.SimpleRoomTopFactory.generate
(Direction direction, OceanMonumentGenerator.PieceSetting setting, Random random) MineshaftGenerator.MineshaftCorridor.getBoundingBox
(StructurePiecesHolder holder, Random random, int x, int y, int z, Direction orientation) MineshaftGenerator.MineshaftCrossing.getBoundingBox
(StructurePiecesHolder holder, Random random, int x, int y, int z, Direction orientation) MineshaftGenerator.MineshaftStairs.getBoundingBox
(StructurePiecesHolder holder, Random random, int x, int y, int z, Direction orientation) private void
WoodlandMansionGenerator.MansionParameters.layoutCorridor
(WoodlandMansionGenerator.FlagMatrix layout, int i, int j, Direction direction, int length) private static MineshaftGenerator.MineshaftPart
MineshaftGenerator.pickPiece
(StructurePiecesHolder holder, Random random, int x, int y, int z, @Nullable Direction orientation, int chainLength, MineshaftStructure.Type type) private NetherFortressGenerator.Piece
NetherFortressGenerator.Piece.pickPiece
(NetherFortressGenerator.Start start, List<NetherFortressGenerator.PieceData> possiblePieces, StructurePiecesHolder holder, Random random, int x, int y, int z, Direction orientation, int chainLength) private static StrongholdGenerator.Piece
StrongholdGenerator.pickPiece
(StrongholdGenerator.Start start, StructurePiecesHolder holder, Random random, int x, int y, int z, Direction orientation, int chainLength) (package private) static MineshaftGenerator.MineshaftPart
MineshaftGenerator.pieceGenerator
(StructurePiece start, StructurePiecesHolder holder, Random random, int x, int y, int z, Direction orientation, int chainLength) private StructurePiece
NetherFortressGenerator.Piece.pieceGenerator
(NetherFortressGenerator.Start start, StructurePiecesHolder holder, Random random, int x, int y, int z, @Nullable Direction orientation, int chainLength, boolean inside) (package private) static StructurePiece
StrongholdGenerator.pieceGenerator
(StrongholdGenerator.Start start, StructurePiecesHolder holder, Random random, int x, int y, int z, @Nullable Direction orientation, int chainLength) void
OceanMonumentGenerator.PieceSetting.setNeighbor
(Direction orientation, OceanMonumentGenerator.PieceSetting setting) void
StructurePiece.setOrientation
(@Nullable Direction orientation) ModifierConstructorDescriptionprotected
BridgeCrossing
(int x, int z, Direction orientation) BridgeCrossing
(int chainLength, BlockBox boundingBox, Direction orientation) BridgePlatform
(int chainLength, BlockBox boundingBox, Direction orientation) BridgeSmallCrossing
(int chainLength, BlockBox boundingBox, Direction orientation) BridgeStairs
(int chainLength, BlockBox boundingBox, Direction orientation) ChestCorridor
(int chainLength, Random random, BlockBox boundingBox, Direction orientation) CoreRoom
(Direction orientation, OceanMonumentGenerator.PieceSetting setting) CorridorBalcony
(int chainLength, BlockBox boundingBox, Direction orientation) CorridorCrossing
(int chainLength, BlockBox boundingBox, Direction orientation) CorridorExit
(int chainLength, Random random, BlockBox boundingBox, Direction orientation) CorridorLeftTurn
(int chainLength, Random random, BlockBox boundingBox, Direction orientation) CorridorNetherWartsRoom
(int chainLength, BlockBox boundingBox, Direction orientation) CorridorRightTurn
(int chainLength, Random random, BlockBox boundingBox, Direction orientation) CorridorStairs
(int chainLength, BlockBox boundingBox, Direction orientation) DoubleXRoom
(Direction orientation, OceanMonumentGenerator.PieceSetting setting) DoubleXYRoom
(Direction orientation, OceanMonumentGenerator.PieceSetting setting) DoubleYRoom
(Direction orientation, OceanMonumentGenerator.PieceSetting setting) DoubleYZRoom
(Direction orientation, OceanMonumentGenerator.PieceSetting setting) DoubleZRoom
(Direction orientation, OceanMonumentGenerator.PieceSetting setting) Entry
(Direction orientation, OceanMonumentGenerator.PieceSetting setting) FiveWayCrossing
(int chainLength, Random random, BlockBox boundingBox, Direction orientation) MineshaftCorridor
(int chainLength, Random random, BlockBox boundingBox, Direction orientation, MineshaftStructure.Type type) MineshaftCrossing
(int chainLength, BlockBox boundingBox, @Nullable Direction orientation, MineshaftStructure.Type type) MineshaftStairs
(int chainLength, BlockBox boundingBox, Direction orientation, MineshaftStructure.Type type) protected
Piece
(StructurePieceType type, int length, Direction orientation, OceanMonumentGenerator.PieceSetting setting, int int2, int int3, int int4) Piece
(StructurePieceType type, Direction orientation, int length, BlockBox box) PortalRoom
(int chainLength, BlockBox boundingBox, Direction orientation) PrisonHall
(int chainLength, Random random, BlockBox boundingBox, Direction orientation) protected
ShiftableStructurePiece
(StructurePieceType type, int x, int y, int z, int width, int height, int depth, Direction orientation) SimpleRoom
(Direction orientation, OceanMonumentGenerator.PieceSetting setting, Random random) SimpleRoomTop
(Direction orientation, OceanMonumentGenerator.PieceSetting setting) SmallCorridor
(int chainLength, BlockBox boundingBox, Direction orientation) SmallCorridor
(int chainLength, BlockBox boundingBox, Direction orientation) SpiralStaircase
(int chainLength, Random random, BlockBox boundingBox, Direction orientation) SpiralStaircase
(StructurePieceType structurePieceType, int chainLength, int x, int z, Direction orientation) SquareRoom
(int chainLength, Random random, BlockBox boundingBox, Direction orientation) -
Uses of Direction in net.minecraft.test
Modifier and TypeMethodDescriptionvoid
TestContext.expectRedstonePower
(BlockPos pos, Direction direction, IntPredicate powerPredicate, Supplier<String> errorMessage) void
TestContext.useStackOnBlock
(PlayerEntity player, ItemStack stack, BlockPos pos, Direction direction) -
Uses of Direction in net.minecraft.util
Modifier and TypeMethodDescription -
Uses of Direction in net.minecraft.util.hit
Modifier and TypeMethodDescriptionstatic BlockHitResult
BlockHitResult.createMissed
(Vec3d pos, Direction side, BlockPos blockPos) ModifierConstructorDescriptionprivate
BlockHitResult
(boolean missed, Vec3d pos, Direction side, BlockPos blockPos, boolean insideBlock) BlockHitResult
(Vec3d pos, Direction side, BlockPos blockPos, boolean insideBlock) -
Uses of Direction in net.minecraft.util.math
Modifier and TypeFieldDescriptionprivate static final Direction[]
Direction.ALL
private final Direction
VerticalSurfaceType.direction
private final Direction[]
Direction.Type.facingArray
private static final Direction[]
Direction.HORIZONTAL
private static final Direction[]
Direction.VALUES
Modifier and TypeFieldDescriptionstatic final StringIdentifiable.EnumCodec
<Direction> Direction.CODEC
static final Map
<Direction, AffineTransformation> AffineTransformations.DIRECTION_ROTATIONS
EightWayDirection.directions
static final IntFunction
<Direction> Direction.ID_TO_VALUE_FUNCTION
static final Map
<Direction, AffineTransformation> AffineTransformations.INVERTED_DIRECTION_ROTATIONS
DirectionTransformation.mappings
DirectionTransformation.mappings
static final PacketCodec
<ByteBuf, Direction> Direction.PACKET_CODEC
static final com.mojang.serialization.Codec
<Direction> Direction.VERTICAL_CODEC
Modifier and TypeMethodDescriptionstatic Direction
Direction.byId
(int id) Returns a direction with the givenname
, ornull
if there is no such direction.static Direction
Direction.from
(Direction.Axis axis, Direction.AxisDirection direction) static Direction
Direction.fromHorizontal
(int value) static Direction
Direction.fromRotation
(double rotation) Direction.fromVector
(int x, int y, int z) static Direction
Direction.get
(Direction.AxisDirection direction, Direction.Axis axis) VerticalSurfaceType.getDirection()
static Direction[]
Direction.getEntityFacingOrder
(Entity entity) static Direction
Direction.getFacing
(double x, double y, double z) static Direction
Direction.getFacing
(float x, float y, float z) static Direction
static Direction
Direction.getLookDirectionForAxis
(Entity entity, Direction.Axis axis) Direction.getOpposite()
private static Direction[]
Direction.listClosest
(Direction first, Direction second, Direction third) Helper function that returns the 3 directions given, followed by the 3 opposite given in opposite order.static Direction
Direction.rotateClockwise
(Direction.Axis axis) Direction.rotateCounterclockwise
(Direction.Axis axis) private Direction
Direction.rotateXClockwise()
private Direction
Direction.rotateXCounterclockwise()
Direction.rotateYClockwise()
Direction.rotateYCounterclockwise()
private Direction
Direction.rotateZClockwise()
private Direction
Direction.rotateZCounterclockwise()
Box.traceCollisionSide
(double[] traceDistanceResult, @Nullable Direction approachDirection, double deltaX, double deltaY, double deltaZ, double begin, double minX, double maxX, double minZ, double maxZ, Direction resultDirection, double startX, double startY, double startZ) Box.traceCollisionSide
(Box box, Vec3d intersectingVector, double[] traceDistanceResult, @Nullable Direction approachDirection, double deltaX, double deltaY, double deltaZ) static Direction
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.Modifier and TypeMethodDescriptionEightWayDirection.getDirections()
Direction.Type.getShuffled
(Random random) Direction.Type.iterator()
static Collection
<Direction> Returns a shuffled collection of all directions.Direction.stream()
Direction.Type.stream()
RotationPropertyHelper.toDirection
(int rotation) private static com.mojang.serialization.DataResult
<Direction> Direction.validateVertical
(Direction direction) Modifier and TypeMethodDescriptionstatic int
RotationPropertyHelper.fromDirection
(Direction direction) static Iterable
<BlockPos.Mutable> BlockPos.iterateInSquare
(BlockPos center, int radius, Direction firstDirection, Direction secondDirection) Iterates block positions around thecenter
in a square of (2 * radius + 1
) by (2 * radius + 1
).private static Direction[]
Direction.listClosest
(Direction first, Direction second, Direction third) Helper function that returns the 3 directions given, followed by the 3 opposite given in opposite order.Moves this mutable block position by 1 block in the given direction.Moves this mutable block position by the given distance in the given direction.static long
static long
Offsets a packed chunk section position in the given direction.Returns a vector which is offset by1
indirection
direction.Returns a vector which is offset bydistance
indirection
direction.static BlockBox
BlockBox.rotated
(int x, int y, int z, int offsetX, int offsetY, int offsetZ, int sizeX, int sizeY, int sizeZ, Direction facing) Sets this mutable block position to the offset position of the given pos by the given direction.static Box
boolean
boolean
int
RotationCalculator.toRotation
(Direction direction) Box.traceCollisionSide
(double[] traceDistanceResult, @Nullable Direction approachDirection, double deltaX, double deltaY, double deltaZ, double begin, double minX, double maxX, double minZ, double maxZ, Direction resultDirection, double startX, double startY, double startZ) Box.traceCollisionSide
(Box box, Vec3d intersectingVector, double[] traceDistanceResult, @Nullable Direction approachDirection, double deltaX, double deltaY, double deltaZ) static Direction
static AffineTransformation
AffineTransformations.uvLock
(AffineTransformation transformation, Direction dir) private static com.mojang.serialization.DataResult
<Direction> Direction.validateVertical
(Direction direction) ModifierConstructorDescriptionprivate
EightWayDirection
(Direction[] directions) private
Type
(Direction[] facingArray, Direction.Axis[] axisArray) private
VerticalSurfaceType
(Direction direction, int offset, String name) -
Uses of Direction in net.minecraft.util.shape
Modifier and TypeMethodDescriptionstatic boolean
VoxelShapes.adjacentSidesCoverSquare
(VoxelShape one, VoxelShape two, Direction direction) void
static VoxelShape
VoxelShapes.extrudeFace
(VoxelShape shape, Direction direction) private VoxelShape
VoxelShape.getUncachedFace
(Direction direction) static boolean
VoxelShapes.isSideCovered
(VoxelShape shape, VoxelShape neighbor, Direction direction) -
Uses of Direction in net.minecraft.world
Modifier and TypeMethodDescriptionBlockLocating.findColumnEnd
(BlockView world, BlockPos pos, Block intermediateBlock, Direction direction, Block endBlock) Finds an end to a block column starting frompos
extending indirection
.float
BlockRenderView.getBrightness
(Direction direction, boolean shaded) float
ChunkRegion.getBrightness
(Direction direction, boolean shaded) default int
RedstoneView.getEmittedRedstonePower
(BlockPos pos, Direction direction) default int
RedstoneView.getEmittedRedstonePower
(BlockPos pos, Direction direction, boolean onlyFromGate) default int
RedstoneView.getStrongRedstonePower
(BlockPos pos, Direction direction) boolean
World.isDirectionSolid
(BlockPos pos, Entity entity, Direction direction) default boolean
RedstoneView.isEmittingRedstonePower
(BlockPos pos, Direction direction) private static int
BlockLocating.moveWhile
(Predicate<BlockPos> predicate, BlockPos.Mutable pos, Direction direction, int max) void
World.replaceWithStateForNeighborUpdate
(Direction direction, BlockState neighborState, BlockPos pos, BlockPos neighborPos, int flags, int maxUpdateDepth) default void
WorldAccess.replaceWithStateForNeighborUpdate
(Direction direction, BlockState neighborState, BlockPos pos, BlockPos neighborPos, int flags, int maxUpdateDepth) void
World.updateNeighborsExcept
(BlockPos pos, Block sourceBlock, Direction direction) Emits a neighbor update to neighboring blocks ofpos
, except for the one indirection
direction. -
Uses of Direction in net.minecraft.world.block
Modifier and TypeFieldDescriptionprivate final Direction
ChainRestrictedNeighborUpdater.StateReplacementEntry.direction
The field for thedirection
record component.ChainRestrictedNeighborUpdater.SixWayEntry.except
static final Direction[]
NeighborUpdater.UPDATE_ORDER
Modifier and TypeMethodDescriptionChainRestrictedNeighborUpdater.StateReplacementEntry.direction()
Returns the value of thedirection
record component.Modifier and TypeMethodDescriptionvoid
ChainRestrictedNeighborUpdater.replaceWithStateForNeighborUpdate
(Direction direction, BlockState neighborState, BlockPos pos, BlockPos neighborPos, int flags, int maxUpdateDepth) void
NeighborUpdater.replaceWithStateForNeighborUpdate
(Direction direction, BlockState neighborState, BlockPos pos, BlockPos neighborPos, int flags, int maxUpdateDepth) static void
NeighborUpdater.replaceWithStateForNeighborUpdate
(WorldAccess world, Direction direction, BlockState neighborState, BlockPos pos, BlockPos neighborPos, int flags, int maxUpdateDepth) void
SimpleNeighborUpdater.replaceWithStateForNeighborUpdate
(Direction direction, BlockState neighborState, BlockPos pos, BlockPos neighborPos, int flags, int maxUpdateDepth) void
ChainRestrictedNeighborUpdater.updateNeighbors
(BlockPos pos, Block sourceBlock, @Nullable Direction except) default void
NeighborUpdater.updateNeighbors
(BlockPos pos, Block sourceBlock, @Nullable Direction except) ModifierConstructorDescription(package private)
SixWayEntry
(BlockPos pos, Block sourceBlock, @Nullable Direction except) (package private)
StateReplacementEntry
(Direction direction, BlockState blockState, BlockPos blockPos, BlockPos blockPos2, int int2, int int3) -
Uses of Direction in net.minecraft.world.chunk
Modifier and TypeMethodDescriptionprivate static BlockState
UpgradeData.applyAdjacentBlock
(BlockState oldState, Direction dir, WorldAccess world, BlockPos currentPos, BlockPos otherPos) UpgradeData.Logic.getUpdatedState
(BlockState oldState, Direction direction, BlockState otherState, WorldAccess world, BlockPos currentPos, BlockPos otherPos) -
Uses of Direction in net.minecraft.world.chunk.light
Modifier and TypeFieldDescriptionprotected static final Direction[]
ChunkLightProvider.DIRECTIONS
Modifier and TypeMethodDescriptionprivate static long
ChunkLightProvider.class_8531.clearDirectionBit
(long packed, Direction direction) private static boolean
ChunkSkyLightProvider.exitsChunkXZ
(Direction direction, int localX, int localZ) protected VoxelShape
ChunkLightProvider.getOpaqueShape
(BlockState blockState, long pos, Direction direction) static VoxelShape
ChunkLightProvider.getOpaqueShape
(BlockView blockView, BlockPos pos, BlockState blockState, Direction direction) static int
ChunkLightProvider.getRealisticOpacity
(BlockView world, BlockState state1, BlockPos pos1, BlockState state2, BlockPos pos2, Direction direction, int opacity2) static boolean
ChunkLightProvider.class_8531.isDirectionBitSet
(long packed, Direction direction) static long
ChunkLightProvider.class_8531.method_51574
(int lightLevel, boolean trivial, Direction direction) static long
ChunkLightProvider.class_8531.method_51579
(int lightLevel, boolean trivial, Direction direction) private void
ChunkSkyLightProvider.method_51587
(long blockPos, Direction direction, int lightLevel, boolean bool, int int2) static long
ChunkLightProvider.class_8531.packWithOneDirectionCleared
(int lightLevel, Direction direction) private static long
ChunkLightProvider.class_8531.setDirectionBit
(long packed, Direction direction) protected boolean
ChunkLightProvider.shapesCoverFullCube
(long sourceId, BlockState sourceState, long targetId, BlockState targetState, Direction direction) -
Uses of Direction in net.minecraft.world.dimension
Modifier and TypeMethodDescriptionprivate int
private boolean
PortalForcer.isValidPortalPos
(BlockPos pos, BlockPos.Mutable temp, Direction portalDirection, int distanceOrthogonalToPortal) -
Uses of Direction in net.minecraft.world.gen.blockpredicate
Modifier and TypeMethodDescriptionstatic BlockPredicate
BlockPredicate.hasSturdyFace
(Direction face) static BlockPredicate
BlockPredicate.hasSturdyFace
(Vec3i offset, Direction face) -
Uses of Direction in net.minecraft.world.gen.feature
Modifier and TypeFieldDescriptionprivate final Direction
BlockColumnFeatureConfig.direction
The field for thedirection
record component.private static final Direction[]
DeltaFeature.DIRECTIONS
private static final Direction[]
GeodeFeature.DIRECTIONS
private static final Direction[]
WeepingVinesFeature.DIRECTIONS
Modifier and TypeFieldDescriptionprivate final ObjectArrayList
<Direction> MultifaceGrowthFeatureConfig.directions
Modifier and TypeMethodDescriptionBlockColumnFeatureConfig.direction()
Returns the value of thedirection
record component.Modifier and TypeMethodDescriptionSmallDripstoneFeature.getDirection
(WorldAccess world, BlockPos pos, Random random) MultifaceGrowthFeatureConfig.shuffleDirections
(Random random) MultifaceGrowthFeatureConfig.shuffleDirections
(Random random, Direction excluded) Modifier and TypeMethodDescriptionprivate static RegistryEntry
<PlacedFeature> UndergroundConfiguredFeatures.createBigDripleafFeature
(Direction direction) private static boolean
WaterloggedVegetationPatchFeature.isSolidBlockSide
(StructureWorldAccess world, BlockPos pos, BlockPos.Mutable mutablePos, Direction direction) private void
DripstoneClusterFeature.placeDripstoneBlocks
(StructureWorldAccess world, BlockPos pos, int height, Direction direction) MultifaceGrowthFeatureConfig.shuffleDirections
(Random random, Direction excluded) Modifier and TypeMethodDescriptionstatic boolean
MultifaceGrowthFeature.generate
(StructureWorldAccess world, BlockPos pos, BlockState state, MultifaceGrowthFeatureConfig config, Random random, List<Direction> directions) ModifierConstructorDescriptionBlockColumnFeatureConfig
(List<BlockColumnFeatureConfig.Layer> list, Direction direction, BlockPredicate blockPredicate, boolean bool) -
Uses of Direction in net.minecraft.world.gen.feature.util
Modifier and TypeMethodDescriptionprotected static void
DripstoneHelper.generatePointedDripstone
(WorldAccess world, BlockPos pos, Direction direction, int height, boolean merge) private static OptionalInt
CaveSurface.getCaveSurface
(TestableWorld world, int height, Predicate<BlockState> canGenerate, Predicate<BlockState> canReplace, BlockPos.Mutable mutablePos, int y, Direction direction) protected static void
DripstoneHelper.getDripstoneThickness
(Direction direction, int height, boolean merge, Consumer<BlockState> callback) private static BlockState
-
Uses of Direction in net.minecraft.world.gen.placementmodifier
Modifier and TypeFieldDescriptionprivate final Direction
EnvironmentScanPlacementModifier.direction
Modifier and TypeMethodDescriptionEnvironmentScanPlacementModifier.of
(Direction direction, BlockPredicate targetPredicate, int maxSteps) EnvironmentScanPlacementModifier.of
(Direction direction, BlockPredicate targetPredicate, BlockPredicate allowedSearchPredicate, int maxSteps) ModifierConstructorDescriptionprivate
EnvironmentScanPlacementModifier
(Direction direction, BlockPredicate targetPredicate, BlockPredicate allowedSearchPredicate, int maxSteps) -
Uses of Direction in net.minecraft.world.gen.root
Modifier and TypeMethodDescriptionprivate boolean
MangroveRootPlacer.canGrow
(TestableWorld world, Random random, BlockPos pos, Direction direction, BlockPos origin, List<BlockPos> offshootPositions, int rootLength) MangroveRootPlacer.getOffshootPositions
(BlockPos pos, Direction direction, Random random, BlockPos origin) -
Uses of Direction in net.minecraft.world.gen.treedecorator
Modifier and TypeFieldDescriptionprivate static final Direction
BeehiveTreeDecorator.BEE_NEST_FACE
private static final Direction[]
BeehiveTreeDecorator.GENERATE_DIRECTIONS
Modifier and TypeMethodDescriptionprivate boolean
AttachedToLeavesTreeDecorator.meetsRequiredEmptyBlocks
(TreeDecorator.Generator generator, BlockPos pos, Direction direction) ModifierConstructorDescriptionAttachedToLeavesTreeDecorator
(float probability, int exclusionRadiusXZ, int exclusionRadiusY, BlockStateProvider blockProvider, int requiredEmptyBlocks, List<Direction> directions) -
Uses of Direction in net.minecraft.world.gen.trunk
Modifier and TypeMethodDescriptionprivate FoliagePlacer.TreeNode
CherryTrunkPlacer.generateBranch
(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, int height, BlockPos startPos, TreeFeatureConfig config, Function<BlockState, BlockState> withAxisFunction, Direction direction, int branchStartOffset, boolean branchBelowHeight, BlockPos.Mutable mutablePos) private void
UpwardsBranchingTrunkPlacer.generateExtraBranch
(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, int height, TreeFeatureConfig config, List<FoliagePlacer.TreeNode> nodes, BlockPos.Mutable pos, int yOffset, Direction direction, int length, int steps)