Uses of Enum Class
net.minecraft.util.math.Direction
Package
Description
-
Uses of Direction in net.minecraft.block
Modifier and TypeFieldDescriptionprivate static final Direction[]
AbstractBlock.AbstractBlockState.ShapeCache.DIRECTIONS
protected static final Direction[]
AbstractBlock.DIRECTIONS
protected static final Direction[]
AbstractLichenBlock.DIRECTIONS
private static final Direction[]
BuddingAmethystBlock.DIRECTIONS
private final Direction
Block.NeighborGroup.facing
private static final Direction[]
ConnectingBlock.FACINGS
private static final Direction[]
BeehiveBlock.GENERATE_DIRECTIONS
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
static final Map<Direction,
EnumProperty<WireConnection>> RedstoneWireBlock.DIRECTION_TO_WIRE_CONNECTION_PROPERTY
static final EnumProperty<Direction>
ShulkerBoxBlock.FACING
private static final Map<Direction,
BooleanProperty> AbstractLichenBlock.FACING_PROPERTIES
static final Map<Direction,
BooleanProperty> ConnectingBlock.FACING_PROPERTIES
protected static final Map<Direction,
BooleanProperty> HorizontalConnectingBlock.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
private static final Map<Direction,
VoxelShape> RedstoneWireBlock.field_24414
private static final Map<Direction,
VoxelShape> RedstoneWireBlock.field_24415
static final ImmutableList<Direction>
FluidBlock.FLOW_DIRECTIONS
private static final Map<Direction,
VoxelShape> BigDripleafBlock.SHAPES_FOR_DIRECTION
private static final Map<Direction,
VoxelShape> AbstractLichenBlock.SHAPES_FOR_DIRECTIONS
Modifier and TypeMethodDescriptionprotected static Direction
LanternBlock.attachedDirection
(BlockState state) 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
BeehiveBlock.getRandomGenerationDirection
(Random random) static Direction
JigsawBlock.getRotation
(BlockState state) Modifier and TypeMethodDescriptionAbstractLichenBlock.getSpreadLocation
(BlockState state, BlockView world, BlockPos pos, Direction from, Direction to) Modifier and TypeMethodDescriptionprivate boolean
AbstractLichenBlock.addDirection
(WorldAccess world, BlockPos pos, Direction direction, boolean postProcess) private void
RedstoneWireBlock.addPoweredParticles
(World world, Random random, BlockPos pos, Vec3d color, Direction direction, Direction direction2, float float2, float float3) boolean
FenceBlock.canConnect
(BlockState state, boolean neighborIsFullSquare, Direction dir) boolean
ComposterBlock.ComposterInventory.canExtract
(int slot, ItemStack stack, Direction dir) Determines 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) Determines 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) Determines whether the given stack can be removed from this inventory at the specified slot position from the given direction.private static boolean
AbstractLichenBlock.canGrowOn
(BlockView world, Direction direction, BlockPos pos, BlockState state) protected boolean
AbstractLichenBlock.canHaveDirection
(Direction direction) boolean
Determines whether the given stack can be inserted into this inventory at the specified slot position from the given direction.boolean
Determines whether the given stack can be inserted into this inventory at the specified slot position from the given direction.boolean
Determines 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) private static boolean
PointedDripstoneBlock.canPlaceAtWithDirection
(WorldView world, BlockPos pos, Direction direction) private boolean
LadderBlock.canPlaceOn
(BlockView world, BlockPos pos, Direction side) protected boolean
AbstractLichenBlock.canSpread
(BlockState state, BlockView world, BlockPos pos, Direction from) private boolean
AbstractLichenBlock.canSpreadTo
(BlockView world, BlockPos pos, Direction direction) static boolean
FenceGateBlock.canWallConnect
(BlockState state, Direction side) protected static boolean
RedstoneWireBlock.connectsTo
(BlockState state, @Nullable Direction dir) static BlockEntity
PistonExtensionBlock.createBlockEntityPiston
(BlockPos pos, BlockState state, BlockState pushedBlock, Direction facing, boolean extending, boolean source) static void
private static void
CommandBlock.executeCommandChain
(World world, BlockPos pos, Direction facing) BedBlock.findWakeUpPosition
(EntityType<?> type, CollisionView world, BlockPos pos, Direction bedDirection, 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) Gets the available slot positions that are reachable from a given side.int[]
ComposterBlock.DummyInventory.getAvailableSlots
(Direction side) Gets the available slot positions that are reachable from a given side.int[]
ComposterBlock.FullComposterInventory.getAvailableSlots
(Direction side) Gets the available slot positions that are reachable from a given side.AbstractBlock.AbstractBlockState.getCullingFace
(BlockView world, BlockPos pos, Direction direction) private static int
HorizontalConnectingBlock.getDirectionMask
(Direction dir) PointedDripstoneBlock.getDirectionToPlaceAt
(WorldView world, BlockPos pos, Direction direction) private static Direction
BedBlock.getDirectionTowardsOtherPart
(BedPart part, Direction direction) static BooleanProperty
VineBlock.getFacingProperty
(Direction direction) private static VoxelShape
PistonHeadBlock.getHeadShape
(Direction direction, boolean shortHead) protected int
AbstractRedstoneGateBlock.getInputLevel
(WorldView world, BlockPos pos, Direction dir) ChestBlock.getNeighborChestDirection
(ItemPlacementContext ctx, Direction dir) private static int[][]
BedBlock.getOnBedOffsets
(Direction bedDirection) static BooleanProperty
AbstractLichenBlock.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) AbstractLichenBlock.getSpreadLocation
(BlockState state, BlockView world, BlockPos pos, Direction from, Direction to) AbstractBlock.AbstractBlockState.getStateForNeighborUpdate
(Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Gets the possibly updated block state of this block when a neighboring block is updated.AbstractBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Deprecated.AbstractLichenBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Gets the possibly updated block state of this block when a neighboring block is updated.AbstractPlantBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Gets the possibly updated block state of this block when a neighboring block is updated.AbstractPlantStemBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Gets the possibly updated block state of this block when a neighboring block is updated.AbstractPressurePlateBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Gets the possibly updated block state of this block when a neighboring block is updated.AbstractRailBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Gets the possibly updated block state of this block when a neighboring block is updated.AbstractSignBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Gets the possibly updated block state of this block when a neighboring block is updated.AmethystClusterBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Gets the possibly updated block state of this block when a neighboring block is updated.AttachedStemBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Gets the possibly updated block state of this block when a neighboring block is updated.BambooBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Gets the possibly updated block state of this block when a neighboring block is updated.BambooSaplingBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Gets the possibly updated block state of this block when a neighboring block is updated.BannerBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Gets the possibly updated block state of this block when a neighboring block is updated.BedBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Gets the possibly updated block state of this block when a neighboring block is updated.BeehiveBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Gets the possibly updated block state of this block when a neighboring block is updated.BellBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Gets the possibly updated block state of this block when a neighboring block is updated.BigDripleafBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Gets the possibly updated block state of this block when a neighboring block is updated.BigDripleafStemBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Gets the possibly updated block state of this block when a neighboring block is updated.BubbleColumnBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Gets the possibly updated block state of this block when a neighboring block is updated.CactusBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Gets the possibly updated block state of this block when a neighboring block is updated.CakeBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Gets the possibly updated block state of this block when a neighboring block is updated.CampfireBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Gets the possibly updated block state of this block when a neighboring block is updated.CandleBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Gets the possibly updated block state of this block when a neighboring block is updated.CandleCakeBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Gets the possibly updated block state of this block when a neighboring block is updated.CarpetBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Gets the possibly updated block state of this block when a neighboring block is updated.ChainBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Gets the possibly updated block state of this block when a neighboring block is updated.ChestBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Gets the possibly updated block state of this block when a neighboring block is updated.ChorusFlowerBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Gets the possibly updated block state of this block when a neighboring block is updated.ChorusPlantBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Gets the possibly updated block state of this block when a neighboring block is updated.CocoaBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Gets the possibly updated block state of this block when a neighboring block is updated.ConcretePowderBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Gets the possibly updated block state of this block when a neighboring block is updated.ConduitBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Gets the possibly updated block state of this block when a neighboring block is updated.CoralBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Gets the possibly updated block state of this block when a neighboring block is updated.CoralBlockBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Gets the possibly updated block state of this block when a neighboring block is updated.CoralFanBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Gets the possibly updated block state of this block when a neighboring block is updated.CoralParentBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Gets the possibly updated block state of this block when a neighboring block is updated.CoralWallFanBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Gets the possibly updated block state of this block when a neighboring block is updated.DeadCoralWallFanBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Gets the possibly updated block state of this block when a neighboring block is updated.DirtPathBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Gets the possibly updated block state of this block when a neighboring block is updated.DoorBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Gets the possibly updated block state of this block when a neighboring block is updated.EnderChestBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Gets the possibly updated block state of this block when a neighboring block is updated.FallingBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Gets the possibly updated block state of this block when a neighboring block is updated.FarmlandBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Gets the possibly updated block state of this block when a neighboring block is updated.FenceBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Gets the possibly updated block state of this block when a neighboring block is updated.FenceGateBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Gets the possibly updated block state of this block when a neighboring block is updated.FireBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Gets the possibly updated block state of this block when a neighboring block is updated.FlowerPotBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Gets the possibly updated block state of this block when a neighboring block is updated.FluidBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Gets the possibly updated block state of this block when a neighboring block is updated.GlowLichenBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Gets the possibly updated block state of this block when a neighboring block is updated.HangingRootsBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Gets the possibly updated block state of this block when a neighboring block is updated.LadderBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Gets the possibly updated block state of this block when a neighboring block is updated.LanternBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Gets the possibly updated block state of this block when a neighboring block is updated.LeavesBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Gets the possibly updated block state of this block when a neighboring block is updated.LightBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Gets the possibly updated block state of this block when a neighboring block is updated.LightningRodBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Gets the possibly updated block state of this block when a neighboring block is updated.MagmaBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Gets the possibly updated block state of this block when a neighboring block is updated.MushroomBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Gets the possibly updated block state of this block when a neighboring block is updated.NetherPortalBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Gets the possibly updated block state of this block when a neighboring block is updated.NoteBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Gets the possibly updated block state of this block when a neighboring block is updated.ObserverBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Gets the possibly updated block state of this block when a neighboring block is updated.PaneBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Gets the possibly updated block state of this block when a neighboring block is updated.PistonHeadBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Gets the possibly updated block state of this block when a neighboring block is updated.PlantBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Gets the possibly updated block state of this block when a neighboring block is updated.PointedDripstoneBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Gets the possibly updated block state of this block when a neighboring block is updated.RedstoneWireBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Gets the possibly updated block state of this block when a neighboring block is updated.RepeaterBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Gets the possibly updated block state of this block when a neighboring block is updated.ScaffoldingBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Gets the possibly updated block state of this block when a neighboring block is updated.SculkSensorBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Gets the possibly updated block state of this block when a neighboring block is updated.SeagrassBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Gets the possibly updated block state of this block when a neighboring block is updated.SeaPickleBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Gets the possibly updated block state of this block when a neighboring block is updated.SignBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Gets the possibly updated block state of this block when a neighboring block is updated.SlabBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Gets the possibly updated block state of this block when a neighboring block is updated.SmallDripleafBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Gets the possibly updated block state of this block when a neighboring block is updated.SnowBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Gets the possibly updated block state of this block when a neighboring block is updated.SnowyBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Gets the possibly updated block state of this block when a neighboring block is updated.SoulFireBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Gets the possibly updated block state of this block when a neighboring block is updated.SoulSandBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Gets the possibly updated block state of this block when a neighboring block is updated.SporeBlossomBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Gets the possibly updated block state of this block when a neighboring block is updated.StairsBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Gets the possibly updated block state of this block when a neighboring block is updated.SugarCaneBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Gets the possibly updated block state of this block when a neighboring block is updated.TallPlantBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Gets the possibly updated block state of this block when a neighboring block is updated.TorchBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Gets the possibly updated block state of this block when a neighboring block is updated.TrapdoorBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Gets the possibly updated block state of this block when a neighboring block is updated.TripwireBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Gets the possibly updated block state of this block when a neighboring block is updated.TripwireHookBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Gets the possibly updated block state of this block when a neighboring block is updated.VineBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Gets the possibly updated block state of this block when a neighboring block is updated.WallBannerBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Gets the possibly updated block state of this block when a neighboring block is updated.WallBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Gets the possibly updated block state of this block when a neighboring block is updated.WallMountedBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Gets the possibly updated block state of this block when a neighboring block is updated.WallRedstoneTorchBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Gets the possibly updated block state of this block when a neighboring block is updated.WallSignBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Gets the possibly updated block state of this block when a neighboring block is updated.WallTorchBlock.getStateForNeighborUpdate
(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Gets the possibly updated block state of this block when a neighboring block is updated.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) int
AbstractBlock.getStrongRedstonePower
(BlockState state, BlockView world, BlockPos pos, Direction direction) int
AbstractButtonBlock.getStrongRedstonePower
(BlockState state, BlockView world, BlockPos pos, Direction direction) int
AbstractPressurePlateBlock.getStrongRedstonePower
(BlockState state, BlockView world, BlockPos pos, Direction direction) int
AbstractRedstoneGateBlock.getStrongRedstonePower
(BlockState state, BlockView world, BlockPos pos, Direction direction) int
DetectorRailBlock.getStrongRedstonePower
(BlockState state, BlockView world, BlockPos pos, Direction direction) int
LecternBlock.getStrongRedstonePower
(BlockState state, BlockView world, BlockPos pos, Direction direction) int
LeverBlock.getStrongRedstonePower
(BlockState state, BlockView world, BlockPos pos, Direction direction) int
LightningRodBlock.getStrongRedstonePower
(BlockState state, BlockView world, BlockPos pos, Direction direction) int
ObserverBlock.getStrongRedstonePower
(BlockState state, BlockView world, BlockPos pos, Direction direction) int
RedstoneTorchBlock.getStrongRedstonePower
(BlockState state, BlockView world, BlockPos pos, Direction direction) int
RedstoneWireBlock.getStrongRedstonePower
(BlockState state, BlockView world, BlockPos pos, Direction direction) int
TrappedChestBlock.getStrongRedstonePower
(BlockState state, BlockView world, BlockPos pos, Direction direction) int
TripwireHookBlock.getStrongRedstonePower
(BlockState state, BlockView world, BlockPos pos, Direction direction) private static Thickness
PointedDripstoneBlock.getThickness
(WorldView world, BlockPos pos, Direction direction, boolean tryMerge) int
AbstractBlock.AbstractBlockState.getWeakRedstonePower
(BlockView world, BlockPos pos, Direction direction) int
AbstractBlock.getWeakRedstonePower
(BlockState state, BlockView world, BlockPos pos, Direction direction) int
AbstractButtonBlock.getWeakRedstonePower
(BlockState state, BlockView world, BlockPos pos, Direction direction) int
AbstractPressurePlateBlock.getWeakRedstonePower
(BlockState state, BlockView world, BlockPos pos, Direction direction) int
AbstractRedstoneGateBlock.getWeakRedstonePower
(BlockState state, BlockView world, BlockPos pos, Direction direction) int
DaylightDetectorBlock.getWeakRedstonePower
(BlockState state, BlockView world, BlockPos pos, Direction direction) int
DetectorRailBlock.getWeakRedstonePower
(BlockState state, BlockView world, BlockPos pos, Direction direction) int
LecternBlock.getWeakRedstonePower
(BlockState state, BlockView world, BlockPos pos, Direction direction) int
LeverBlock.getWeakRedstonePower
(BlockState state, BlockView world, BlockPos pos, Direction direction) int
LightningRodBlock.getWeakRedstonePower
(BlockState state, BlockView world, BlockPos pos, Direction direction) int
ObserverBlock.getWeakRedstonePower
(BlockState state, BlockView world, BlockPos pos, Direction direction) int
RedstoneBlock.getWeakRedstonePower
(BlockState state, BlockView world, BlockPos pos, Direction direction) int
RedstoneTorchBlock.getWeakRedstonePower
(BlockState state, BlockView world, BlockPos pos, Direction direction) int
RedstoneWireBlock.getWeakRedstonePower
(BlockState state, BlockView world, BlockPos pos, Direction direction) int
SculkSensorBlock.getWeakRedstonePower
(BlockState state, BlockView world, BlockPos pos, Direction direction) int
TargetBlock.getWeakRedstonePower
(BlockState state, BlockView world, BlockPos pos, Direction direction) int
TrappedChestBlock.getWeakRedstonePower
(BlockState state, BlockView world, BlockPos pos, Direction direction) int
TripwireHookBlock.getWeakRedstonePower
(BlockState state, BlockView world, BlockPos pos, Direction direction) int
WallRedstoneTorchBlock.getWeakRedstonePower
(BlockState state, BlockView world, BlockPos pos, Direction direction) static void
BigDripleafBlock.grow
(WorldAccess world, Random random, BlockPos pos, Direction direction) private static boolean
AbstractLichenBlock.hasDirection
(BlockState state, Direction direction) final boolean
AbstractBlock.AbstractBlockState.hasSolidTopSurface
(BlockView world, BlockPos pos, Entity entity, 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) boolean
AbstractBlock.isSideInvisible
(BlockState state, BlockState stateFrom, Direction direction) Deprecated.boolean
FluidBlock.isSideInvisible
(BlockState state, BlockState stateFrom, Direction direction) boolean
PaneBlock.isSideInvisible
(BlockState state, BlockState stateFrom, Direction direction) boolean
PowderSnowBlock.isSideInvisible
(BlockState state, BlockState stateFrom, Direction direction) boolean
TransparentBlock.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) private static boolean
ChorusFlowerBlock.isSurroundedByAir
(WorldView world, BlockPos pos, @Nullable Direction exceptDirection) private static boolean
PointedDripstoneBlock.isTip
(BlockState state, Direction direction) abstract boolean
SideShapeType.matches
(BlockState state, BlockView world, BlockPos pos, Direction direction) private boolean
private static void
PointedDripstoneBlock.place
(WorldAccess world, BlockPos pos, Direction direction, Thickness thickness) protected static boolean
BigDripleafBlock.placeDripleafAt
(WorldAccess world, BlockPos pos, FluidState fluidState, Direction direction) protected static boolean
BigDripleafStemBlock.placeStemAt
(WorldAccess world, BlockPos pos, FluidState fluidState, Direction direction) boolean
boolean
boolean
TripwireBlock.shouldConnectTo
(BlockState state, Direction facing) static boolean
VineBlock.shouldConnectTo
(BlockView world, BlockPos pos, Direction direction) private boolean
WallBlock.shouldConnectTo
(BlockState state, boolean faceFullSquare, Direction side) static boolean
Block.shouldDrawSide
(BlockState state, BlockView world, BlockPos pos, Direction side, BlockPos blockPos) private boolean
PistonBlock.shouldExtend
(World 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) boolean
AbstractLichenBlock.trySpreadRandomly
(BlockState state, WorldAccess world, BlockPos pos, Direction from, Random random, boolean postProcess) boolean
AbstractLichenBlock.trySpreadTo
(BlockState state, WorldAccess world, BlockPos pos, Direction from, Direction to, boolean postProcess) private void
TripwireHookBlock.updateNeighborsOnAxis
(World world, BlockPos pos, Direction direction) AbstractLichenBlock.withDirection
(BlockState state, BlockView world, BlockPos pos, Direction direction) Modifier and TypeMethodDescriptionprivate BlockState
AbstractLichenBlock.mirror
(BlockState state, Function<Direction, Direction> mirror) private BlockState
AbstractLichenBlock.mirror
(BlockState state, Function<Direction, Direction> mirror) ModifierConstructorDescriptionprotected
AbstractPlantBlock
(AbstractBlock.Settings settings, Direction growthDirection, VoxelShape outlineShape, boolean tickWater) protected
AbstractPlantPartBlock
(AbstractBlock.Settings settings, Direction growthDirection, VoxelShape outlineShape, boolean tickWater) protected
AbstractPlantStemBlock
(AbstractBlock.Settings settings, Direction growthDirection, VoxelShape outlineShape, boolean tickWater, double growthChance) NeighborGroup
(BlockState self, BlockState other, Direction facing) -
Uses of Direction in net.minecraft.block.dispenser
Modifier and TypeMethodDescriptionstatic void
DispenserBehavior.setEntityPosition
(BlockPointer pointer, Entity entity, Direction direction) static void
ItemDispenserBehavior.spawnItem
(World world, ItemStack stack, int speed, Direction side, Position pos) protected void
ItemDispenserBehavior.spawnParticles
(BlockPointer pointer, Direction side) -
Uses of Direction in net.minecraft.block.entity
Modifier and TypeFieldDescriptionprivate Direction
PistonBlockEntity.facing
BellBlockEntity.lastSideHit
Modifier and TypeFieldDescriptionprivate static final ThreadLocal<Direction>
PistonBlockEntity.field_12205
Modifier and TypeMethodDescriptionPistonBlockEntity.getFacing()
PistonBlockEntity.getMovementDirection()
Modifier and TypeMethodDescriptionvoid
Rings the bell in a given direction.boolean
AbstractFurnaceBlockEntity.canExtract
(int slot, ItemStack stack, Direction dir) Determines 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) Determines 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 inv, ItemStack stack, int slot, Direction facing) boolean
ShulkerBoxBlockEntity.canExtract
(int slot, ItemStack stack, Direction dir) Determines whether the given stack can be removed from this inventory at the specified slot position from the given direction.boolean
Determines whether the given stack can be inserted into this inventory at the specified slot position from the given direction.boolean
Determines 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
Determines whether the given stack can be inserted into this inventory at the specified slot position from the given direction.private static boolean
int[]
AbstractFurnaceBlockEntity.getAvailableSlots
(Direction side) Gets the available slot positions that are reachable from a given side.int[]
BrewingStandBlockEntity.getAvailableSlots
(Direction side) Gets the available slot positions that are reachable from a given side.private static IntStream
HopperBlockEntity.getAvailableSlots
(Inventory inventory, Direction side) int[]
ShulkerBoxBlockEntity.getAvailableSlots
(Direction side) Gets the available slot positions that are reachable from a given side.private static double
PistonBlockEntity.getIntersectionSize
(Box box, Direction direction, Box box2) private static boolean
HopperBlockEntity.isInventoryEmpty
(Inventory inv, Direction facing) private static boolean
HopperBlockEntity.isInventoryFull
(Inventory inventory, Direction direction) private static void
PistonBlockEntity.moveEntity
(Direction direction, Entity entity, double double2, Direction direction2) 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
JigsawOrientation.facing
private final Direction
JigsawOrientation.rotation
Modifier and TypeMethodDescriptionstatic JigsawOrientation
JigsawOrientation.byDirections
(Direction facing, Direction rotation) private static int
ModifierConstructorDescriptionprivate
JigsawOrientation
(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
ModifierConstructorDescriptionQuad
(ModelPart.Vertex[] vertices, float u1, float v1, float u2, float v2, float squishU, float squishV, boolean flip, Direction direction) -
Uses of Direction in net.minecraft.client.network
Modifier and TypeMethodDescriptionboolean
ClientPlayerInteractionManager.attackBlock
(BlockPos pos, Direction direction) private void
ClientPlayerInteractionManager.sendPlayerAction
(PlayerActionC2SPacket.Action action, 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 TypeMethodDescriptionvoid
WorldRenderer.ChunkInfo.addDirection
(Direction direction) boolean
private ChunkBuilder.BuiltChunk
WorldRenderer.getAdjacentChunk
(BlockPos pos, ChunkBuilder.BuiltChunk chunk, Direction direction) void
WorldRenderer.ChunkInfo.updateCullingState
(byte parentCullingState, Direction from) ModifierConstructorDescription(package private)
ChunkInfo
(ChunkBuilder.BuiltChunk chunk, @Nullable Direction direction, int propagationLevel) -
Uses of Direction in net.minecraft.client.render.block
Modifier and TypeFieldDescription(package private) static final Direction[]
BlockModelRenderer.DIRECTIONS
(package private) final Direction[]
BlockModelRenderer.NeighborData.faces
Modifier and TypeMethodDescriptionvoid
BlockModelRenderer.AmbientOcclusionCalculator.apply
(BlockRenderView world, BlockState state, BlockPos pos, Direction direction, float[] box, BitSet flags, boolean 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
(BlockView world, BlockPos pos, BlockState state, Direction direction) private static boolean
FluidRenderer.isSameFluid
(BlockView world, BlockPos pos, Direction side, FluidState state) private static boolean
FluidRenderer.isSideCovered
(BlockView world, BlockPos pos, Direction direction, float maxDeviation) private static boolean
FluidRenderer.isSideCovered
(BlockView world, Direction direction, float float2, BlockPos pos, BlockState state) static boolean
FluidRenderer.shouldRenderSide
(BlockRenderView world, BlockPos pos, FluidState fluidState, BlockState blockState, Direction direction) 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 void
BedBlockEntityRenderer.renderPart
(MatrixStack matrices, VertexConsumerProvider vertexConsumers, ModelPart part, Direction direction, SpriteIdentifier sprite, int light, int overlay, boolean isFoot) private void
EndPortalBlockEntityRenderer.renderSide
(T entity, Matrix4f model, VertexConsumer vertices, float x1, float x2, float y1, float y2, float z1, float z2, float z3, float z4, Direction side) static void
SkullBlockEntityRenderer.renderSkull
(@Nullable Direction direction, float yaw, float animationProgress, MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light, SkullBlockEntityModel model, RenderLayer renderLayer) -
Uses of Direction in net.minecraft.client.render.chunk
Modifier and TypeFieldDescriptionprivate static final Direction[]
ChunkOcclusionDataBuilder.DIRECTIONS
Modifier and TypeMethodDescriptionfloat
ChunkRendererRegion.getBrightness
(Direction direction, boolean shaded) ChunkBuilder.BuiltChunk.getNeighborPosition
(Direction direction) boolean
ChunkBuilder.ChunkData.isVisibleThrough
(Direction from, Direction to) boolean
ChunkOcclusionData.isVisibleThrough
(Direction from, Direction to) private int
void
ChunkOcclusionData.setVisibleThrough
(Direction from, Direction to, boolean visible) Modifier and TypeMethodDescriptionprivate void
ChunkOcclusionDataBuilder.addEdgeFaces
(int pos, Set<Direction> openFaces) void
ChunkOcclusionData.addOpenEdgeFaces
(Set<Direction> faces) -
Uses of Direction in net.minecraft.client.render.entity
-
Uses of Direction in net.minecraft.client.render.model
Modifier and TypeMethodDescriptionstatic Direction
BakedQuadFactory.decodeDirection
(int[] rotationMatrix) BakedQuad.getFace()
Modifier and TypeMethodDescriptionBakedQuadFactory.bake
(Vec3f from, Vec3f to, ModelElementFace face, Sprite texture, Direction side, ModelBakeSettings settings, @Nullable ModelRotation rotation, boolean shade, Identifier modelId) private void
BakedQuadFactory.encodeDirection
(int[] rotationMatrix, Direction direction) static CubeFace
private void
BakedQuadFactory.packVertexData
(int[] vertices, int cornerIndex, Direction direction, ModelElementTexture texture, float[] positionMatrix, Sprite sprite, AffineTransformation orientation, @Nullable ModelRotation rotation, boolean shaded) private int[]
BakedQuadFactory.packVertexData
(ModelElementTexture texture, Sprite sprite, Direction direction, float[] positionMatrix, AffineTransformation orientation, @Nullable ModelRotation rotation, boolean shaded) static ModelElementTexture
BakedQuadFactory.uvLock
(ModelElementTexture texture, Direction orientation, AffineTransformation rotation, Identifier modelId) ModifierConstructorDescriptionModifierConstructorDescriptionBasicBakedModel
(List<BakedQuad> quads, Map<Direction, List<BakedQuad>> faceQuads, boolean usesAo, boolean isSideLit, boolean hasDepth, Sprite sprite, ModelTransformation transformation, ModelOverrideList itemPropertyOverrides) -
Uses of Direction in net.minecraft.client.render.model.json
Modifier and TypeFieldDescriptionfinal Direction
ModelElementFace.cullFace
private final Direction
ItemModelGenerator.Side.direction
Modifier and TypeMethodDescriptionModelElementFace.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, Identifier id) private float[]
ModelElement.getRotatedMatrix
(Direction direction) ModifierConstructorDescriptionModelElementFace
(@Nullable Direction cullFace, int tintIndex, String textureId, ModelElementTexture textureData) private
ModifierConstructorDescriptionModelElement
(Vec3f from, Vec3f to, Map<Direction, ModelElementFace> faces, @Nullable ModelRotation rotation, boolean shade) -
Uses of Direction in net.minecraft.client.util
Modifier and TypeMethodDescriptionstatic void
ParticleUtil.spawnParticle
(World world, BlockPos pos, Direction direction, ParticleEffect effect) -
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.model
Modifier and TypeMethodDescriptionprivate static BlockStateVariantMap.QuadrupleProperty<Direction,
DoubleBlockHalf, DoorHinge, Boolean> BlockStateModelGenerator.fillDoorVariantMap
(BlockStateVariantMap.QuadrupleProperty<Direction, DoubleBlockHalf, DoorHinge, Boolean> variantMap, DoubleBlockHalf targetHalf, Identifier regularModel, Identifier hingeModel) 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 regularModel, Identifier hingeModel) -
Uses of Direction in net.minecraft.entity
Modifier and TypeMethodDescriptionEntity.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.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 void
protected void
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
ModifierConstructorDescriptionPaintingEntity
(World world, BlockPos pos, Direction direction) PaintingEntity
(World world, BlockPos pos, Direction direction, PaintingMotive motive) -
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
(Direction direction, float extraLength) static Box
ShulkerEntity.calculateBoundingBox
(Direction direction, float prevExtraLength, float extraLength) (package private) boolean
private void
ShulkerEntity.setAttachedFace
(Direction face) -
Uses of Direction in net.minecraft.entity.player
Modifier and TypeMethodDescriptionboolean
PlayerEntity.canPlaceOn
(BlockPos pos, Direction facing, ItemStack stack) -
Uses of Direction in net.minecraft.entity.projectile
Modifier and TypeMethodDescriptionprivate void
ShulkerBulletEntity.setDirection
(@Nullable Direction direction) -
Uses of Direction in net.minecraft.entity.vehicle
Modifier and TypeMethodDescriptionAbstractMinecartEntity.getMovementDirection()
BoatEntity.getMovementDirection()
-
Uses of Direction in net.minecraft.fluid
Modifier and TypeMethodDescriptionprotected Map<Direction,
FluidState> FlowableFluid.getSpread
(WorldView world, BlockPos pos, BlockState state) Modifier and TypeMethodDescriptionboolean
EmptyFluid.canBeReplacedWith
(FluidState state, BlockView world, BlockPos pos, Fluid fluid, Direction direction) protected abstract boolean
Fluid.canBeReplacedWith
(FluidState state, BlockView world, BlockPos pos, Fluid fluid, Direction direction) boolean
FluidState.canBeReplacedWith
(BlockView world, BlockPos pos, Fluid fluid, Direction direction) boolean
LavaFluid.canBeReplacedWith
(FluidState state, BlockView world, BlockPos pos, Fluid fluid, Direction direction) boolean
WaterFluid.canBeReplacedWith
(FluidState state, BlockView world, BlockPos pos, Fluid fluid, Direction direction) protected boolean
FlowableFluid.canFlow
(BlockView world, BlockPos fluidPos, BlockState fluidBlockState, Direction flowDirection, BlockPos flowTo, BlockState flowToBlockState, FluidState fluidState, Fluid fluid) private boolean
FlowableFluid.canFlowThrough
(BlockView world, Fluid fluid, BlockPos pos, BlockState state, Direction face, BlockPos fromPos, BlockState fromState, FluidState fluidState) protected void
FlowableFluid.flow
(WorldAccess world, BlockPos pos, BlockState state, Direction direction, FluidState fluidState) protected void
LavaFluid.flow
(WorldAccess world, BlockPos pos, BlockState state, Direction direction, FluidState fluidState) protected int
FlowableFluid.method_15742
(WorldView world, BlockPos blockPos, int int2, Direction direction, BlockState blockState, BlockPos blockPos2, Short2ObjectMap<com.mojang.datafixers.util.Pair<BlockState, FluidState>> short2ObjectMap, Short2BooleanMap short2BooleanMap) protected boolean
FlowableFluid.method_15749
(BlockView world, BlockPos pos, Direction direction) private boolean
FlowableFluid.receivesFlow
(Direction face, BlockView world, BlockPos pos, BlockState state, BlockPos fromPos, BlockState fromState) -
Uses of Direction in net.minecraft.inventory
Modifier and TypeMethodDescriptionboolean
SidedInventory.canExtract
(int slot, ItemStack stack, Direction dir) Determines whether the given stack can be removed from this inventory at the specified slot position from the given direction.boolean
Determines whether the given stack can be inserted into this inventory at the specified slot position from the given direction.int[]
SidedInventory.getAvailableSlots
(Direction side) Gets the available slot positions that are reachable from a given side. -
Uses of Direction in net.minecraft.item
Modifier and TypeMethodDescriptionAutomaticItemPlacementContext.getPlacementDirections()
ItemPlacementContext.getPlacementDirections()
AutomaticItemPlacementContext.getPlayerFacing()
ItemUsageContext.getPlayerFacing()
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) static ItemPlacementContext
ItemPlacementContext.offset
(ItemPlacementContext context, BlockPos pos, Direction side) static boolean
BoneMealItem.useOnGround
(ItemStack stack, World world, BlockPos blockPos, @Nullable Direction facing) -
Uses of Direction in net.minecraft.network.packet.c2s.play
ModifierConstructorDescriptionPlayerActionC2SPacket
(PlayerActionC2SPacket.Action action, BlockPos pos, Direction direction) -
Uses of Direction in net.minecraft.network.packet.s2c.play
-
Uses of Direction in net.minecraft.server.network
Modifier and TypeMethodDescriptionprivate boolean
ServerPlayerEntity.isBedObstructed
(BlockPos pos, Direction direction) private boolean
ServerPlayerEntity.isBedTooFarAway
(BlockPos pos, Direction direction) void
DemoServerPlayerInteractionManager.processBlockBreakingAction
(BlockPos pos, PlayerActionC2SPacket.Action action, Direction direction, int worldHeight) void
ServerPlayerInteractionManager.processBlockBreakingAction
(BlockPos pos, PlayerActionC2SPacket.Action action, Direction direction, int worldHeight) -
Uses of Direction in net.minecraft.server.world
Modifier and TypeMethodDescriptionfloat
ServerWorld.getBrightness
(Direction direction, boolean shaded) -
Uses of Direction in net.minecraft.state.property
Modifier and TypeMethodDescriptionstatic DirectionProperty
Creates a direction property with the given values.Modifier and TypeMethodDescriptionstatic DirectionProperty
DirectionProperty.of
(String name, Collection<Direction> values) Creates a direction property with the given values.static DirectionProperty
Creates a direction property with the values allowed by the given filter out of all 6 directions.ModifierConstructorDescriptionprotected
DirectionProperty
(String name, Collection<Direction> values) -
Uses of Direction in net.minecraft.structure
Modifier and TypeFieldDescriptionprivate final Direction
MineshaftGenerator.MineshaftCrossing.direction
StructurePiece.facing
Modifier and TypeMethodDescriptionStructurePiece.getFacing()
protected static Direction
StructurePiece.getRandomHorizontalDirection
(Random random) WoodlandMansionGenerator.MansionParameters.method_15040
(WoodlandMansionGenerator.FlagMatrix flagMatrix, int int2, int int3, int int4, int int5) Modifier and TypeMethodDescriptionprivate void
WoodlandMansionGenerator.LayoutGenerator.addBigRoom
(List<WoodlandMansionGenerator.Piece> pieces, BlockPos pos, BlockRotation rotation, Direction direction, Direction direction2, WoodlandMansionGenerator.RoomPool roomPool) protected boolean
StructurePiece.addDispenser
(StructureWorldAccess world, BlockBox boundingBox, Random random, int x, int y, int z, Direction facing, Identifier lootTableId) private void
WoodlandMansionGenerator.LayoutGenerator.addMediumRoom
(List<WoodlandMansionGenerator.Piece> pieces, BlockPos pos, BlockRotation rotation, Direction direction, Direction direction2, WoodlandMansionGenerator.RoomPool roomPool, boolean staircase) private void
WoodlandMansionGenerator.LayoutGenerator.addRoof
(List<WoodlandMansionGenerator.Piece> pieces, WoodlandMansionGenerator.GenerationPiece generationPiece, WoodlandMansionGenerator.FlagMatrix flagMatrix, Direction direction, int int2, int int3, int int4, int int5) private void
WoodlandMansionGenerator.LayoutGenerator.addSmallRoom
(List<WoodlandMansionGenerator.Piece> pieces, BlockPos pos, BlockRotation rotation, Direction direction, WoodlandMansionGenerator.RoomPool roomPool) NetherFortressGenerator.Bridge.create
(StructurePiecesHolder holder, Random random, int x, int y, int z, Direction orientation, int chainLength) NetherFortressGenerator.BridgeCrossing.create
(StructurePiecesHolder holder, int x, int y, int z, Direction orientation, int chainLength) NetherFortressGenerator.BridgeEnd.create
(StructurePiecesHolder holder, Random random, int x, int y, int z, Direction orientation, int chainLength) NetherFortressGenerator.BridgePlatform.create
(StructurePiecesHolder holder, int x, int y, int z, int chainLength, Direction orientation) NetherFortressGenerator.BridgeSmallCrossing.create
(StructurePiecesHolder holder, int x, int y, int z, Direction orientation, int chainLength) NetherFortressGenerator.BridgeStairs.create
(StructurePiecesHolder holder, int x, int y, int z, int chainlength, Direction orientation) NetherFortressGenerator.CorridorBalcony.create
(StructurePiecesHolder holder, int x, int y, int z, Direction orientation, int chainLength) NetherFortressGenerator.CorridorCrossing.create
(StructurePiecesHolder holder, int x, int y, int z, Direction orientation, int chainLength) NetherFortressGenerator.CorridorExit.create
(StructurePiecesHolder holder, Random random, int x, int y, int z, Direction orientation, int chainLength) NetherFortressGenerator.CorridorLeftTurn.create
(StructurePiecesHolder holder, Random random, int x, int y, int z, Direction orientation, int chainLength) NetherFortressGenerator.CorridorNetherWartsRoom.create
(StructurePiecesHolder holder, int x, int y, int z, Direction orientation, int chainlength) NetherFortressGenerator.CorridorRightTurn.create
(StructurePiecesHolder holder, Random random, int x, int y, int z, Direction orientation, int chainLength) NetherFortressGenerator.CorridorStairs.create
(StructurePiecesHolder holder, int x, int y, int z, Direction orientation, int chainLength) NetherFortressGenerator.SmallCorridor.create
(StructurePiecesHolder holder, int x, int y, int z, Direction orientation, int chainLength) StrongholdGenerator.ChestCorridor.create
(StructurePiecesHolder holder, Random random, int x, int y, int z, Direction orientation, int chainlength) static StrongholdGenerator.Corridor
StrongholdGenerator.Corridor.create
(StructurePiecesHolder holder, Random random, int x, int y, int z, Direction orientation, int chainLength) StrongholdGenerator.FiveWayCrossing.create
(StructurePiecesHolder holder, Random random, int x, int y, int z, Direction orientation, int chainLength) static StrongholdGenerator.LeftTurn
StrongholdGenerator.LeftTurn.create
(StructurePiecesHolder holder, Random random, int x, int y, int z, Direction orientation, int chainLength) static StrongholdGenerator.Library
StrongholdGenerator.Library.create
(StructurePiecesHolder holder, Random random, int x, int y, int z, Direction orientation, int chainLength) StrongholdGenerator.PortalRoom.create
(StructurePiecesHolder holder, int x, int y, int z, Direction orientation, int chainLength) StrongholdGenerator.PrisonHall.create
(StructurePiecesHolder holder, Random random, int x, int y, int z, Direction orientation, int chainLength) StrongholdGenerator.RightTurn.create
(StructurePiecesHolder holder, Random random, int x, int y, int z, Direction orientation, int chainLength) static BlockBox
StrongholdGenerator.SmallCorridor.create
(StructurePiecesHolder holder, Random random, int x, int y, int z, Direction orientation) StrongholdGenerator.SpiralStaircase.create
(StructurePiecesHolder holder, Random random, int x, int y, int z, Direction orientation, int chainLength) StrongholdGenerator.SquareRoom.create
(StructurePiecesHolder holder, Random random, int x, int y, int z, Direction orientation, int chainLength) static StrongholdGenerator.Stairs
StrongholdGenerator.Stairs.create
(StructurePiecesHolder holder, Random random, int x, int y, int z, Direction orientation, int chainLength) private static BlockBox
OceanMonumentGenerator.Piece.createBox
(Direction orientation, OceanMonumentGenerator.PieceSetting setting, int int2, int int3, int int4) protected static BlockBox
StructurePiece.createBox
(int x, int y, int z, Direction orientation, int width, int height, int depth) (package private) static NetherFortressGenerator.Piece
NetherFortressGenerator.createPiece
(NetherFortressGenerator.PieceData pieceData, StructurePiecesHolder holder, Random random, int x, int y, int z, Direction orientation, int chainLength) private static StrongholdGenerator.Piece
StrongholdGenerator.createPiece
(Class<? extends StrongholdGenerator.Piece> pieceType, StructurePiecesHolder holder, Random random, int x, int y, int z, @Nullable Direction orientation, int chainLength) OceanMonumentGenerator.DoubleXRoomFactory.generate
(Direction direction, OceanMonumentGenerator.PieceSetting setting, Random random) OceanMonumentGenerator.DoubleXYRoomFactory.generate
(Direction direction, OceanMonumentGenerator.PieceSetting setting, Random random) OceanMonumentGenerator.DoubleYRoomFactory.generate
(Direction direction, OceanMonumentGenerator.PieceSetting setting, Random random) OceanMonumentGenerator.DoubleYZRoomFactory.generate
(Direction direction, OceanMonumentGenerator.PieceSetting setting, Random random) OceanMonumentGenerator.DoubleZRoomFactory.generate
(Direction direction, OceanMonumentGenerator.PieceSetting setting, Random random) OceanMonumentGenerator.PieceFactory.generate
(Direction direction, OceanMonumentGenerator.PieceSetting setting, Random random) OceanMonumentGenerator.SimpleRoomFactory.generate
(Direction direction, OceanMonumentGenerator.PieceSetting setting, Random random) OceanMonumentGenerator.SimpleRoomTopFactory.generate
(Direction direction, OceanMonumentGenerator.PieceSetting setting, Random random) MineshaftGenerator.MineshaftCorridor.getBoundingBox
(StructurePiecesHolder structurePiecesHolder, 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.method_15045
(WoodlandMansionGenerator.FlagMatrix flagMatrix, int int2, int int3, Direction direction, int int4) private static MineshaftGenerator.MineshaftPart
MineshaftGenerator.pickPiece
(StructurePiecesHolder holder, Random random, int x, int y, int z, @Nullable Direction orientation, int chainLength, MineshaftFeature.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, MineshaftFeature.Type type) MineshaftCrossing
(int chainLength, BlockBox boundingBox, @Nullable Direction orientation, MineshaftFeature.Type type) MineshaftStairs
(int chainLength, BlockBox boundingBox, Direction orientation, MineshaftFeature.Type type) protected
Piece
(StructurePieceType type, int length, Direction orientation, OceanMonumentGenerator.PieceSetting setting, int int2, int int3, int int4) Piece
(StructurePieceType type, Direction orientation, int length, BlockBox box) PortalRoom
(int chainLength, BlockBox boundingBox, Direction orientation) PrisonHall
(int chainLength, Random random, BlockBox boundingBox, Direction orientation) protected
ShiftableStructurePiece
(StructurePieceType type, int x, int y, int z, int width, int height, int depth, Direction orientation) SimpleRoom
(Direction orientation, OceanMonumentGenerator.PieceSetting setting, Random random) SimpleRoomTop
(Direction orientation, OceanMonumentGenerator.PieceSetting setting) SmallCorridor
(int chainLength, BlockBox boundingBox, Direction orientation) SmallCorridor
(int chainLength, BlockBox boundingBox, Direction orientation) SpiralStaircase
(int chainLength, Random random, BlockBox boundingBox, Direction orientation) SpiralStaircase
(StructurePieceType structurePieceType, int chainLength, int x, int z, Direction orientation) SquareRoom
(int chainLength, Random random, BlockBox boundingBox, Direction orientation) -
Uses of Direction in net.minecraft.util
Modifier and TypeMethodDescription -
Uses of Direction in net.minecraft.util.hit
Modifier and TypeMethodDescriptionstatic BlockHitResult
BlockHitResult.createMissed
(Vec3d pos, Direction side, BlockPos blockPos) ModifierConstructorDescriptionprivate
BlockHitResult
(boolean missed, Vec3d pos, Direction side, BlockPos blockPos, boolean insideBlock) BlockHitResult
(Vec3d pos, Direction side, BlockPos blockPos, boolean insideBlock) -
Uses of Direction in net.minecraft.util.math
Modifier and TypeFieldDescriptionprivate static final Direction[]
Direction.ALL
private final Direction
VerticalSurfaceType.direction
private final Direction[]
Direction.Type.facingArray
private static final Direction[]
Direction.HORIZONTAL
private static final Direction[]
Direction.VALUES
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<Direction>
Direction.CODEC
static final Map<Direction,
AffineTransformation> AffineTransformations.DIRECTION_ROTATIONS
EightWayDirection.directions
static final Map<Direction,
AffineTransformation> AffineTransformations.INVERTED_DIRECTION_ROTATIONS
DirectionTransformation.mappings
DirectionTransformation.mappings
Direction.NAME_MAP
private static final Long2ObjectMap<Direction>
Direction.VECTOR_TO_DIRECTION
static final com.mojang.serialization.Codec<Direction>
Direction.VERTICAL_CODEC
Modifier and TypeMethodDescriptionstatic Direction
Direction.byId
(int id) 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) Direction.fromVector
(BlockPos pos) static Direction
Direction.get
(Direction.AxisDirection direction, Direction.Axis axis) VerticalSurfaceType.getDirection()
static Direction[]
Direction.getEntityFacingOrder
(Entity entity) static Direction
Direction.getFacing
(double x, double y, double z) static Direction
Direction.getFacing
(float x, float y, float z) static Direction
Direction.getLookDirectionForAxis
(Entity entity, Direction.Axis axis) Direction.getOpposite()
private static Direction[]
Direction.listClosest
(Direction first, Direction second, Direction third) Helper function that returns the 3 directions given, followed by the 3 opposite given in opposite order.static Direction
Direction.rotateClockwise
(Direction.Axis axis) Direction.rotateCounterclockwise
(Direction.Axis axis) private Direction
Direction.rotateXClockwise()
private Direction
Direction.rotateXCounterclockwise()
Direction.rotateYClockwise()
Direction.rotateYCounterclockwise()
private Direction
Direction.rotateZClockwise()
private Direction
Direction.rotateZCounterclockwise()
Box.traceCollisionSide
(double[] traceDistanceResult, @Nullable Direction approachDirection, double deltaX, double deltaY, double deltaZ, double begin, double minX, double maxX, double minZ, double maxZ, Direction resultDirection, double startX, double startY, double startZ) Box.traceCollisionSide
(Box box, Vec3d intersectingVector, double[] traceDistanceResult, @Nullable Direction approachDirection, double deltaX, double deltaY, double deltaZ) static Direction
static Direction
Returns the enum constant of this class with the specified name.static Direction[]
Direction.values()
Returns an array containing the constants of this enum class, in the order they are declared.Modifier and TypeMethodDescriptionEightWayDirection.getDirections()
Direction.Type.iterator()
Direction.Type.stream()
private static com.mojang.serialization.DataResult<Direction>
Direction.validateVertical
(Direction direction) Modifier and TypeMethodDescriptionstatic 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
Box.traceCollisionSide
(double[] traceDistanceResult, @Nullable Direction approachDirection, double deltaX, double deltaY, double deltaZ, double begin, double minX, double maxX, double minZ, double maxZ, Direction resultDirection, double startX, double startY, double startZ) Box.traceCollisionSide
(Box box, Vec3d intersectingVector, double[] traceDistanceResult, @Nullable Direction approachDirection, double deltaX, double deltaY, double deltaZ) static Direction
static AffineTransformation
AffineTransformations.uvLock
(AffineTransformation affineTransformation, Direction direction, Supplier<String> supplier) private static com.mojang.serialization.DataResult<Direction>
Direction.validateVertical
(Direction direction) ModifierConstructorDescriptionprivate
EightWayDirection
(Direction[] directions) private
Type
(Direction[] facingArray, Direction.Axis[] axisArray) private
VerticalSurfaceType
(Direction direction, int offset, String name) -
Uses of Direction in net.minecraft.util.shape
Modifier and TypeMethodDescriptionstatic boolean
VoxelShapes.adjacentSidesCoverSquare
(VoxelShape one, VoxelShape two, Direction direction) void
static VoxelShape
VoxelShapes.extrudeFace
(VoxelShape shape, Direction direction) private VoxelShape
VoxelShape.getUncachedFace
(Direction direction) static boolean
VoxelShapes.isSideCovered
(VoxelShape shape, VoxelShape neighbor, Direction direction) -
Uses of Direction in net.minecraft.world
Modifier and TypeMethodDescriptionBlockLocating.findColumnEnd
(BlockView world, BlockPos pos, Block intermediateBlock, Direction direction, Block endBlock) Finds an end to a block column starting frompos
extending indirection
.float
BlockRenderView.getBrightness
(Direction direction, boolean shaded) float
ChunkRegion.getBrightness
(Direction direction, boolean shaded) int
World.getEmittedRedstonePower
(BlockPos pos, Direction direction) default int
WorldView.getStrongRedstonePower
(BlockPos pos, Direction direction) boolean
World.isDirectionSolid
(BlockPos pos, Entity entity, Direction direction) boolean
World.isEmittingRedstonePower
(BlockPos pos, Direction direction) private boolean
PortalForcer.isValidPortalPos
(BlockPos pos, BlockPos.Mutable temp, Direction portalDirection, int distanceOrthogonalToPortal) private static int
BlockLocating.moveWhile
(Predicate<BlockPos> predicate, BlockPos.Mutable pos, Direction direction, int max) void
World.updateNeighborsExcept
(BlockPos pos, Block sourceBlock, Direction direction) -
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 TypeFieldDescriptionprivate static final Direction[]
ChunkBlockLightProvider.DIRECTIONS
private static final Direction[]
ChunkLightProvider.DIRECTIONS
private static final Direction[]
ChunkSkyLightProvider.DIRECTIONS
private static final Direction[]
LightStorage.DIRECTIONS
private static final Direction[]
ChunkSkyLightProvider.HORIZONTAL_DIRECTIONS
private static final Direction[]
SkyLightStorage.LIGHT_REDUCTION_DIRECTIONS
Modifier and TypeMethodDescriptionprotected VoxelShape
ChunkLightProvider.getOpaqueShape
(BlockState world, long pos, Direction facing) static int
ChunkLightProvider.getRealisticOpacity
(BlockView world, BlockState state1, BlockPos pos1, BlockState state2, BlockPos pos2, Direction direction, int opacity2) -
Uses of Direction in net.minecraft.world.dimension
-
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.decorator
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.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 TypeMethodDescriptionBlockColumnFeatureConfig.direction()
Returns the value of thedirection
record component.Modifier and TypeMethodDescriptionSmallDripstoneFeature.getDirection
(WorldAccess world, BlockPos pos, Random random) GlowLichenFeature.shuffleDirections
(GlowLichenFeatureConfig config, Random random) GlowLichenFeature.shuffleDirections
(GlowLichenFeatureConfig config, Random random, Direction excluded) Modifier and TypeMethodDescriptionprivate static 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) GlowLichenFeature.shuffleDirections
(GlowLichenFeatureConfig config, Random random, Direction excluded) Modifier and TypeMethodDescriptionstatic boolean
GlowLichenFeature.generate
(StructureWorldAccess world, BlockPos pos, BlockState state, GlowLichenFeatureConfig 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
AbstractBlock.AbstractBlockState.getStateForNeighborUpdate(net.minecraft.util.math.Direction, net.minecraft.block.BlockState, net.minecraft.world.WorldAccess, net.minecraft.util.math.BlockPos, net.minecraft.util.math.BlockPos)
instead.