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.DIRECTIONS
private 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 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> AbstractFurnaceBlock.FACING
static final EnumProperty
<Direction> AmethystClusterBlock.FACING
static final EnumProperty
<Direction> AnvilBlock.FACING
static final EnumProperty
<Direction> AttachedStemBlock.FACING
static final EnumProperty
<Direction> BarrelBlock.FACING
static final EnumProperty
<Direction> BeehiveBlock.FACING
static final EnumProperty
<Direction> BellBlock.FACING
static final EnumProperty
<Direction> CalibratedSculkSensorBlock.FACING
static final EnumProperty
<Direction> CampfireBlock.FACING
static final EnumProperty
<Direction> CarvedPumpkinBlock.FACING
static final EnumProperty
<Direction> ChestBlock.FACING
static final EnumProperty
<Direction> CommandBlock.FACING
static final EnumProperty
<Direction> DeadCoralWallFanBlock.FACING
private static final EnumProperty
<Direction> DecoratedPotBlock.FACING
static final EnumProperty
<Direction> DispenserBlock.FACING
static final EnumProperty
<Direction> DoorBlock.FACING
static final EnumProperty
<Direction> EnderChestBlock.FACING
static final EnumProperty
<Direction> EndPortalFrameBlock.FACING
static final EnumProperty
<Direction> FacingBlock.FACING
static final EnumProperty
<Direction> FlowerbedBlock.FACING
static final EnumProperty
<Direction> HopperBlock.FACING
static final EnumProperty
<Direction> HorizontalFacingBlock.FACING
static final EnumProperty
<Direction> LadderBlock.FACING
static final EnumProperty
<Direction> LecternBlock.FACING
static final EnumProperty
<Direction> PistonExtensionBlock.FACING
static final EnumProperty
<Direction> ShulkerBoxBlock.FACING
static final EnumProperty
<Direction> SmallDripleafBlock.FACING
static final EnumProperty
<Direction> StairsBlock.FACING
static final EnumProperty
<Direction> StonecutterBlock.FACING
static final EnumProperty
<Direction> TripwireHookBlock.FACING
static final EnumProperty
<Direction> VaultBlock.FACING
static final EnumProperty
<Direction> WallBannerBlock.FACING
static final EnumProperty
<Direction> WallHangingSignBlock.FACING
static final EnumProperty
<Direction> WallRedstoneTorchBlock.FACING
static final EnumProperty
<Direction> WallSignBlock.FACING
static final EnumProperty
<Direction> WallSkullBlock.FACING
static final EnumProperty
<Direction> WallTorchBlock.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
static final EnumProperty
<Direction> PointedDripstoneBlock.VERTICAL_DIRECTION
private static final Map
<Direction, EnumProperty<WallShape>> PaleMossCarpetBlock.WALL_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 static void
RedstoneWireBlock.addPoweredParticles
(World world, Random random, BlockPos pos, int color, Direction perpendicular, Direction direction, float minOffset, float maxOffset) 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) private static boolean
PaleMossCarpetBlock.canGrowOnFace
(BlockView world, BlockPos pos, Direction face) 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
(ServerWorld 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
(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
(WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Gets the possibly updated block state of this block when a neighboring block is updated.protected BlockState
AbstractBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
AbstractCoralBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
AbstractPlantBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
AbstractPlantStemBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
AbstractPressurePlateBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
AbstractRailBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
AbstractSignBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
AbstractTorchBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
AmethystClusterBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
AttachedStemBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
BambooBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
BambooShootBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
BannerBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
BarrierBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
BedBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
BeehiveBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
BellBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
BigDripleafBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
BigDripleafStemBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.BrushableBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
BubbleColumnBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
CactusBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
CakeBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
CampfireBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
CandleBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
CandleCakeBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
CarpetBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
ChainBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
ChestBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
ChorusFlowerBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
ChorusPlantBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
CocoaBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.ComparatorBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
ConcretePowderBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
ConduitBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
CoralBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
CoralBlockBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
CoralFanBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
CoralWallFanBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
CreakingHeartBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
DeadCoralWallFanBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
DecoratedPotBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
DirtPathBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
DoorBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
EnderChestBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
FallingBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
FarmlandBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
FenceBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
FenceGateBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
FireBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
FlowerPotBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
FluidBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
FrogspawnBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
GlowLichenBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
GrateBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
HangingMossBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
HangingRootsBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
HangingSignBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
HeavyCoreBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
LadderBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
LanternBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
LeavesBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
LightBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
LightningRodBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
MagmaBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
MangroveRootsBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
MultifaceGrowthBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
MushroomBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
NetherPortalBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
NoteBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
ObserverBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
PaleMossCarpetBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
PaneBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
PistonHeadBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.PitcherCropBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
PlantBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
PointedDripstoneBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
PropaguleBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
RedstoneWireBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
RepeaterBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
ScaffoldingBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
SculkSensorBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
SculkShriekerBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
SculkVeinBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
SeagrassBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
SeaPickleBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
SignBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
SlabBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
SmallDripleafBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
SnowBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
SnowyBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
SoulFireBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
SoulSandBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
SporeBlossomBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
StairsBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
SugarCaneBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
TallPlantBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
TrapdoorBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
TripwireBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
TripwireHookBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
VineBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
WallBannerBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
WallBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
WallHangingSignBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
WallMountedBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
WallRedstoneTorchBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
WallSignBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected BlockState
WallTorchBlock.getStateForNeighborUpdate
(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) 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) static @Nullable EnumProperty
<WallShape> PaleMossCarpetBlock.getWallShape
(Direction face) 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, BlockState otherState, Direction side) 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) static <S extends BlockEntity>
DoubleBlockProperties.PropertySource<S> DoubleBlockProperties.toPropertySource
(BlockEntityType<S> blockEntityType, Function<BlockState, DoubleBlockProperties.Type> typeMapper, Function<BlockState, Direction> directionMapper, Property<Direction> property, BlockState state, WorldAccess world, BlockPos pos, BiPredicate<WorldAccess, BlockPos> fallbackTester) 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) -
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.getDirection()
PistonBlockEntity.getFacing()
BrushableBlockEntity.getHitDirection()
DecoratedPotBlockEntity.getHorizontalFacing()
PistonBlockEntity.getMovementDirection()
Modifier and TypeMethodDescriptionvoid
Rings the bell in a given direction.boolean
BrushableBlockEntity.brush
(long worldTime, ServerWorld world, PlayerEntity player, Direction hitDirection, ItemStack brush) 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 TypeFieldDescriptionprivate static final Direction[]
ChunkRenderingDataPreparer.DIRECTIONS
Modifier and TypeMethodDescription(package private) void
ChunkRenderingDataPreparer.ChunkInfo.addDirection
(Direction direction) (package private) boolean
static void
VertexRendering.drawSide
(MatrixStack matrices, VertexConsumer vertexConsumers, Direction side, float minX, float minY, float minZ, float maxX, float maxY, float maxZ, float red, float green, float blue, float alpha) private ChunkBuilder.BuiltChunk
ChunkRenderingDataPreparer.getRenderedChunk
(long sectionPos, ChunkBuilder.BuiltChunk chunk, Direction direction) (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[] float2, BitSet bitSet, boolean bool) 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
(BlockState blockState, Direction direction) private static boolean
FluidRenderer.isSideCovered
(Direction direction, float float2, BlockState blockState) private static boolean
FluidRenderer.method_3344
(Direction direction, float float2, BlockState blockState) static boolean
FluidRenderer.shouldRenderSide
(FluidState fluidState, BlockState blockState, Direction direction, FluidState fluidState2) 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, Model model, 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) long
ChunkBuilder.BuiltChunk.getOffsetSectionPos
(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.entity.state
Modifier and TypeFieldDescriptionItemFrameEntityRenderState.facing
PaintingEntityRenderState.facing
ShulkerEntityRenderState.facing
LivingEntityRenderState.sleepingDirection
Modifier and TypeMethodDescriptionfloat
FallingBlockEntityRenderState.getBrightness
(Direction direction, boolean shaded) -
Uses of Direction in net.minecraft.client.render.model
Modifier and TypeFieldDescriptionprivate final EnumMap
<Direction, ImmutableList.Builder<BakedQuad>> BasicBakedModel.Builder.faceQuads
BasicBakedModel.faceQuads
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, int lightEmission) 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) private int[]
BakedQuadFactory.packVertexData
(ModelElementTexture texture, Sprite sprite, Direction direction, float[] positionMatrix, AffineTransformation orientation, @Nullable ModelRotation rotation) static ModelElementTexture
BakedQuadFactory.uvLock
(ModelElementTexture texture, Direction orientation, AffineTransformation rotation) ModifierConstructorDescriptionBakedQuad
(int[] vertexData, int colorIndex, Direction face, Sprite sprite, boolean shade, int lightEmission) ModifierConstructorDescriptionBasicBakedModel
(List<BakedQuad> quads, Map<Direction, List<BakedQuad>> faceQuads, boolean usesAo, boolean isSideLit, boolean hasDepth, Sprite sprite, ModelTransformation transformation) -
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) ModelElement
(Vector3f from, Vector3f to, Map<Direction, ModelElementFace> faces, @Nullable ModelRotation rotation, boolean shade, int lightEmission) -
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 TypeFieldDescriptionstatic final List
<com.mojang.datafixers.util.Pair<Direction, Function<Identifier, BlockStateVariant>>> BlockStateModelGenerator.CONNECTION_VARIANT_FUNCTIONS
A map from a boolean property about connection on one direction to a function that creates a block state variant for connection on that direction with a given connection model.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 TypeMethodDescriptionDefaultMinecartController.getHorizontalFacing()
MinecartController.getHorizontalFacing()
AbstractBoatEntity.getMovementDirection()
AbstractMinecartEntity.getMovementDirection()
-
Uses of Direction in net.minecraft.fluid
Modifier and TypeFieldDescriptionprivate final Direction
FlowableFluid.NeighborGroup.facing
The field for thefacing
record component.Modifier and TypeMethodDescriptionFlowableFluid.NeighborGroup.facing()
Returns the value of thefacing
record component.Modifier and TypeMethodDescriptionprotected Map
<Direction, FluidState> FlowableFluid.getSpread
(ServerWorld 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) private boolean
FlowableFluid.canFlowThrough
(BlockView world, Fluid fluid, BlockPos pos, BlockState state, Direction face, BlockPos fromPos, BlockState fromState, FluidState fluidState) private boolean
FlowableFluid.canFlowThrough
(BlockView world, 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, FlowableFluid.SpreadCache spreadCache) 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 static boolean
FlowableFluid.receivesFlow
(Direction face, BlockView world, BlockPos pos, BlockState state, BlockPos fromPos, BlockState fromState) ModifierConstructorDescription(package private)
NeighborGroup
(BlockState self, BlockState other, Direction facing) Creates an instance of aNeighborGroup
record class. -
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, Direction verticalAttachmentDirection, Item.Settings settings) -
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, @Nullable WireOrientation orientation) Emits a neighbor update to neighboring blocks ofpos
, except for the one indirection
direction. -
Uses of Direction in net.minecraft.state.property
Modifier and TypeFieldDescriptionstatic final EnumProperty
<Direction> Properties.FACING
A property that specifies the direction a block is facing.static final EnumProperty
<Direction> Properties.HOPPER_FACING
A property that specifies the direction a hopper's output faces.static final EnumProperty
<Direction> Properties.HORIZONTAL_FACING
A property that specifies the direction a block is facing.static final EnumProperty
<Direction> Properties.VERTICAL_DIRECTION
A property that specifies the direction a pointed dripstone is facing. -
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 x, int y, int z) 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 x, int y, int z) 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, boolean againstWorldBorder) BlockHitResult
(Vec3d pos, Direction side, BlockPos blockPos, boolean insideBlock) BlockHitResult
(Vec3d pos, Direction side, BlockPos blockPos, boolean insideBlock, boolean againstWorldBorder) -
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, @Nullable Direction fallback) Returns the closest direction of the vector, orfallback
for zero vector.Direction.fromVector
(Vec3i vec, @Nullable Direction fallback) static Direction
Direction.get
(Direction.AxisDirection direction, Direction.Axis axis) VerticalSurfaceType.getDirection()
Direction.Axis.getDirections()
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) abstract Direction
Direction.Axis.getNegativeDirection()
Direction.getOpposite()
abstract Direction
Direction.Axis.getPositiveDirection()
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
(double minX, double minY, double minZ, double maxX, double maxY, double maxZ, Vec3d intersectingVector, double[] traceDistanceResult, @Nullable Direction approachDirection, double deltaX, double deltaY, double deltaZ) 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) Direction.fromVector
(int x, int y, int z, @Nullable Direction fallback) Returns the closest direction of the vector, orfallback
for zero vector.Direction.fromVector
(Vec3i vec, @Nullable Direction fallback) static float
Direction.getHorizontalDegrees
(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
(double minX, double minY, double minZ, double maxX, double maxY, double maxZ, Vec3d intersectingVector, double[] traceDistanceResult, @Nullable Direction approachDirection, double deltaX, double deltaY, double deltaZ) 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
private VoxelShape
VoxelShape.getUncachedFace
(Direction facing) static boolean
VoxelShapes.isSideCovered
(VoxelShape shape, VoxelShape neighbor, Direction direction) -
Uses of Direction in net.minecraft.world
Modifier and TypeMethodDescriptionprivate static boolean
ExperimentalRedstoneController.canProvidePowerTo
(BlockState wireState, Direction direction) BlockLocating.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) float
EmptyBlockRenderView.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, BlockPos pos, BlockPos neighborPos, BlockState neighborState, int flags, int maxUpdateDepth) default void
WorldAccess.replaceWithStateForNeighborUpdate
(Direction direction, BlockPos pos, BlockPos neighborPos, BlockState neighborState, int flags, int maxUpdateDepth) void
World.updateNeighborsExcept
(BlockPos pos, Block sourceBlock, Direction direction, @Nullable WireOrientation orientation) 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
private final Direction
WireOrientation.front
private final Direction
WireOrientation.right
private final Direction
WireOrientation.up
static final Direction[]
NeighborUpdater.UPDATE_ORDER
Modifier and TypeFieldDescriptionWireOrientation.directionsByPriority
WireOrientation.horizontalDirections
private final Map
<Direction, WireOrientation> WireOrientation.siblingsByFront
private final Map
<Direction, WireOrientation> WireOrientation.siblingsByUp
WireOrientation.verticalDirections
Modifier and TypeMethodDescriptionChainRestrictedNeighborUpdater.StateReplacementEntry.direction()
Returns the value of thedirection
record component.WireOrientation.getFront()
WireOrientation.getRight()
WireOrientation.getUp()
Modifier and TypeMethodDescriptionWireOrientation.getDirectionsByPriority()
WireOrientation.getHorizontalDirections()
WireOrientation.getVerticalDirections()
Modifier and TypeMethodDescriptionstatic @Nullable WireOrientation
OrientationHelper.getEmissionOrientation
(World world, @Nullable Direction up, @Nullable Direction front) static WireOrientation
WireOrientation.of
(Direction up, Direction front, WireOrientation.SideBias sideBias) protected static int
WireOrientation.ordinalFromComponents
(Direction up, Direction front, WireOrientation.SideBias sideBias) void
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, BlockPos pos, BlockPos neighborPos, BlockState neighborState, 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, @Nullable WireOrientation orientation) default void
NeighborUpdater.updateNeighbors
(BlockPos pos, Block sourceBlock, @Nullable Direction except, @Nullable WireOrientation orientation) WireOrientation.withFrontAndSideBias
(Direction direction) WireOrientation.withFrontIfNotUp
(Direction direction) static @Nullable WireOrientation
OrientationHelper.withFrontNullable
(@Nullable WireOrientation orientation, Direction direction) ModifierConstructorDescription(package private)
SixWayEntry
(BlockPos pos, Block sourceBlock, @Nullable WireOrientation orientation, @Nullable Direction except) (package private)
StateReplacementEntry
(Direction direction, BlockState blockState, BlockPos blockPos, BlockPos blockPos2, int int2, int int3) private
WireOrientation
(Direction up, Direction front, WireOrientation.SideBias sideBias) -
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) static VoxelShape
ChunkLightProvider.getOpaqueShape
(BlockState state, Direction direction) static int
ChunkLightProvider.getRealisticOpacity
(BlockState state1, BlockState state2, 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
(BlockState source, BlockState target, Direction direction) -
Uses of Direction in net.minecraft.world.dimension
Modifier and TypeMethodDescriptionprivate static int
NetherPortal.getHeight
(BlockView world, BlockPos lowerCorner, Direction negativeDir, int width, MutableInt foundPortalBlocks) NetherPortal.getLowerCorner
(BlockView world, Direction direction, BlockPos pow) private static int
NetherPortal.getPotentialHeight
(BlockView world, BlockPos lowerCorner, Direction negativeDir, BlockPos.Mutable pos, int width, MutableInt foundPortalBlocks) private static int
NetherPortal.getValidatedWidth
(BlockView world, BlockPos lowerCorner, Direction negativeDir) private static int
private static boolean
NetherPortal.isHorizontalFrameValid
(BlockView world, BlockPos lowerCorner, Direction direction, BlockPos.Mutable pos, int width, int height) private boolean
PortalForcer.isValidPortalPos
(BlockPos pos, BlockPos.Mutable temp, Direction portalDirection, int distanceOrthogonalToPortal) ModifierConstructorDescriptionprivate
NetherPortal
(Direction.Axis axis, int foundPortalBlocks, Direction negativeDir, BlockPos lowerCorner, int width, int height) -
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)