net.minecraft.world.level.block

public abstract class MultifaceBlock

extends Block

All mapped superinterfaces:

FeatureElement, ItemLike

dpo
net.minecraft.world.level.block.MultifaceBlock
net.minecraft.class_5778
net.minecraft.block.MultifaceGrowthBlock
net.minecraft.world.level.block.MultifaceBlock

Field summary

Modifier and TypeField
private static final float
a
AABB_OFFSET
field_31194
field_31194
private static final VoxelShape
c
UP_AABB
field_28413
UP_SHAPE
private static final VoxelShape
d
DOWN_AABB
field_28414
DOWN_SHAPE
private static final VoxelShape
e
WEST_AABB
field_28415
EAST_SHAPE
private static final VoxelShape
f
EAST_AABB
field_28416
WEST_SHAPE
private static final VoxelShape
g
NORTH_AABB
field_28417
SOUTH_SHAPE
private static final VoxelShape
h
SOUTH_AABB
field_28418
NORTH_SHAPE
private static final Map<Direction, BooleanProperty>
i
PROPERTY_BY_DIRECTION
field_28419
FACING_PROPERTIES
private static final Map<Direction, VoxelShape>
j
SHAPE_BY_DIRECTION
field_28420
SHAPES_FOR_DIRECTIONS
protected static final Direction[]
b
DIRECTIONS
field_28421
DIRECTIONS
private final com.google.common.collect.ImmutableMap<BlockState, VoxelShape>
k
shapesCache
field_28422
SHAPES
private final boolean
l
canRotate
field_28423
hasAllHorizontalDirections
private final boolean
m
canMirrorX
field_28424
canMirrorX
private final boolean
n
canMirrorZ
field_28425
canMirrorZ

Constructor summary

ModifierConstructor
public (BlockBehaviour$Properties arg0)

Method summary

Modifier and TypeMethod
protected abstract com.mojang.serialization.MapCodec<? extends MultifaceBlock>
a()
codec()
method_53969()
getCodec()
public static Set<Direction>
o(dxv arg0)
availableFaces(BlockState arg0)
method_41440(class_2680 arg0)
collectDirections(BlockState state)
public static Set<Direction>
a(byte arg0)
unpack(byte arg0)
method_41437(byte arg0)
flagToDirections(byte flag)
public static byte
a(Collection<jm> arg0)
pack(Collection<Direction> arg0)
method_41439(Collection<class_2350> arg0)
directionsToFlag(Collection<Direction> directions)
protected boolean
a(jm arg0)
isFaceSupported(Direction arg0)
method_33369(class_2350 arg0)
canHaveDirection(Direction direction)
protected void
a(dxw$a<dkm, dxv> arg0)
createBlockStateDefinition(StateDefinition$Builder<Block, BlockState> arg0)
method_9515(class_2689$class_2690<class_2248, class_2680> arg0)
appendProperties(StateManager$Builder<Block, BlockState> arg0)
protected BlockState
a(dxv arg0, dhl arg1, dhx arg2, jh arg3, jm arg4, jh arg5, dxv arg6, bam arg7)
updateShape(BlockState arg0, LevelReader arg1, ScheduledTickAccess arg2, BlockPos arg3, Direction arg4, BlockPos arg5, BlockState arg6, RandomSource arg7)
method_9559(class_2680 arg0, class_4538 arg1, class_10225 arg2, class_2338 arg3, class_2350 arg4, class_2338 arg5, class_2680 arg6, class_5819 arg7)
getStateForNeighborUpdate(BlockState arg0, WorldView arg1, ScheduledTickView arg2, BlockPos arg3, Direction arg4, BlockPos arg5, BlockState arg6, Random arg7)
protected VoxelShape
a(dxv arg0, dgn arg1, jh arg2, fcd arg3)
getShape(BlockState arg0, BlockGetter arg1, BlockPos arg2, CollisionContext arg3)
method_9530(class_2680 arg0, class_1922 arg1, class_2338 arg2, class_3726 arg3)
getOutlineShape(BlockState arg0, BlockView arg1, BlockPos arg2, ShapeContext arg3)
protected boolean
a(dxv arg0, dhl arg1, jh arg2)
canSurvive(BlockState arg0, LevelReader arg1, BlockPos arg2)
method_9558(class_2680 arg0, class_4538 arg1, class_2338 arg2)
canPlaceAt(BlockState arg0, WorldView arg1, BlockPos arg2)
protected boolean
a(dxv arg0, dbg arg1)
canBeReplaced(BlockState arg0, BlockPlaceContext arg1)
method_9616(class_2680 arg0, class_1750 arg1)
canReplace(BlockState arg0, ItemPlacementContext arg1)
public BlockState
a(dbg arg0)
getStateForPlacement(BlockPlaceContext arg0)
method_9605(class_1750 arg0)
getPlacementState(ItemPlacementContext arg0)
public boolean
a(dgn arg0, dxv arg1, jh arg2, jm arg3)
isValidStateForPlacement(BlockGetter arg0, BlockState arg1, BlockPos arg2, Direction arg3)
method_41438(class_1922 arg0, class_2680 arg1, class_2338 arg2, class_2350 arg3)
canGrowWithDirection(BlockView world, BlockState state, BlockPos pos, Direction direction)
public BlockState
c(dxv arg0, dgn arg1, jh arg2, jm arg3)
getStateForPlacement(BlockState arg0, BlockGetter arg1, BlockPos arg2, Direction arg3)
method_33362(class_2680 arg0, class_1922 arg1, class_2338 arg2, class_2350 arg3)
withDirection(BlockState state, BlockView world, BlockPos pos, Direction direction)
protected BlockState
a(dxv arg0, drc arg1)
rotate(BlockState arg0, Rotation arg1)
method_9598(class_2680 arg0, class_2470 arg1)
rotate(BlockState arg0, BlockRotation arg1)
protected BlockState
a(dxv arg0, dpl arg1)
mirror(BlockState arg0, Mirror arg1)
method_9569(class_2680 arg0, class_2415 arg1)
mirror(BlockState arg0, BlockMirror arg1)
private BlockState
a(dxv arg0, Function<jm, jm> arg1)
mapDirections(BlockState arg0, Function<Direction, Direction> arg1)
method_33367(class_2680 arg0, Function<class_2350, class_2350> arg1)
mirror(BlockState state, Function<Direction, Direction> mirror)
public static boolean
a(dxv arg0, jm arg1)
hasFace(BlockState arg0, Direction arg1)
method_33366(class_2680 arg0, class_2350 arg1)
hasDirection(BlockState state, Direction direction)
public static boolean
a(dgn arg0, jm arg1, jh arg2, dxv arg3)
canAttachTo(BlockGetter arg0, Direction arg1, BlockPos arg2, BlockState arg3)
method_33358(class_1922 arg0, class_2350 arg1, class_2338 arg2, class_2680 arg3)
canGrowOn(BlockView world, Direction direction, BlockPos pos, BlockState state)
private boolean
q()
isWaterloggable()
method_33378()
isWaterlogged()
private static BlockState
a(dxv arg0, dym arg1)
removeFace(BlockState arg0, BooleanProperty arg1)
method_33365(class_2680 arg0, class_2746 arg1)
disableDirection(BlockState state, BooleanProperty direction)
public static BooleanProperty
b(jm arg0)
getFaceProperty(Direction arg0)
method_33374(class_2350 arg0)
getProperty(Direction direction)
private static BlockState
a(dxw<dkm, dxv> arg0)
getDefaultMultifaceState(StateDefinition<Block, BlockState> arg0)
method_33368(class_2689<class_2248, class_2680> arg0)
withAllDirections(StateManager<Block, BlockState> stateManager)
private static VoxelShape
r(dxv arg0)
calculateMultifaceShape(BlockState arg0)
method_33380(class_2680 arg0)
getShapeForState(BlockState state)
protected static boolean
q(dxv arg0)
hasAnyFace(BlockState arg0)
method_33381(class_2680 arg0)
hasAnyDirection(BlockState state)
private static boolean
s(dxv arg0)
hasAnyVacantFace(BlockState arg0)
method_33382(class_2680 arg0)
isNotFullBlock(BlockState state)
public abstract MultifaceSpreader
c()
getSpreader()
method_41432()
getGrower()