Package net.minecraft.world.level.block
Class CreakingHeartBlock
java.lang.Object
net.minecraft.world.level.block.state.BlockBehaviour
net.minecraft.world.level.block.Block
net.minecraft.world.level.block.BaseEntityBlock
net.minecraft.world.level.block.CreakingHeartBlock
- All Implemented Interfaces:
FeatureElement,EntityBlock,ItemLike,IBlockExtension
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.level.block.Block
Block.ShapePairKeyNested classes/interfaces inherited from class net.minecraft.world.level.block.state.BlockBehaviour
BlockBehaviour.BlockStateBase, BlockBehaviour.OffsetFunction, BlockBehaviour.OffsetType, BlockBehaviour.Properties, BlockBehaviour.StateArgumentPredicate<A>, BlockBehaviour.StatePredicate -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BooleanPropertystatic final EnumProperty<Direction.Axis> static final com.mojang.serialization.MapCodec<CreakingHeartBlock> static final BooleanPropertyFields inherited from class net.minecraft.world.level.block.Block
BLOCK_STATE_REGISTRY, INDESTRUCTIBLE, INSTANT, stateDefinition, UPDATE_ALL, UPDATE_ALL_IMMEDIATE, UPDATE_CLIENTS, UPDATE_IMMEDIATE, UPDATE_INVISIBLE, UPDATE_KNOWN_SHAPE, UPDATE_LIMIT, UPDATE_MOVE_BY_PISTON, UPDATE_NEIGHBORS, UPDATE_NONE, UPDATE_SKIP_SHAPE_UPDATE_ON_WIRE, UPDATE_SUPPRESS_DROPSFields inherited from class net.minecraft.world.level.block.state.BlockBehaviour
descriptionId, drops, dynamicShape, explosionResistance, friction, hasCollision, isRandomlyTicking, jumpFactor, properties, requiredFeatures, soundType, speedFactor, UPDATE_SHAPE_ORDERFields inherited from interface net.minecraft.world.flag.FeatureElement
FILTERED_REGISTRIES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidanimateTick(BlockState p_379556_, Level p_379594_, BlockPos p_379297_, RandomSource p_379301_) Called periodically clientside on blocks near the player to show effects (like furnace fire particles).com.mojang.serialization.MapCodec<CreakingHeartBlock> codec()protected voidprotected intgetAnalogOutputSignal(BlockState p_381152_, Level p_381142_, BlockPos p_381148_) Returns the analog signal this block emits.getStateForPlacement(BlockPlaceContext p_379431_) <T extends BlockEntity>
BlockEntityTicker<T> getTicker(Level p_379447_, BlockState p_379641_, BlockEntityType<T> p_380325_) protected booleanhasAnalogOutputSignal(BlockState p_380993_) static booleanhasRequiredLogs(BlockState pState, LevelReader pLevel, BlockPos pPos) static booleanisNaturalNight(Level pLevel) private static booleanisSurroundedByLogs(LevelAccessor pLevel, BlockPos pPos) newBlockEntity(BlockPos p_380178_, BlockState p_380317_) protected voidonExplosionHit(BlockState p_382935_, ServerLevel p_382804_, BlockPos p_383050_, Explosion p_383064_, BiConsumer<ItemStack, BlockPos> p_383124_) protected voidonRemove(BlockState p_380377_, Level p_380022_, BlockPos p_379876_, BlockState p_379979_, boolean p_379655_) playerWillDestroy(Level p_380319_, BlockPos p_379939_, BlockState p_379928_, Player p_380097_) protected BlockStaterotate(BlockState p_380251_, Rotation p_379529_) Returns the blockstate with the given rotation from the passed blockstate.private voidtryAwardExperience(Player pPlayer, BlockState pState, Level pLevel, BlockPos pPos) protected BlockStateupdateShape(BlockState p_379552_, LevelReader p_379446_, ScheduledTickAccess p_379318_, BlockPos p_379343_, Direction p_380340_, BlockPos p_380150_, BlockState p_379791_, RandomSource p_379888_) private static BlockStateupdateState(BlockState pState, LevelReader pLevel, BlockPos pPos) Methods inherited from class net.minecraft.world.level.block.BaseEntityBlock
createTickerHelper, getMenuProvider, triggerEventMethods inherited from class net.minecraft.world.level.block.Block
appendHoverText, asBlock, asItem, box, builtInRegistryHolder, byItem, canSupportCenter, canSupportRigidBlock, defaultBlockState, destroy, dropFromExplosion, dropResources, dropResources, dropResources, fallOn, getDrops, getDrops, getExplosionResistance, getFriction, getId, getJumpFactor, getName, getShapeForEachState, getSpeedFactor, getStateDefinition, handlePrecipitation, hasDynamicShape, isExceptionForConnection, isFaceFull, isPossibleToRespawnInThis, isShapeFullBlock, playerDestroy, popExperience, popResource, popResourceFromFace, pushEntitiesUp, registerDefaultState, setPlacedBy, shouldRenderFace, shouldRenderFace, spawnDestroyParticles, stateById, stepOn, toString, tryDropExperience, updateEntityMovementAfterFallOn, updateFromNeighbourShapes, updateOrDestroy, updateOrDestroy, wasExploded, withPropertiesOfMethods inherited from class net.minecraft.world.level.block.state.BlockBehaviour
attack, canBeReplaced, canBeReplaced, canSurvive, defaultDestroyTime, defaultMapColor, entityInside, getBlockSupportShape, getCloneItemStack, getCollisionShape, getDescriptionId, getDestroyProgress, getDirectSignal, getDrops, getEntityInsideCollisionShape, getFluidState, getInteractionShape, getLightBlock, getLootTable, getMaxHorizontalOffset, getMaxVerticalOffset, getOcclusionShape, getRenderShape, getSeed, getShadeBrightness, getShape, getSignal, getSoundType, getVisualShape, isAir, isCollisionShapeFullBlock, isPathfindable, isRandomlyTicking, isSignalSource, mirror, neighborChanged, onPlace, onProjectileHit, propagatesSkylightDown, properties, propertiesCodec, randomTick, requiredFeatures, simpleCodec, skipRendering, spawnAfterBreak, tick, updateIndirectNeighbourShapes, useItemOn, useShapeForLightOcclusion, useWithoutItemMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.world.level.block.EntityBlock
getListenerMethods inherited from interface net.minecraft.world.flag.FeatureElement
isEnabledMethods inherited from interface net.neoforged.neoforge.common.extensions.IBlockExtension
addLandingEffects, addRunningEffects, canBeHydrated, canConnectRedstone, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canStickTo, canSustainPlant, collisionExtendsVertically, getAdjacentBlockPathType, getAppearance, getBeaconColorMultiplier, getBedDirection, getBlockPathType, getBubbleColumnDirection, getCloneItemStack, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getFireSpreadSpeed, getFlammability, getFriction, getLightEmission, getMapColor, getPistonPushReaction, getRespawnPosition, getSoundType, getStateAtViewpoint, getToolModifiedState, getWeakChanges, hasDynamicLightEmission, hidesNeighborFace, isBed, isBurning, isConduitFrame, isEmpty, isFertile, isFireSource, isFlammable, isLadder, isPortalFrame, isScaffolding, isSlimeBlock, isStickyBlock, makesOpenTrapdoorAboveClimbable, onBlockExploded, onBlockStateChange, onCaughtFire, onDestroyedByPlayer, onDestroyedByPushReaction, onNeighborChange, onTreeGrow, rotate, setBedOccupied, shouldCheckWeakPower, shouldDisplayFluidOverlay, shouldHideAdjacentFluidFace, supportsExternalFaceHiding
-
Field Details
-
CODEC
-
AXIS
-
ACTIVE
-
NATURAL
-
-
Constructor Details
-
CreakingHeartBlock
-
-
Method Details
-
codec
- Specified by:
codecin classBaseEntityBlock
-
newBlockEntity
-
getTicker
@Nullable public <T extends BlockEntity> BlockEntityTicker<T> getTicker(Level p_379447_, BlockState p_379641_, BlockEntityType<T> p_380325_) -
isNaturalNight
-
animateTick
public void animateTick(BlockState p_379556_, Level p_379594_, BlockPos p_379297_, RandomSource p_379301_) Description copied from class:BlockCalled periodically clientside on blocks near the player to show effects (like furnace fire particles).- Overrides:
animateTickin classBlock
-
updateShape
protected BlockState updateShape(BlockState p_379552_, LevelReader p_379446_, ScheduledTickAccess p_379318_, BlockPos p_379343_, Direction p_380340_, BlockPos p_380150_, BlockState p_379791_, RandomSource p_379888_) - Overrides:
updateShapein classBlockBehaviour
-
updateState
-
hasRequiredLogs
-
isSurroundedByLogs
-
getStateForPlacement
- Overrides:
getStateForPlacementin classBlock
-
rotate
Description copied from class:BlockBehaviourReturns the blockstate with the given rotation from the passed blockstate. If inapplicable, returns the passed blockstate.- Overrides:
rotatein classBlockBehaviour
-
createBlockStateDefinition
- Overrides:
createBlockStateDefinitionin classBlock
-
onRemove
protected void onRemove(BlockState p_380377_, Level p_380022_, BlockPos p_379876_, BlockState p_379979_, boolean p_379655_) - Overrides:
onRemovein classBlockBehaviour
-
onExplosionHit
protected void onExplosionHit(BlockState p_382935_, ServerLevel p_382804_, BlockPos p_383050_, Explosion p_383064_, BiConsumer<ItemStack, BlockPos> p_383124_) - Overrides:
onExplosionHitin classBlockBehaviour
-
playerWillDestroy
public BlockState playerWillDestroy(Level p_380319_, BlockPos p_379939_, BlockState p_379928_, Player p_380097_) - Overrides:
playerWillDestroyin classBlock
-
tryAwardExperience
-
hasAnalogOutputSignal
- Overrides:
hasAnalogOutputSignalin classBlockBehaviour
-
getAnalogOutputSignal
Description copied from class:BlockBehaviourReturns the analog signal this block emits. This is the signal a comparator can read from it.- Overrides:
getAnalogOutputSignalin classBlockBehaviour
-