net.minecraft.block

public class PaleMossCarpetBlock

extends Block implements Fertilizable

All mapped superinterfaces:

ToggleableFeature, ItemConvertible, Fertilizable

net.minecraft.world.level.block.MossyCarpetBlock
net.minecraft.world.level.block.MossyCarpetBlock
net.minecraft.class_10322
net.minecraft.block.PaleMossCarpetBlock

Field summary

Modifier and TypeField
public static final com.mojang.serialization.MapCodec<PaleMossCarpetBlock>
CODEC
CODEC
field_54755
CODEC
public static final BooleanProperty
BASE
BASE
field_54756
BOTTOM
public static final EnumProperty<WallShape>
NORTH
NORTH
field_54757
NORTH
public static final EnumProperty<WallShape>
EAST
EAST
field_54758
EAST
public static final EnumProperty<WallShape>
SOUTH
SOUTH
field_54759
SOUTH
public static final EnumProperty<WallShape>
WEST
WEST
field_54760
WEST
public static final Map<Direction, EnumProperty<WallShape>>
PROPERTY_BY_DIRECTION
PROPERTY_BY_DIRECTION
field_55778
WALL_SHAPE_PROPERTIES_BY_DIRECTION
private final Function<BlockState, VoxelShape>
shapes
shapes
field_55779
shapeFunction

Constructor summary

ModifierConstructor
public (AbstractBlock$Settings properties)

Method summary

Modifier and TypeMethod
public com.mojang.serialization.MapCodec<PaleMossCarpetBlock>
codec()
codec()
method_53969()
getCodec()
public Function<BlockState, VoxelShape>
makeShapes()
makeShapes()
method_66453()
createShapeFunction()
protected VoxelShape
getShape(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context)
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)
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
propagatesSkylightDown(BlockState state)
propagatesSkylightDown(BlockState state)
method_9579(class_2680 arg0)
isTransparent(BlockState arg0)
protected boolean
canSurvive(BlockState state, LevelReader level, BlockPos pos)
canSurvive(BlockState state, LevelReader level, BlockPos pos)
method_9558(class_2680 arg0, class_4538 arg1, class_2338 arg2)
canPlaceAt(BlockState arg0, WorldView arg1, BlockPos arg2)
private static boolean
hasFaces(BlockState blockState)
hasFaces(BlockState blockState)
method_64799(class_2680 arg0)
hasAnyShape(BlockState state)
private static boolean
canSupportAtFace(BlockGetter level, BlockPos pos, Direction direction)
canSupportAtFace(BlockGetter level, BlockPos pos, Direction direction)
method_64791(class_1922 arg0, class_2338 arg1, class_2350 arg2)
canGrowOnFace(BlockView world, BlockPos pos, Direction direction)
private static BlockState
getUpdatedState(BlockState state, BlockGetter level, BlockPos pos, boolean createSides)
getUpdatedState(BlockState state, BlockGetter level, BlockPos pos, boolean createSides)
method_64793(class_2680 arg0, class_1922 arg1, class_2338 arg2, boolean arg3)
updateState(BlockState state, BlockView world, BlockPos pos, boolean arg3)
public BlockState
getStateForPlacement(BlockPlaceContext context)
getStateForPlacement(BlockPlaceContext context)
method_9605(class_1750 arg0)
getPlacementState(ItemPlacementContext arg0)
public static void
placeAt(LevelAccessor level, BlockPos pos, RandomSource random, int updateType)
placeAt(LevelAccessor level, BlockPos pos, RandomSource random, int updateType)
method_64792(class_1936 arg0, class_2338 arg1, class_5819 arg2, int arg3)
placeAt(WorldAccess world, BlockPos pos, Random random, int flags)
public void
setPlacedBy(Level level, BlockPos pos, BlockState state, LivingEntity by, ItemStack itemStack)
setPlacedBy(Level level, BlockPos pos, BlockState state, LivingEntity by, ItemStack itemStack)
method_9567(class_1937 arg0, class_2338 arg1, class_2680 arg2, class_1309 arg3, class_1799 arg4)
onPlaced(World arg0, BlockPos arg1, BlockState arg2, LivingEntity arg3, ItemStack arg4)
private static BlockState
createTopperWithSideChance(BlockGetter level, BlockPos pos, BooleanSupplier sideSurvivalTest)
createTopperWithSideChance(BlockGetter level, BlockPos pos, BooleanSupplier sideSurvivalTest)
method_64790(class_1922 arg0, class_2338 arg1, BooleanSupplier arg2)
createUpperState(BlockView world, BlockPos pos, BooleanSupplier arg2)
protected BlockState
updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random)
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)
protected void
createBlockStateDefinition(StateDefinition$Builder<Block, BlockState> builder)
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)
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)
mirror(BlockState state, Mirror mirror)
method_9569(class_2680 arg0, class_2415 arg1)
mirror(BlockState arg0, BlockMirror arg1)
public static EnumProperty<WallShape>
getPropertyForFace(Direction direction)
getPropertyForFace(Direction direction)
method_64795(class_2350 arg0)
getWallShape(Direction face)
public boolean
isValidBonemealTarget(LevelReader level, BlockPos pos, BlockState state)
isValidBonemealTarget(LevelReader level, BlockPos pos, BlockState state)
method_9651(class_4538 arg0, class_2338 arg1, class_2680 arg2)
isFertilizable(WorldView arg0, BlockPos arg1, BlockState arg2)
public boolean
isBonemealSuccess(Level level, RandomSource random, BlockPos pos, BlockState state)
isBonemealSuccess(Level level, RandomSource random, BlockPos pos, BlockState state)
method_9650(class_1937 arg0, class_5819 arg1, class_2338 arg2, class_2680 arg3)
canGrow(World arg0, Random arg1, BlockPos arg2, BlockState arg3)
public void
performBonemeal(ServerLevel level, RandomSource random, BlockPos pos, BlockState state)
performBonemeal(ServerLevel level, RandomSource random, BlockPos pos, BlockState state)
method_9652(class_3218 arg0, class_5819 arg1, class_2338 arg2, class_2680 arg3)
grow(ServerWorld arg0, Random arg1, BlockPos arg2, BlockState arg3)