net.minecraft.world.level.block

public class MultifaceBlock

extends Block implements SimpleWaterloggedBlock

All mapped superinterfaces:

FeatureElement, ItemLike, SimpleWaterloggedBlock, BucketPickup, LiquidBlockContainer

dop
net.minecraft.world.level.block.MultifaceBlock
net.minecraft.class_5778
net.minecraft.block.MultifaceBlock
net.minecraft.src.C_141219_
net.minecraft.world.level.block.MultifaceBlock

Field summary

Modifier and TypeField
public static final com.mojang.serialization.MapCodec<MultifaceBlock>
b
CODEC
field_55079
CODEC
f_371618_
public static final BooleanProperty
c
WATERLOGGED
field_55497
WATERLOGGED
f_371437_
private static final float
a
AABB_OFFSET
field_31194
field_31194
f_153807_
private static final VoxelShape
e
UP_AABB
field_28413
UP_SHAPE
f_153808_
private static final VoxelShape
f
DOWN_AABB
field_28414
DOWN_SHAPE
f_153809_
private static final VoxelShape
g
WEST_AABB
field_28415
EAST_SHAPE
f_153810_
private static final VoxelShape
h
EAST_AABB
field_28416
WEST_SHAPE
f_153811_
private static final VoxelShape
i
NORTH_AABB
field_28417
SOUTH_SHAPE
f_153812_
private static final VoxelShape
j
SOUTH_AABB
field_28418
NORTH_SHAPE
f_153813_
private static final Map<Direction, BooleanProperty>
k
PROPERTY_BY_DIRECTION
field_28419
FACING_PROPERTIES
f_153814_
private static final Map<Direction, VoxelShape>
l
SHAPE_BY_DIRECTION
field_28420
SHAPES_FOR_DIRECTIONS
f_153815_
protected static final Direction[]
d
DIRECTIONS
field_28421
DIRECTIONS
f_153806_
private final com.google.common.collect.ImmutableMap<BlockState, VoxelShape>
m
shapesCache
field_28422
SHAPES
f_153816_
private final boolean
n
canRotate
field_28423
hasAllHorizontalDirections
f_153817_
private final boolean
o
canMirrorX
field_28424
canMirrorX
f_153818_
private final boolean
G
canMirrorZ
field_28425
canMirrorZ
f_153819_

Constructor summary

ModifierConstructor
public (BlockBehaviour$Properties arg0)

Method summary

Modifier and TypeMethod
protected com.mojang.serialization.MapCodec<? extends MultifaceBlock>
a()
codec()
method_53969()
getCodec()
m_304657_()
public static Set<Direction>
o(dwy arg0)
availableFaces(BlockState arg0)
method_41440(class_2680 arg0)
collectDirections(BlockState state)
m_221584_(C_2064_ p_221585_)
public static Set<Direction>
a(byte arg0)
unpack(byte arg0)
method_41437(byte arg0)
flagToDirections(byte flag)
m_221569_(byte p_221570_)
public static byte
a(Collection<jn> arg0)
pack(Collection<Direction> arg0)
method_41439(Collection<class_2350> arg0)
directionsToFlag(Collection<Direction> directions)
m_221576_(Collection<C_4687_> p_221577_)
protected boolean
a(jn arg0)
isFaceSupported(Direction arg0)
method_33369(class_2350 arg0)
canHaveDirection(Direction direction)
m_153920_(C_4687_ arg0)
protected void
a(dwz$a<djn, dwy> arg0)
createBlockStateDefinition(StateDefinition$Builder<Block, BlockState> arg0)
method_9515(class_2689$class_2690<class_2248, class_2680> arg0)
appendProperties(StateManager$Builder<Block, BlockState> arg0)
m_7926_(C_2065_$C_2066_<C_1706_, C_2064_> arg0)
protected BlockState
a(dwy arg0, dgm arg1, dgy arg2, ji arg3, jn arg4, ji arg5, dwy arg6, azh 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)
m_7417_(C_2064_ p_367619_, C_1599_ p_360930_, C_346056_ p_153908_, C_4675_ p_153905_, C_4687_ p_153909_, C_4675_ p_153906_, C_2064_ p_369670_, C_212974_ arg7)
protected FluidState
b_(dwy arg0)
getFluidState(BlockState arg0)
method_9545(class_2680 arg0)
getFluidState(BlockState arg0)
m_5888_(C_2064_ arg0)
protected VoxelShape
a(dwy arg0, dfo arg1, ji arg2, fbg 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)
m_5940_(C_2064_ p_153852_, C_1559_ p_153853_, C_4675_ p_153854_, C_3051_ arg3)
protected boolean
a(dwy arg0, dgm arg1, ji 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)
m_7898_(C_2064_ p_153889_, C_1599_ p_153890_, C_4675_ arg2)
protected boolean
a(dwy arg0, dah arg1)
canBeReplaced(BlockState arg0, BlockPlaceContext arg1)
method_9616(class_2680 arg0, class_1750 arg1)
canReplace(BlockState arg0, ItemPlacementContext arg1)
m_6864_(C_2064_ p_153849_, C_1445_ arg1)
public BlockState
a(dah arg0)
getStateForPlacement(BlockPlaceContext arg0)
method_9605(class_1750 arg0)
getPlacementState(ItemPlacementContext arg0)
m_5573_(C_1445_ arg0)
public boolean
a(dfo arg0, dwy arg1, ji arg2, jn 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)
m_221571_(C_1559_ p_221573_, C_2064_ p_221574_, C_4675_ p_221575_, C_4687_ arg3)
public BlockState
c(dwy arg0, dfo arg1, ji arg2, jn 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)
m_153940_(C_2064_ p_153942_, C_1559_ p_153943_, C_4675_ p_153944_, C_4687_ arg3)
protected BlockState
a(dwy arg0, dqf arg1)
rotate(BlockState arg0, Rotation arg1)
method_9598(class_2680 arg0, class_2470 arg1)
rotate(BlockState arg0, BlockRotation arg1)
m_6843_(C_2064_ p_153896_, C_1886_ arg1)
protected BlockState
a(dwy arg0, dom arg1)
mirror(BlockState arg0, Mirror arg1)
method_9569(class_2680 arg0, class_2415 arg1)
mirror(BlockState arg0, BlockMirror arg1)
m_6943_(C_2064_ p_153893_, C_1838_ arg1)
private BlockState
a(dwy arg0, Function<jn, jn> 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)
m_153910_(C_2064_ p_153912_, Function<C_4687_, C_4687_> arg1)
public static boolean
a(dwy arg0, jn arg1)
hasFace(BlockState arg0, Direction arg1)
method_33366(class_2680 arg0, class_2350 arg1)
hasDirection(BlockState state, Direction direction)
m_153900_(C_2064_ p_153901_, C_4687_ p_153902_)
public static boolean
a(dfo arg0, ji arg1, jn arg2)
canAttachTo(BlockGetter arg0, BlockPos arg1, Direction arg2)
method_65162(class_1922 arg0, class_2338 arg1, class_2350 arg2)
canGrowOn(BlockView world, BlockPos pos, Direction direction)
m_373620_(C_1559_ p_376779_, C_4675_ p_375819_, C_4687_ p_378815_)
public static boolean
a(dfo arg0, jn arg1, ji arg2, dwy 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)
m_153829_(C_1559_ p_153830_, C_4687_ p_153831_, C_4675_ p_153832_, C_2064_ p_153833_)
private static BlockState
a(dwy arg0, dxp arg1)
removeFace(BlockState arg0, BooleanProperty arg1)
method_33365(class_2680 arg0, class_2746 arg1)
disableDirection(BlockState state, BooleanProperty direction)
m_153897_(C_2064_ p_153898_, C_2084_ p_153899_)
public static BooleanProperty
b(jn arg0)
getFaceProperty(Direction arg0)
method_33374(class_2350 arg0)
getProperty(Direction direction)
m_153933_(C_4687_ p_153934_)
private static BlockState
a(dwz<djn, dwy> arg0)
getDefaultMultifaceState(StateDefinition<Block, BlockState> arg0)
method_33368(class_2689<class_2248, class_2680> arg0)
withAllDirections(StateManager<Block, BlockState> stateManager)
m_153918_(C_2065_<C_1706_, C_2064_> p_153919_)
private static VoxelShape
r(dwy arg0)
calculateMultifaceShape(BlockState arg0)
method_33380(class_2680 arg0)
getShapeForState(BlockState state)
m_153958_(C_2064_ p_153959_)
protected static boolean
q(dwy arg0)
hasAnyFace(BlockState arg0)
method_33381(class_2680 arg0)
hasAnyDirection(BlockState state)
m_153960_(C_2064_ p_153961_)
private static boolean
s(dwy arg0)
hasAnyVacantFace(BlockState arg0)
method_33382(class_2680 arg0)
isNotFullBlock(BlockState state)
m_153962_(C_2064_ p_153963_)