Uses of Enum Class
net.minecraft.util.math.Direction
Package
Description
-
Uses of Direction in net.minecraft.block
Modifier and TypeFieldDescriptionprivate static Direction[]
AbstractBlock.AbstractBlockState.ShapeCache.DIRECTIONS
protected static Direction[]
AbstractBlock.DIRECTIONS
protected static Direction[]
AbstractLichenBlock.DIRECTIONS
private static Direction[]
BuddingAmethystBlock.DIRECTIONS
private Direction
Block.NeighborGroup.facing
private static Direction[]
ConnectingBlock.FACINGS
private static Direction[]
BeehiveBlock.GENERATE_DIRECTIONS
protected Direction
AbstractPlantPartBlock.growthDirection
Modifier and TypeFieldDescriptionprivate static Map<Direction,VoxelShape>
WallTorchBlock.BOUNDING_SHAPES
private static Map<Direction,BooleanProperty>
FireBlock.DIRECTION_PROPERTIES
static Map<Direction,EnumProperty<WireConnection>>
RedstoneWireBlock.DIRECTION_TO_WIRE_CONNECTION_PROPERTY
static EnumProperty<Direction>
ShulkerBoxBlock.FACING
private static Map<Direction,BooleanProperty>
AbstractLichenBlock.FACING_PROPERTIES
static Map<Direction,BooleanProperty>
ConnectingBlock.FACING_PROPERTIES
protected static Map<Direction,BooleanProperty>
HorizontalConnectingBlock.FACING_PROPERTIES
private static Map<Direction,BooleanProperty>
MushroomBlock.FACING_PROPERTIES
private static Map<Direction,BooleanProperty>
TripwireBlock.FACING_PROPERTIES
static Map<Direction,BooleanProperty>
VineBlock.FACING_PROPERTIES
private static Map<Direction,VoxelShape>
AttachedStemBlock.FACING_TO_SHAPE
private static Map<Direction,VoxelShape>
DeadCoralWallFanBlock.FACING_TO_SHAPE
private static Map<Direction,VoxelShape>
WallBannerBlock.FACING_TO_SHAPE
private static Map<Direction,VoxelShape>
WallSignBlock.FACING_TO_SHAPE
private static Map<Direction,VoxelShape>
WallSkullBlock.FACING_TO_SHAPE
private static Map<Direction,VoxelShape>
RedstoneWireBlock.field_24414
private static Map<Direction,VoxelShape>
RedstoneWireBlock.field_24415
private static Map<Direction,VoxelShape>
BigDripleafBlock.SHAPES_FOR_DIRECTION
private static 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 bool)
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
ComposterBlock.FullComposterInventory.canInsert(int slot, ItemStack stack, @Nullable Direction dir)
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 direction, Direction direction2)
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)
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.int
AbstractBlock.AbstractBlockState.getStrongRedstonePower(BlockView world, BlockPos pos, Direction direction)
int
AbstractBlock.getStrongRedstonePower(BlockState state, BlockView world, BlockPos pos, Direction direction)
Deprecated.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)
Deprecated.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)
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 BlockState
WallBlock.method_24423(WorldView worldView, BlockPos blockPos, BlockState blockState, BlockPos blockPos2, BlockState blockState2, Direction direction)
private static int[][]
BedBlock.method_30837(Direction direction)
private static int[][]
BedBlock.method_30838(Direction direction, Direction direction2)
private static int[][]
BedBlock.method_30840(Direction direction, Direction direction2)
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 bool)
boolean
AbstractLichenBlock.trySpreadTo(BlockState state, WorldAccess world, BlockPos pos, Direction from, Direction to, boolean bool)
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 offset, 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 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 direction)
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 Direction
JigsawOrientation.facing
private 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 Direction
BlockPattern.Result.forwards
private Direction
BlockPattern.Result.up
Modifier and TypeMethodDescriptionBlockPattern.method_35300(WorldView worldView, BlockPos blockPos, Direction direction, Direction direction2)
private @Nullable BlockPattern.Result
BlockPattern.testTransform(BlockPos frontTopLeft, Direction forwards, Direction up, LoadingCache<BlockPos,CachedBlockPosition> cache)
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 Direction
PistonHandler.motionDirection
private 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 builtChunk, @Nullable Direction direction, int int2)
-
Uses of Direction in net.minecraft.client.render.block
Modifier and TypeFieldDescription(package private) static Direction[]
BlockModelRenderer.DIRECTIONS
(package private) 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.isSameFluid(BlockView world, BlockPos pos, Direction side, FluidState state)
private static boolean
FluidRenderer.isSideCovered(BlockView world, BlockPos pos, Direction direction, float maxDeviation)
static boolean
FluidRenderer.method_29708(BlockRenderView blockRenderView, BlockPos blockPos, FluidState fluidState, BlockState blockState, Direction direction)
private static boolean
FluidRenderer.method_29709(BlockView blockView, BlockPos blockPos, BlockState blockState, Direction direction)
private static boolean
FluidRenderer.method_29710(BlockView blockView, Direction direction, float float2, BlockPos blockPos, BlockState blockState)
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 bool)
-
Uses of Direction in net.minecraft.client.render.block.entity
Modifier and TypeMethodDescriptionprivate void
BedBlockEntityRenderer.renderPart(MatrixStack matrix, VertexConsumerProvider vertexConsumers, ModelPart modelPart, 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 direction)
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 TypeMethodDescriptionfloat
ChunkRendererRegion.getBrightness(Direction direction, boolean shaded)
ChunkBuilder.BuiltChunk.getNeighborPosition(Direction direction)
boolean
ChunkBuilder.ChunkData.isVisibleThrough(Direction direction, Direction direction2)
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 TypeFieldDescriptionModelElementFace.cullFace
private 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 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 TypeFieldDescriptionprivate Direction
SilverfishEntity.WanderAndInfestGoal.direction
Modifier and TypeFieldDescriptionprotected static TrackedData<Direction>
ShulkerEntity.ATTACHED_FACE
Modifier and TypeMethodDescriptionShulkerEntity.findAttachSide(BlockPos pos)
ShulkerEntity.getAttachedFace()
Modifier and TypeMethodDescription(package private) boolean
static Box
ShulkerEntity.method_33346(Direction direction, float float2)
static Box
ShulkerEntity.method_33347(Direction direction, float float2, float float3)
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 Direction
MineshaftGenerator.MineshaftCrossing.direction
StructurePiece.facing
Modifier and TypeMethodDescriptionStructurePiece.getFacing()
WoodlandMansionGenerator.MansionParameters.method_15040(WoodlandMansionGenerator.FlagMatrix flagMatrix, int int2, int int3, int int4, int int5)
protected static Direction
StructurePiece.method_35457(Random random)
Modifier and TypeMethodDescriptionprivate void
WoodlandMansionGenerator.LayoutGenerator.addBigRoom(List<WoodlandMansionGenerator.Piece> list, BlockPos blockPos, BlockRotation blockRotation, 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> list, BlockPos blockPos, BlockRotation blockRotation, Direction direction, WoodlandMansionGenerator.RoomPool roomPool)
NetherFortressGenerator.Bridge.create(StructurePiecesHolder structurePiecesHolder, Random random, int x, int y, int z, Direction orientation, int chainLength)
NetherFortressGenerator.BridgeCrossing.create(StructurePiecesHolder structurePiecesHolder, int x, int y, int z, Direction orientation, int chainLength)
NetherFortressGenerator.BridgeEnd.create(StructurePiecesHolder structurePiecesHolder, Random random, int x, int y, int z, Direction orientation, int chainLength)
NetherFortressGenerator.BridgePlatform.create(StructurePiecesHolder structurePiecesHolder, int x, int y, int z, int chainLength, Direction orientation)
NetherFortressGenerator.BridgeSmallCrossing.create(StructurePiecesHolder structurePiecesHolder, int x, int y, int z, Direction orientation, int chainLength)
NetherFortressGenerator.BridgeStairs.create(StructurePiecesHolder structurePiecesHolder, int x, int y, int z, int chainlength, Direction orientation)
NetherFortressGenerator.CorridorBalcony.create(StructurePiecesHolder structurePiecesHolder, int x, int y, int z, Direction orientation, int chainLength)
NetherFortressGenerator.CorridorCrossing.create(StructurePiecesHolder structurePiecesHolder, int x, int y, int z, Direction orientation, int chainLength)
NetherFortressGenerator.CorridorExit.create(StructurePiecesHolder structurePiecesHolder, Random random, int x, int y, int z, Direction orientation, int chainLength)
NetherFortressGenerator.CorridorLeftTurn.create(StructurePiecesHolder structurePiecesHolder, Random random, int x, int y, int z, Direction orientation, int chainLength)
NetherFortressGenerator.CorridorNetherWartsRoom.create(StructurePiecesHolder structurePiecesHolder, int x, int y, int z, Direction orientation, int chainlength)
NetherFortressGenerator.CorridorRightTurn.create(StructurePiecesHolder structurePiecesHolder, Random random, int x, int y, int z, Direction orientation, int chainLength)
NetherFortressGenerator.CorridorStairs.create(StructurePiecesHolder structurePiecesHolder, int x, int y, int z, Direction orientation, int chainLength)
NetherFortressGenerator.SmallCorridor.create(StructurePiecesHolder structurePiecesHolder, int x, int y, int z, Direction orientation, int chainLength)
StrongholdGenerator.ChestCorridor.create(StructurePiecesHolder structurePiecesHolder, Random random, int x, int y, int z, Direction orientation, int chainlength)
static StrongholdGenerator.Corridor
StrongholdGenerator.Corridor.create(StructurePiecesHolder structurePiecesHolder, Random random, int x, int y, int z, Direction orientation, int chainLength)
StrongholdGenerator.FiveWayCrossing.create(StructurePiecesHolder structurePiecesHolder, Random random, int x, int y, int z, Direction orientation, int chainLength)
static StrongholdGenerator.LeftTurn
StrongholdGenerator.LeftTurn.create(StructurePiecesHolder structurePiecesHolder, Random random, int x, int y, int z, Direction orientation, int chainLength)
static StrongholdGenerator.Library
StrongholdGenerator.Library.create(StructurePiecesHolder structurePiecesHolder, Random random, int x, int y, int z, Direction orientation, int chainLength)
StrongholdGenerator.PortalRoom.create(StructurePiecesHolder structurePiecesHolder, int x, int y, int z, Direction orientation, int chainLength)
StrongholdGenerator.PrisonHall.create(StructurePiecesHolder structurePiecesHolder, Random random, int x, int y, int z, Direction orientation, int chainLength)
StrongholdGenerator.RightTurn.create(StructurePiecesHolder structurePiecesHolder, Random random, int x, int y, int z, Direction orientation, int chainLength)
static BlockBox
StrongholdGenerator.SmallCorridor.create(StructurePiecesHolder structurePiecesHolder, Random random, int x, int y, int z, Direction orientation)
StrongholdGenerator.SpiralStaircase.create(StructurePiecesHolder structurePiecesHolder, Random random, int x, int y, int z, Direction orientation, int chainLength)
StrongholdGenerator.SquareRoom.create(StructurePiecesHolder structurePiecesHolder, Random random, int x, int y, int z, Direction orientation, int chainLength)
static StrongholdGenerator.Stairs
StrongholdGenerator.Stairs.create(StructurePiecesHolder structurePiecesHolder, Random random, int x, int y, int z, Direction orientation, int chainLength)
(package private) static NetherFortressGenerator.Piece
NetherFortressGenerator.createPiece(NetherFortressGenerator.PieceData pieceData, StructurePiecesHolder structurePiecesHolder, Random random, int x, int y, int z, Direction orientation, int chainLength)
private static StrongholdGenerator.Piece
StrongholdGenerator.createPiece(Class<? extends StrongholdGenerator.Piece> pieceType, StructurePiecesHolder structurePiecesHolder, 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 structurePiecesHolder, Random random, int x, int y, int z, Direction orientation)
MineshaftGenerator.MineshaftStairs.getBoundingBox(StructurePiecesHolder structurePiecesHolder, 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 BlockBox
OceanMonumentGenerator.Piece.method_35445(Direction direction, OceanMonumentGenerator.PieceSetting pieceSetting, int int2, int int3, int int4)
protected static BlockBox
StructurePiece.method_35454(int int2, int int3, int int4, Direction direction, int int5, int int6, int int7)
private static MineshaftGenerator.MineshaftPart
MineshaftGenerator.pickPiece(StructurePiecesHolder structurePiecesHolder, 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 structurePiecesHolder, Random random, int x, int y, int z, Direction orientation, int chainLength)
private static StrongholdGenerator.Piece
StrongholdGenerator.pickPiece(StrongholdGenerator.Start start, StructurePiecesHolder structurePiecesHolder, Random random, int x, int y, int z, Direction orientation, int chainLength)
(package private) static MineshaftGenerator.MineshaftPart
MineshaftGenerator.pieceGenerator(StructurePiece start, StructurePiecesHolder structurePiecesHolder, Random random, int x, int y, int z, Direction orientation, int chainLength)
private StructurePiece
NetherFortressGenerator.Piece.pieceGenerator(NetherFortressGenerator.Start start, StructurePiecesHolder structurePiecesHolder, 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 structurePiecesHolder, 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 int2, int int3, Direction direction)
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 direction, OceanMonumentGenerator.PieceSetting pieceSetting)
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 int2, BlockBox blockBox)
PortalRoom(int chainLength, BlockBox boundingBox, Direction orientation)
PrisonHall(int chainLength, Random random, BlockBox boundingBox, Direction orientation)
SimpleRoom(Direction orientation, OceanMonumentGenerator.PieceSetting setting, Random random)
SimpleRoomTop(Direction direction, 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 int2, int x, Direction direction)
SquareRoom(int chainLength, Random random, BlockBox boundingBox, Direction orientation)
protected
StructurePieceWithDimensions(StructurePieceType type, int int2, int x, int y, int z, int width, int height, Direction direction)
-
Uses of Direction in net.minecraft.util
Modifier and TypeMethodDescription -
Uses of Direction in net.minecraft.util.hit
Modifier and TypeMethodDescriptionstatic BlockHitResult
BlockHitResult.createMissed(Vec3d pos, Direction side, BlockPos blockPos)
ModifierConstructorDescriptionprivate
BlockHitResult(boolean missed, Vec3d pos, Direction side, BlockPos blockPos, boolean insideBlock)
BlockHitResult(Vec3d pos, Direction side, BlockPos blockPos, boolean insideBlock)
-
Uses of Direction in net.minecraft.util.math
Modifier and TypeFieldDescriptionprivate static Direction[]
Direction.ALL
private Direction
VerticalSurfaceType.direction
private Direction[]
Direction.Type.facingArray
private static Direction[]
Direction.HORIZONTAL
private static Direction[]
Direction.VALUES
Modifier and TypeFieldDescriptionstatic com.mojang.serialization.Codec<Direction>
Direction.CODEC
static Map<Direction,AffineTransformation>
AffineTransformations.DIRECTION_ROTATIONS
static Map<Direction,AffineTransformation>
AffineTransformations.INVERTED_DIRECTION_ROTATIONS
DirectionTransformation.mappings
DirectionTransformation.mappings
Direction.NAME_MAP
private static Long2ObjectMap<Direction>
Direction.VECTOR_TO_DIRECTION
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 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.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)
ModifierConstructorDescriptionprivate
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 TypeMethodDescriptionfloat
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)
PortalUtil.method_34851(BlockView blockView, BlockPos blockPos, Block block, Direction direction, Block block2)
private static int
PortalUtil.moveWhile(Predicate<BlockPos> predicate, BlockPos.Mutable mutable, 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 blockState, Direction direction, BlockState blockState2, WorldAccess world, BlockPos blockPos, BlockPos blockPos2)
-
Uses of Direction in net.minecraft.world.chunk.light
Modifier and TypeFieldDescriptionprivate static Direction[]
ChunkBlockLightProvider.DIRECTIONS
private static Direction[]
ChunkLightProvider.DIRECTIONS
private static Direction[]
ChunkSkyLightProvider.DIRECTIONS
private static Direction[]
LightStorage.DIRECTIONS
private static Direction[]
ChunkSkyLightProvider.HORIZONTAL_DIRECTIONS
private static 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.feature
Modifier and TypeFieldDescriptionGrowingPlantFeatureConfig.direction
private static Direction[]
DeltaFeature.DIRECTIONS
private static Direction[]
GeodeFeature.DIRECTIONS
private static Direction[]
WeepingVinesFeature.DIRECTIONS
Modifier and TypeMethodDescriptionGlowLichenFeature.shuffleDirections(GlowLichenFeatureConfig config, Random random)
GlowLichenFeature.shuffleDirections(GlowLichenFeatureConfig config, Random random, Direction excluded)
Modifier and TypeMethodDescriptionprivate static ConfiguredFeature<GrowingPlantFeatureConfig,?>
ConfiguredFeatures.createBigDripleafFeature(Direction blockDirection)
private static boolean
SmallDripstoneFeature.generateDripstone(StructureWorldAccess world, Random random, BlockPos pos, Direction direction, SmallDripstoneFeatureConfig config)
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)
ModifierConstructorDescriptionGrowingPlantFeatureConfig(DataPool<IntProvider> heightDistribution, Direction direction, BlockStateProvider bodyProvider, BlockStateProvider headProvider, boolean allowWater)
-
Uses of Direction in net.minecraft.world.gen.feature.util
Modifier and TypeMethodDescriptionprotected static void
DripstoneHelper.generatePointedDripstone(StructureWorldAccess 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