Package net.minecraft.world.level.block
Class DriedGhastBlock
java.lang.Object
net.minecraft.world.level.block.state.BlockBehaviour
net.minecraft.world.level.block.Block
net.minecraft.world.level.block.HorizontalDirectionalBlock
net.minecraft.world.level.block.DriedGhastBlock
- All Implemented Interfaces:
FeatureElement,BucketPickup,LiquidBlockContainer,SimpleWaterloggedBlock,ItemLike,IBlockExtension,IBucketPickupExtension
-
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 com.mojang.serialization.MapCodec<DriedGhastBlock> static final IntegerPropertystatic final intstatic final intprivate static final VoxelShapestatic final BooleanPropertyFields inherited from class net.minecraft.world.level.block.HorizontalDirectionalBlock
FACINGFields 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_ALL_SIDEEFFECTS, UPDATE_SKIP_BLOCK_ENTITY_SIDEEFFECTS, UPDATE_SKIP_ON_PLACE, 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_416682_, Level p_416357_, BlockPos p_415792_, RandomSource p_416494_) Called periodically clientside on blocks near the player to show effects (like furnace fire particles).com.mojang.serialization.MapCodec<DriedGhastBlock> codec()protected voidprotected FluidStategetFluidState(BlockState p_416060_) intgetHydrationLevel(BlockState pState) getShape(BlockState p_416548_, BlockGetter p_416476_, BlockPos p_416401_, CollisionContext p_415860_) getStateForPlacement(BlockPlaceContext p_416452_) booleanisPathfindable(BlockState p_416514_, PathComputationType p_415674_) private booleanisReadyToSpawn(BlockState pState) booleanplaceLiquid(LevelAccessor p_416379_, BlockPos p_415922_, BlockState p_416350_, FluidState p_415551_) protected voidrandomTick(BlockState p_416248_, ServerLevel p_416607_, BlockPos p_415639_, RandomSource p_415633_) Performs a random tick on a block.voidsetPlacedBy(Level p_418520_, BlockPos p_418137_, BlockState p_418409_, LivingEntity p_418198_, ItemStack p_418118_) Called by BlockItem after this block has been placed.private voidspawnGhastling(ServerLevel pLevel, BlockPos pPos, BlockState pState) protected voidtick(BlockState p_416215_, ServerLevel p_416576_, BlockPos p_415822_, RandomSource p_415656_) private voidtickWaterlogged(BlockState pState, ServerLevel pLevel, BlockPos pPos, RandomSource pRandom) protected BlockStateupdateShape(BlockState p_416335_, LevelReader p_415693_, ScheduledTickAccess p_416196_, BlockPos p_415889_, Direction p_415854_, BlockPos p_415679_, BlockState p_415825_, RandomSource p_415629_) Methods inherited from class net.minecraft.world.level.block.HorizontalDirectionalBlock
mirror, rotateMethods inherited from class net.minecraft.world.level.block.Block
asBlock, asItem, box, boxes, boxZ, boxZ, boxZ, builtInRegistryHolder, byItem, canSupportCenter, canSupportRigidBlock, column, column, cube, cube, defaultBlockState, destroy, dropFromBlockInteractLootTable, dropFromExplosion, dropFromLootTable, dropResources, dropResources, dropResources, fallOn, getDrops, getDrops, getExplosionResistance, getFriction, getId, getJumpFactor, getName, getShapeForEachState, getShapeForEachState, getSpeedFactor, getStateDefinition, handlePrecipitation, hasDynamicShape, isExceptionForConnection, isFaceFull, isPossibleToRespawnInThis, isShapeFullBlock, playerDestroy, playerWillDestroy, popExperience, popResource, popResourceFromFace, pushEntitiesUp, registerDefaultState, shouldRenderFace, shouldRenderFace, spawnDestroyParticles, stateById, stepOn, toString, tryDropExperience, updateEntityMovementAfterFallOn, updateFromNeighbourShapes, updateOrDestroy, updateOrDestroy, wasExploded, withPropertiesOfMethods inherited from class net.minecraft.world.level.block.state.BlockBehaviour
affectNeighborsAfterRemoval, attack, canBeReplaced, canBeReplaced, canSurvive, defaultDestroyTime, defaultMapColor, entityInside, getAnalogOutputSignal, getBlockSupportShape, getCloneItemStack, getCollisionShape, getDescriptionId, getDestroyProgress, getDirectSignal, getDrops, getEntityInsideCollisionShape, getInteractionShape, getLightBlock, getLootTable, getMaxHorizontalOffset, getMaxVerticalOffset, getMenuProvider, getOcclusionShape, getRenderShape, getSeed, getShadeBrightness, getSignal, getSoundType, getVisualShape, hasAnalogOutputSignal, isAir, isCollisionShapeFullBlock, isRandomlyTicking, isSignalSource, neighborChanged, onExplosionHit, onPlace, onProjectileHit, propagatesSkylightDown, properties, propertiesCodec, requiredFeatures, shouldChangedStateKeepBlockEntity, simpleCodec, skipRendering, spawnAfterBreak, triggerEvent, 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.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, ignitedByLava, isBed, isBurning, isConduitFrame, isEmpty, isFertile, isFireSource, isFlammable, isLadder, isPortalFrame, isScaffolding, isSlimeBlock, isStickyBlock, makesOpenTrapdoorAboveClimbable, onBlockExploded, onBlockStateChange, onCaughtFire, onDestroyedByPlayer, onDestroyedByPushReaction, onNeighborChange, onTreeGrow, playFallSound, playStepSound, rotate, setBedOccupied, shouldCheckWeakPower, shouldDisplayFluidOverlay, shouldHideAdjacentFluidFace, supportsExternalFaceHidingMethods inherited from interface net.neoforged.neoforge.common.extensions.IBucketPickupExtension
getPickupSoundMethods inherited from interface net.minecraft.world.level.block.SimpleWaterloggedBlock
canPlaceLiquid, getPickupSound, pickupBlock
-
Field Details
-
CODEC
-
MAX_HYDRATION_LEVEL
public static final int MAX_HYDRATION_LEVEL- See Also:
-
HYDRATION_LEVEL
-
WATERLOGGED
-
HYDRATION_TICK_DELAY
public static final int HYDRATION_TICK_DELAY- See Also:
-
SHAPE
-
-
Constructor Details
-
DriedGhastBlock
-
-
Method Details
-
codec
- Specified by:
codecin classHorizontalDirectionalBlock
-
createBlockStateDefinition
- Overrides:
createBlockStateDefinitionin classBlock
-
updateShape
protected BlockState updateShape(BlockState p_416335_, LevelReader p_415693_, ScheduledTickAccess p_416196_, BlockPos p_415889_, Direction p_415854_, BlockPos p_415679_, BlockState p_415825_, RandomSource p_415629_) - Overrides:
updateShapein classBlockBehaviour
-
getShape
public VoxelShape getShape(BlockState p_416548_, BlockGetter p_416476_, BlockPos p_416401_, CollisionContext p_415860_) - Overrides:
getShapein classBlockBehaviour
-
getHydrationLevel
-
isReadyToSpawn
-
tick
protected void tick(BlockState p_416215_, ServerLevel p_416576_, BlockPos p_415822_, RandomSource p_415656_) - Overrides:
tickin classBlockBehaviour
-
tickWaterlogged
private void tickWaterlogged(BlockState pState, ServerLevel pLevel, BlockPos pPos, RandomSource pRandom) -
spawnGhastling
-
animateTick
public void animateTick(BlockState p_416682_, Level p_416357_, BlockPos p_415792_, RandomSource p_416494_) Description copied from class:BlockCalled periodically clientside on blocks near the player to show effects (like furnace fire particles).- Overrides:
animateTickin classBlock
-
randomTick
protected void randomTick(BlockState p_416248_, ServerLevel p_416607_, BlockPos p_415639_, RandomSource p_415633_) Description copied from class:BlockBehaviourPerforms a random tick on a block.- Overrides:
randomTickin classBlockBehaviour
-
getStateForPlacement
- Overrides:
getStateForPlacementin classBlock
-
getFluidState
- Overrides:
getFluidStatein classBlockBehaviour
-
placeLiquid
public boolean placeLiquid(LevelAccessor p_416379_, BlockPos p_415922_, BlockState p_416350_, FluidState p_415551_) - Specified by:
placeLiquidin interfaceLiquidBlockContainer- Specified by:
placeLiquidin interfaceSimpleWaterloggedBlock
-
setPlacedBy
public void setPlacedBy(Level p_418520_, BlockPos p_418137_, BlockState p_418409_, @Nullable LivingEntity p_418198_, ItemStack p_418118_) Description copied from class:BlockCalled by BlockItem after this block has been placed.- Overrides:
setPlacedByin classBlock
-
isPathfindable
- Overrides:
isPathfindablein classBlockBehaviour
-