net.minecraft.block

public class CakeBlock

extends Block

All mapped superinterfaces:

ToggleableFeature, ItemConvertible

net.minecraft.world.level.block.CakeBlock
net.minecraft.world.level.block.CakeBlock
net.minecraft.class_2272
net.minecraft.block.CakeBlock

Field summary

Modifier and TypeField
public static final com.mojang.serialization.MapCodec<CakeBlock>
CODEC
CODEC
field_46295
CODEC
public static final int
MAX_BITES
MAX_BITES
field_31046
MAX_BITES
public static final IntProperty
BITES
BITES
field_10739
BITES
public static final int
FULL_CAKE_SIGNAL
FULL_CAKE_SIGNAL
field_27173
DEFAULT_COMPARATOR_OUTPUT
private static final VoxelShape[]
SHAPES
SHAPES
field_10738
SHAPES_BY_BITES

Constructor summary

ModifierConstructor
protected (AbstractBlock$Settings properties)

Method summary

Modifier and TypeMethod
public com.mojang.serialization.MapCodec<CakeBlock>
codec()
codec()
method_53969()
getCodec()
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 ActionResult
useItemOn(ItemStack itemStack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult)
useItemOn(ItemStack itemStack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult)
method_55765(class_1799 arg0, class_2680 arg1, class_1937 arg2, class_2338 arg3, class_1657 arg4, class_1268 arg5, class_3965 arg6)
onUseWithItem(ItemStack arg0, BlockState arg1, World arg2, BlockPos arg3, PlayerEntity arg4, Hand arg5, BlockHitResult arg6)
protected ActionResult
useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult)
useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult)
method_55766(class_2680 arg0, class_1937 arg1, class_2338 arg2, class_1657 arg3, class_3965 arg4)
onUse(BlockState arg0, World arg1, BlockPos arg2, PlayerEntity arg3, BlockHitResult arg4)
protected static ActionResult
eat(LevelAccessor level, BlockPos pos, BlockState state, Player player)
eat(LevelAccessor level, BlockPos pos, BlockState state, Player player)
method_9719(class_1936 arg0, class_2338 arg1, class_2680 arg2, class_1657 arg3)
tryEat(WorldAccess world, BlockPos pos, BlockState state, PlayerEntity player)
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 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)
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 int
getAnalogOutputSignal(BlockState state, Level level, BlockPos pos, Direction direction)
getAnalogOutputSignal(BlockState state, Level level, BlockPos pos, Direction direction)
method_9572(class_2680 arg0, class_1937 arg1, class_2338 arg2, class_2350 arg3)
getComparatorOutput(BlockState arg0, World arg1, BlockPos arg2, Direction arg3)
public static int
getOutputSignal(int bitesTaken)
getOutputSignal(int bitesTaken)
method_31627(int arg0)
getComparatorOutput(int bites)
protected boolean
hasAnalogOutputSignal(BlockState state)
hasAnalogOutputSignal(BlockState state)
method_9498(class_2680 arg0)
hasComparatorOutput(BlockState arg0)
protected boolean
isPathfindable(BlockState state, PathComputationType type)
isPathfindable(BlockState state, PathComputationType type)
method_9516(class_2680 arg0, class_10 arg1)
canPathfindThrough(BlockState arg0, NavigationType arg1)