net.minecraft.block

public class WallBlock

extends Block implements Waterloggable

All mapped superinterfaces:

ToggleableFeature, ItemConvertible, Waterloggable, FluidDrainable, FluidFillable

net.minecraft.world.level.block.WallBlock
net.minecraft.class_2544
net.minecraft.block.WallBlock

Field summary

Modifier and TypeField
public static final com.mojang.serialization.MapCodec<WallBlock>
CODEC
field_46487
CODEC
public static final BooleanProperty
UP
field_11717
UP
public static final EnumProperty<WallShape>
EAST
field_55815
EAST_WALL_SHAPE
public static final EnumProperty<WallShape>
NORTH
field_55816
NORTH_WALL_SHAPE
public static final EnumProperty<WallShape>
SOUTH
field_55817
SOUTH_WALL_SHAPE
public static final EnumProperty<WallShape>
WEST
field_55818
WEST_WALL_SHAPE
public static final Map<Direction, EnumProperty<WallShape>>
PROPERTY_BY_DIRECTION
field_55819
WALL_SHAPE_PROPERTIES_BY_DIRECTION
public static final BooleanProperty
WATERLOGGED
field_22160
WATERLOGGED
private final Function<BlockState, VoxelShape>
shapes
field_55820
outlineShapeFunction
private final Function<BlockState, VoxelShape>
collisionShapes
field_55812
collisionShapeFunction
private static final VoxelShape
TEST_SHAPE_POST
field_55813
POST_SHAPE_FOR_TALL_TEST
private static final Map<Direction, VoxelShape>
TEST_SHAPES_WALL
field_55814
WALL_SHAPES_FOR_TALL_TEST_BY_DIRECTION

Constructor summary

ModifierConstructor
public (AbstractBlock$Settings properties)

Method summary

Modifier and TypeMethod
public com.mojang.serialization.MapCodec<WallBlock>
codec()
method_53969()
getCodec()
private Function<BlockState, VoxelShape>
makeShapes(float postHeight, float wallTop)
method_24420(float arg0, float arg1)
createShapeFunction(float tallHeight, float lowHeight)
protected VoxelShape
getShape(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context)
method_9530(class_2680 arg0, class_1922 arg1, class_2338 arg2, class_3726 arg3)
getOutlineShape(BlockState arg0, BlockView arg1, BlockPos arg2, ShapeContext arg3)
protected VoxelShape
getCollisionShape(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context)
method_9549(class_2680 arg0, class_1922 arg1, class_2338 arg2, class_3726 arg3)
getCollisionShape(BlockState arg0, BlockView arg1, BlockPos arg2, ShapeContext arg3)
protected boolean
isPathfindable(BlockState state, PathComputationType type)
method_9516(class_2680 arg0, class_10 arg1)
canPathfindThrough(BlockState arg0, NavigationType arg1)
private boolean
connectsTo(BlockState state, boolean faceSolid, Direction direction)
method_16704(class_2680 arg0, boolean arg1, class_2350 arg2)
shouldConnectTo(BlockState state, boolean faceFullSquare, Direction side)
public BlockState
getStateForPlacement(BlockPlaceContext context)
method_9605(class_1750 arg0)
getPlacementState(ItemPlacementContext arg0)
protected BlockState
updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random)
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)
private static boolean
isConnected(BlockState state, Property<WallSide> northWall)
method_24424(class_2680 arg0, class_2769<class_4778> arg1)
isConnected(BlockState state, Property<WallShape> property)
private static boolean
isCovered(VoxelShape aboveShape, VoxelShape testShape)
method_24427(class_265 arg0, class_265 arg1)
shouldUseTallShape(VoxelShape aboveShape, VoxelShape tallShape)
private BlockState
topUpdate(LevelReader level, BlockState state, BlockPos topPos, BlockState topNeighbour)
method_24421(class_4538 arg0, class_2680 arg1, class_2338 arg2, class_2680 arg3)
getStateAt(WorldView world, BlockState state, BlockPos pos, BlockState aboveState)
private BlockState
sideUpdate(LevelReader level, BlockPos pos, BlockState state, BlockPos neighbourPos, BlockState neighbour, Direction direction)
method_24423(class_4538 arg0, class_2338 arg1, class_2680 arg2, class_2338 arg3, class_2680 arg4, class_2350 arg5)
getStateWithNeighbor(WorldView world, BlockPos pos, BlockState state, BlockPos neighborPos, BlockState neighborState, Direction direction)
private BlockState
updateShape(LevelReader level, BlockState state, BlockPos topPos, BlockState topNeighbour, boolean north, boolean east, boolean south, boolean west)
method_24422(class_4538 arg0, class_2680 arg1, class_2338 arg2, class_2680 arg3, boolean arg4, boolean arg5, boolean arg6, boolean arg7)
getStateWith(WorldView world, BlockState state, BlockPos pos, BlockState aboveState, boolean north, boolean east, boolean south, boolean west)
private boolean
shouldRaisePost(BlockState state, BlockState topNeighbour, VoxelShape aboveShape)
method_27092(class_2680 arg0, class_2680 arg1, class_265 arg2)
shouldHavePost(BlockState state, BlockState aboveState, VoxelShape aboveShape)
private BlockState
updateSides(BlockState state, boolean northConnection, boolean eastConnection, boolean southConnection, boolean westConnection, VoxelShape aboveShape)
method_24425(class_2680 arg0, boolean arg1, boolean arg2, boolean arg3, boolean arg4, class_265 arg5)
getStateWith(BlockState state, boolean north, boolean east, boolean south, boolean west, VoxelShape aboveShape)
private WallShape
makeWallState(boolean connectsToSide, VoxelShape aboveShape, VoxelShape testShape)
method_24428(boolean arg0, class_265 arg1, class_265 arg2)
getWallShape(boolean connected, VoxelShape aboveShape, VoxelShape tallShape)
protected FluidState
getFluidState(BlockState state)
method_9545(class_2680 arg0)
getFluidState(BlockState arg0)
protected boolean
propagatesSkylightDown(BlockState state)
method_9579(class_2680 arg0)
isTransparent(BlockState arg0)
protected void
createBlockStateDefinition(StateDefinition$Builder<Block, BlockState> builder)
method_9515(class_2689$class_2690<class_2248, class_2680> arg0)
appendProperties(StateManager$Builder<Block, BlockState> arg0)
protected BlockState
rotate(BlockState state, Rotation rotation)
method_9598(class_2680 arg0, class_2470 arg1)
rotate(BlockState arg0, BlockRotation arg1)
protected BlockState
mirror(BlockState state, Mirror mirror)
method_9569(class_2680 arg0, class_2415 arg1)
mirror(BlockState arg0, BlockMirror arg1)
private static VoxelShape
lambda$makeShapes$0(VoxelShape arg0, Map arg1, Map arg2, BlockState arg3)
method_66472(class_265 arg0, Map arg1, Map arg2, class_2680 arg3)
method_66472(VoxelShape arg0, Map arg1, Map arg2, BlockState state)