net.minecraft.block

public class CreakingHeartBlock

extends BlockWithEntity

All mapped superinterfaces:

ToggleableFeature, ItemConvertible, BlockEntityProvider

net.minecraft.world.level.block.CreakingHeartBlock
net.minecraft.world.level.block.CreakingHeartBlock
net.minecraft.class_10319
net.minecraft.block.CreakingHeartBlock

Field summary

Modifier and TypeField
public static final com.mojang.serialization.MapCodec<CreakingHeartBlock>
CODEC
CODEC
field_54738
CODEC
public static final EnumProperty<Direction$Axis>
AXIS
AXIS
field_54739
AXIS
public static final EnumProperty<CreakingHeartState>
STATE
STATE
field_55064
ACTIVE
public static final BooleanProperty
NATURAL
NATURAL
field_55065
NATURAL

Constructor summary

ModifierConstructor
protected (AbstractBlock$Settings properties)

Method summary

Modifier and TypeMethod
public com.mojang.serialization.MapCodec<CreakingHeartBlock>
codec()
codec()
method_53969()
getCodec()
public BlockEntity
newBlockEntity(BlockPos worldPosition, BlockState blockState)
newBlockEntity(BlockPos worldPosition, BlockState blockState)
method_10123(class_2338 arg0, class_2680 arg1)
createBlockEntity(BlockPos arg0, BlockState arg1)
public <T extends BlockEntity> BlockEntityTicker<T>
getTicker(Level level, BlockState blockState, BlockEntityType<T> type)
getTicker(Level level, BlockState blockState, BlockEntityType<T> type)
method_31645(class_1937 arg0, class_2680 arg1, class_2591<T> arg2)
getTicker(World arg0, BlockState arg1, BlockEntityType<T> arg2)
public void
animateTick(BlockState state, Level level, BlockPos pos, RandomSource random)
animateTick(BlockState state, Level level, BlockPos pos, RandomSource random)
method_9496(class_2680 arg0, class_1937 arg1, class_2338 arg2, class_5819 arg3)
randomDisplayTick(BlockState arg0, World arg1, BlockPos arg2, Random arg3)
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
tick(BlockState state, ServerLevel level, BlockPos pos, RandomSource random)
tick(BlockState state, ServerLevel level, BlockPos pos, RandomSource random)
method_9588(class_2680 arg0, class_3218 arg1, class_2338 arg2, class_5819 arg3)
scheduledTick(BlockState arg0, ServerWorld arg1, BlockPos arg2, Random arg3)
private static BlockState
updateState(BlockState state, Level level, BlockPos pos)
updateState(BlockState state, Level level, BlockPos pos)
method_64785(class_2680 arg0, class_1937 arg1, class_2338 arg2)
enableIfValid(BlockState state, World arg1, BlockPos pos)
public static boolean
hasRequiredLogs(BlockState state, LevelReader level, BlockPos pos)
hasRequiredLogs(BlockState state, LevelReader level, BlockPos pos)
method_64784(class_2680 arg0, class_4538 arg1, class_2338 arg2)
shouldBeEnabled(BlockState state, WorldView world, BlockPos pos)
private static boolean
isSurroundedByLogs(LevelAccessor level, BlockPos pos)
isSurroundedByLogs(LevelAccessor level, BlockPos pos)
method_64783(class_1936 arg0, class_2338 arg1)
isSurroundedByPaleOakLogs(WorldAccess world, BlockPos pos)
public BlockState
getStateForPlacement(BlockPlaceContext context)
getStateForPlacement(BlockPlaceContext context)
method_9605(class_1750 arg0)
getPlacementState(ItemPlacementContext 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 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 void
affectNeighborsAfterRemoval(BlockState state, ServerLevel level, BlockPos pos, boolean movedByPiston)
affectNeighborsAfterRemoval(BlockState state, ServerLevel level, BlockPos pos, boolean movedByPiston)
method_66388(class_2680 arg0, class_3218 arg1, class_2338 arg2, boolean arg3)
onStateReplaced(BlockState arg0, ServerWorld arg1, BlockPos arg2, boolean arg3)
protected void
onExplosionHit(BlockState state, ServerLevel level, BlockPos pos, Explosion explosion, BiConsumer<ItemStack, BlockPos> onHit)
onExplosionHit(BlockState state, ServerLevel level, BlockPos pos, Explosion explosion, BiConsumer<ItemStack, BlockPos> onHit)
method_55124(class_2680 arg0, class_3218 arg1, class_2338 arg2, class_1927 arg3, BiConsumer<class_1799, class_2338> arg4)
onExploded(BlockState arg0, ServerWorld arg1, BlockPos arg2, Explosion arg3, BiConsumer<ItemStack, BlockPos> arg4)
public BlockState
playerWillDestroy(Level level, BlockPos pos, BlockState state, Player player)
playerWillDestroy(Level level, BlockPos pos, BlockState state, Player player)
method_9576(class_1937 arg0, class_2338 arg1, class_2680 arg2, class_1657 arg3)
onBreak(World arg0, BlockPos arg1, BlockState arg2, PlayerEntity arg3)
private void
tryAwardExperience(Player player, BlockState state, Level level, BlockPos pos)
tryAwardExperience(Player player, BlockState state, Level level, BlockPos pos)
method_65148(class_1657 arg0, class_2680 arg1, class_1937 arg2, class_2338 arg3)
dropExperienceOnBreak(PlayerEntity player, BlockState state, World world, BlockPos pos)
protected boolean
hasAnalogOutputSignal(BlockState state)
hasAnalogOutputSignal(BlockState state)
method_9498(class_2680 arg0)
hasComparatorOutput(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)