Package net.minecraft.world.level.block
Class MangrovePropaguleBlock
java.lang.Object
net.minecraft.world.level.block.state.BlockBehaviour
net.minecraft.world.level.block.Block
net.minecraft.world.level.block.BushBlock
net.minecraft.world.level.block.SaplingBlock
net.minecraft.world.level.block.MangrovePropaguleBlock
- All Implemented Interfaces:
FeatureElement,BonemealableBlock,BucketPickup,LiquidBlockContainer,SimpleWaterloggedBlock,ItemLike,IBlockExtension,IBucketPickupExtension,IPlantable
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.level.block.Block
Block.BlockStatePairKeyNested classes/interfaces inherited from class net.minecraft.world.level.block.state.BlockBehaviour
BlockBehaviour.BlockStateBase, BlockBehaviour.OffsetFunction, BlockBehaviour.OffsetType, BlockBehaviour.Properties, BlockBehaviour.StateArgumentPredicate<A>, BlockBehaviour.StatePredicateNested classes/interfaces inherited from interface net.minecraft.world.level.block.BonemealableBlock
BonemealableBlock.Type -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final IntegerPropertystatic final com.mojang.serialization.MapCodec<MangrovePropaguleBlock> static final BooleanPropertystatic final intprivate static final VoxelShape[]private static final BooleanPropertyFields inherited from class net.minecraft.world.level.block.SaplingBlock
AABB_OFFSET, SHAPE, STAGE, treeGrowerFields 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_SUPPRESS_DROPSFields inherited from class net.minecraft.world.level.block.state.BlockBehaviour
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
ConstructorsConstructorDescriptionMangrovePropaguleBlock(TreeGrower p_304562_, BlockBehaviour.Properties p_221449_) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancanSurvive(BlockState p_221473_, LevelReader p_221474_, BlockPos p_221475_) com.mojang.serialization.MapCodec<MangrovePropaguleBlock> codec()protected voidstatic BlockStatestatic BlockStatecreateNewHangingPropagule(int p_221486_) protected FluidStategetFluidState(BlockState p_221494_) protected VoxelShapegetShape(BlockState p_221468_, BlockGetter p_221469_, BlockPos p_221470_, CollisionContext p_221471_) getStateForPlacement(BlockPlaceContext p_221456_) booleanisBonemealSuccess(Level p_221463_, RandomSource p_221464_, BlockPos p_221465_, BlockState p_221466_) private static booleanisFullyGrown(BlockState p_221502_) private static booleanisHanging(BlockState p_221500_) booleanisValidBonemealTarget(LevelReader p_256541_, BlockPos p_221459_, BlockState p_221460_) protected booleanmayPlaceOn(BlockState p_221496_, BlockGetter p_221497_, BlockPos p_221498_) voidperformBonemeal(ServerLevel p_221451_, RandomSource p_221452_, BlockPos p_221453_, BlockState p_221454_) protected voidrandomTick(BlockState p_221488_, ServerLevel p_221489_, BlockPos p_221490_, RandomSource p_221491_) protected BlockStateupdateShape(BlockState p_221477_, Direction p_221478_, BlockState p_221479_, LevelAccessor p_221480_, BlockPos p_221481_, BlockPos p_221482_) Methods inherited from class net.minecraft.world.level.block.SaplingBlock
advanceTreeMethods inherited from class net.minecraft.world.level.block.BushBlock
getPlant, isPathfindable, propagatesSkylightDownMethods inherited from class net.minecraft.world.level.block.Block
animateTick, appendHoverText, asBlock, asItem, box, builtInRegistryHolder, byItem, canSupportCenter, canSupportRigidBlock, canSustainPlant, defaultBlockState, destroy, dropFromExplosion, dropResources, dropResources, dropResources, fallOn, getCloneItemStack, getDescriptionId, getDrops, getDrops, getExplosionResistance, getFriction, getId, getJumpFactor, getName, getRenderPropertiesInternal, getShapeForEachState, getSpeedFactor, getStateDefinition, handlePrecipitation, hasDynamicShape, initializeClient, isExceptionForConnection, isFaceFull, isPossibleToRespawnInThis, isShapeFullBlock, playerDestroy, playerWillDestroy, popExperience, popResource, popResourceFromFace, pushEntitiesUp, registerDefaultState, setPlacedBy, shouldRenderFace, spawnDestroyParticles, stateById, stepOn, toString, tryDropExperience, updateEntityAfterFallOn, updateFromNeighbourShapes, updateOrDestroy, updateOrDestroy, wasExploded, withPropertiesOfMethods inherited from class net.minecraft.world.level.block.state.BlockBehaviour
attack, canBeReplaced, canBeReplaced, defaultDestroyTime, defaultMapColor, entityInside, getAnalogOutputSignal, getBlockSupportShape, getCollisionShape, getDestroyProgress, getDirectSignal, getDrops, getInteractionShape, getLightBlock, getLootTable, getMaxHorizontalOffset, getMaxVerticalOffset, getMenuProvider, getOcclusionShape, getRenderShape, getSeed, getShadeBrightness, getSignal, getSoundType, getVisualShape, hasAnalogOutputSignal, isAir, isCollisionShapeFullBlock, isOcclusionShapeFullBlock, isRandomlyTicking, isSignalSource, mirror, neighborChanged, onExplosionHit, onPlace, onProjectileHit, onRemove, properties, propertiesCodec, requiredFeatures, rotate, simpleCodec, skipRendering, spawnAfterBreak, tick, 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.level.block.BonemealableBlock
getParticlePos, getTypeMethods 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, 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, supportsExternalFaceHidingMethods inherited from interface net.neoforged.neoforge.common.extensions.IBucketPickupExtension
getPickupSoundMethods inherited from interface net.neoforged.neoforge.common.IPlantable
getPlantTypeMethods inherited from interface net.minecraft.world.level.block.SimpleWaterloggedBlock
canPlaceLiquid, getPickupSound, pickupBlock, placeLiquid
-
Field Details
-
CODEC
-
AGE
-
MAX_AGE
public static final int MAX_AGE- See Also:
-
SHAPE_PER_AGE
-
WATERLOGGED
-
HANGING
-
-
Constructor Details
-
MangrovePropaguleBlock
-
-
Method Details
-
codec
- Overrides:
codecin classSaplingBlock
-
createBlockStateDefinition
- Overrides:
createBlockStateDefinitionin classSaplingBlock
-
mayPlaceOn
- Overrides:
mayPlaceOnin classBushBlock
-
getStateForPlacement
- Overrides:
getStateForPlacementin classBlock
-
getShape
protected VoxelShape getShape(BlockState p_221468_, BlockGetter p_221469_, BlockPos p_221470_, CollisionContext p_221471_) - Overrides:
getShapein classSaplingBlock
-
canSurvive
- Overrides:
canSurvivein classBushBlock
-
updateShape
protected BlockState updateShape(BlockState p_221477_, Direction p_221478_, BlockState p_221479_, LevelAccessor p_221480_, BlockPos p_221481_, BlockPos p_221482_) - Overrides:
updateShapein classBushBlock
-
getFluidState
- Overrides:
getFluidStatein classBlockBehaviour
-
randomTick
protected void randomTick(BlockState p_221488_, ServerLevel p_221489_, BlockPos p_221490_, RandomSource p_221491_) - Overrides:
randomTickin classSaplingBlock
-
isValidBonemealTarget
public boolean isValidBonemealTarget(LevelReader p_256541_, BlockPos p_221459_, BlockState p_221460_) - Specified by:
isValidBonemealTargetin interfaceBonemealableBlock- Overrides:
isValidBonemealTargetin classSaplingBlock
-
isBonemealSuccess
public boolean isBonemealSuccess(Level p_221463_, RandomSource p_221464_, BlockPos p_221465_, BlockState p_221466_) - Specified by:
isBonemealSuccessin interfaceBonemealableBlock- Overrides:
isBonemealSuccessin classSaplingBlock
-
performBonemeal
public void performBonemeal(ServerLevel p_221451_, RandomSource p_221452_, BlockPos p_221453_, BlockState p_221454_) - Specified by:
performBonemealin interfaceBonemealableBlock- Overrides:
performBonemealin classSaplingBlock
-
isHanging
-
isFullyGrown
-
createNewHangingPropagule
-
createNewHangingPropagule
-