Package net.minecraft.world.level.block
Class BambooStalkBlock
java.lang.Object
net.minecraft.world.level.block.state.BlockBehaviour
net.minecraft.world.level.block.Block
net.minecraft.world.level.block.BambooStalkBlock
- All Implemented Interfaces:
- FeatureElement,- BonemealableBlock,- ItemLike,- IForgeBlock,- IPlantable
- 
Nested Class SummaryNested classes/interfaces inherited from class net.minecraft.world.level.block.BlockBlock.BlockStatePairKeyNested classes/interfaces inherited from class net.minecraft.world.level.block.state.BlockBehaviourBlockBehaviour.BlockStateBase, BlockBehaviour.OffsetFunction, BlockBehaviour.OffsetType, BlockBehaviour.Properties, BlockBehaviour.StateArgumentPredicate<A>, BlockBehaviour.StatePredicate
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final IntegerPropertystatic final intstatic final intprotected static final floatprotected static final VoxelShapeprotected static final floatprotected static final VoxelShapestatic final EnumProperty<BambooLeaves>static final intprotected static final floatprotected static final VoxelShapestatic final IntegerPropertystatic final intstatic final intFields inherited from class net.minecraft.world.level.block.BlockBLOCK_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.BlockBehaviourdrops, dynamicShape, explosionResistance, friction, hasCollision, isRandomlyTicking, jumpFactor, properties, requiredFeatures, soundType, speedFactor, UPDATE_SHAPE_ORDERFields inherited from interface net.minecraft.world.flag.FeatureElementFILTERED_REGISTRIES
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleancanSurvive(BlockState p_261860_, LevelReader p_262154_, BlockPos p_261493_) protected voidgetCollisionShape(BlockState p_261560_, BlockGetter p_261965_, BlockPos p_261950_, CollisionContext p_261571_) floatgetDestroyProgress(BlockState p_261691_, Player p_262171_, BlockGetter p_261621_, BlockPos p_261500_) protected intgetHeightAboveUpToMax(BlockGetter p_261541_, BlockPos p_261593_) protected intgetHeightBelowUpToMax(BlockGetter p_261927_, BlockPos p_261481_) getPlant(BlockGetter world, BlockPos pos) getShape(BlockState p_261515_, BlockGetter p_261586_, BlockPos p_261526_, CollisionContext p_261930_) getStateForPlacement(BlockPlaceContext p_261764_) protected voidgrowBamboo(BlockState p_261855_, Level p_262076_, BlockPos p_262109_, RandomSource p_261633_, int p_261759_) booleanisBonemealSuccess(Level p_261870_, RandomSource p_261802_, BlockPos p_262123_, BlockState p_261972_) booleanisCollisionShapeFullBlock(BlockState p_262062_, BlockGetter p_261848_, BlockPos p_261466_) booleanisPathfindable(BlockState p_262166_, BlockGetter p_262143_, BlockPos p_261968_, PathComputationType p_261513_) booleanisRandomlyTicking(BlockState p_262083_) booleanisValidBonemealTarget(LevelReader p_262065_, BlockPos p_262033_, BlockState p_261700_) voidperformBonemeal(ServerLevel p_261845_, RandomSource p_262034_, BlockPos p_261955_, BlockState p_261685_) booleanpropagatesSkylightDown(BlockState p_261479_, BlockGetter p_261942_, BlockPos p_261844_) voidrandomTick(BlockState p_261931_, ServerLevel p_261751_, BlockPos p_261616_, RandomSource p_261766_) voidtick(BlockState p_261612_, ServerLevel p_261527_, BlockPos p_261846_, RandomSource p_261638_) updateShape(BlockState p_261476_, Direction p_261512_, BlockState p_262167_, LevelAccessor p_261956_, BlockPos p_261876_, BlockPos p_262140_) Methods inherited from class net.minecraft.world.level.block.BlockanimateTick, appendHoverText, asBlock, asItem, box, builtInRegistryHolder, byItem, canSupportCenter, canSupportRigidBlock, canSustainPlant, defaultBlockState, destroy, dropFromExplosion, dropResources, dropResources, dropResources, dropResources, fallOn, getCloneItemStack, getDescriptionId, getDrops, getDrops, getExplosionResistance, getFriction, getId, getJumpFactor, getName, getRenderPropertiesInternal, getShapeForEachState, getSoundType, 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.BlockBehaviourattack, canBeReplaced, canBeReplaced, defaultDestroyTime, defaultMapColor, entityInside, getAnalogOutputSignal, getBlockSupportShape, getDirectSignal, getDrops, getFluidState, getInteractionShape, getLightBlock, getLootTable, getMaxHorizontalOffset, getMaxVerticalOffset, getMenuProvider, getOcclusionShape, getRenderShape, getSeed, getShadeBrightness, getSignal, getVisualShape, hasAnalogOutputSignal, isAir, isOcclusionShapeFullBlock, isSignalSource, mirror, neighborChanged, onPlace, onProjectileHit, onRemove, requiredFeatures, rotate, skipRendering, spawnAfterBreak, triggerEvent, updateIndirectNeighbourShapes, use, useShapeForLightOcclusionMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.world.flag.FeatureElementisEnabledMethods inherited from interface net.minecraftforge.common.extensions.IForgeBlockaddLandingEffects, addRunningEffects, canBeHydrated, canConnectRedstone, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canStickTo, collisionExtendsVertically, getAdjacentBlockPathType, getAppearance, getBeaconColorMultiplier, getBedDirection, getBlockPathType, getCloneItemStack, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getFireSpreadSpeed, getFlammability, getFriction, getLightEmission, getMapColor, getPistonPushReaction, getRespawnPosition, getSoundType, getStateAtViewpoint, getToolModifiedState, getWeakChanges, hidesNeighborFace, isBed, isBurning, isConduitFrame, isFertile, isFireSource, isFlammable, isLadder, isPortalFrame, isScaffolding, isSlimeBlock, isStickyBlock, isValidSpawn, makesOpenTrapdoorAboveClimbable, onBlockExploded, onBlockStateChange, onCaughtFire, onDestroyedByPlayer, onNeighborChange, onTreeGrow, rotate, setBedOccupied, shouldCheckWeakPower, shouldDisplayFluidOverlay, supportsExternalFaceHidingMethods inherited from interface net.minecraftforge.common.IPlantablegetPlantType
- 
Field Details- 
SMALL_LEAVES_AABB_OFFSETprotected static final float SMALL_LEAVES_AABB_OFFSET- See Also:
 
- 
LARGE_LEAVES_AABB_OFFSETprotected static final float LARGE_LEAVES_AABB_OFFSET- See Also:
 
- 
COLLISION_AABB_OFFSETprotected static final float COLLISION_AABB_OFFSET- See Also:
 
- 
SMALL_SHAPE
- 
LARGE_SHAPE
- 
COLLISION_SHAPE
- 
AGE
- 
LEAVES
- 
STAGE
- 
MAX_HEIGHTpublic static final int MAX_HEIGHT- See Also:
 
- 
STAGE_GROWINGpublic static final int STAGE_GROWING- See Also:
 
- 
STAGE_DONE_GROWINGpublic static final int STAGE_DONE_GROWING- See Also:
 
- 
AGE_THIN_BAMBOOpublic static final int AGE_THIN_BAMBOO- See Also:
 
- 
AGE_THICK_BAMBOOpublic static final int AGE_THICK_BAMBOO- See Also:
 
 
- 
- 
Constructor Details- 
BambooStalkBlock
 
- 
- 
Method Details- 
createBlockStateDefinition- Overrides:
- createBlockStateDefinitionin class- Block
 
- 
propagatesSkylightDownpublic boolean propagatesSkylightDown(BlockState p_261479_, BlockGetter p_261942_, BlockPos p_261844_) - Overrides:
- propagatesSkylightDownin class- Block
 
- 
getShapepublic VoxelShape getShape(BlockState p_261515_, BlockGetter p_261586_, BlockPos p_261526_, CollisionContext p_261930_) - Overrides:
- getShapein class- BlockBehaviour
 
- 
isPathfindablepublic boolean isPathfindable(BlockState p_262166_, BlockGetter p_262143_, BlockPos p_261968_, PathComputationType p_261513_) - Overrides:
- isPathfindablein class- BlockBehaviour
 
- 
getCollisionShapepublic VoxelShape getCollisionShape(BlockState p_261560_, BlockGetter p_261965_, BlockPos p_261950_, CollisionContext p_261571_) - Overrides:
- getCollisionShapein class- BlockBehaviour
 
- 
isCollisionShapeFullBlockpublic boolean isCollisionShapeFullBlock(BlockState p_262062_, BlockGetter p_261848_, BlockPos p_261466_) - Overrides:
- isCollisionShapeFullBlockin class- BlockBehaviour
 
- 
getStateForPlacement- Overrides:
- getStateForPlacementin class- Block
 
- 
tickpublic void tick(BlockState p_261612_, ServerLevel p_261527_, BlockPos p_261846_, RandomSource p_261638_) - Overrides:
- tickin class- BlockBehaviour
 
- 
isRandomlyTicking- Overrides:
- isRandomlyTickingin class- Block
 
- 
randomTickpublic void randomTick(BlockState p_261931_, ServerLevel p_261751_, BlockPos p_261616_, RandomSource p_261766_) - Overrides:
- randomTickin class- BlockBehaviour
 
- 
canSurvive- Overrides:
- canSurvivein class- BlockBehaviour
 
- 
updateShapepublic BlockState updateShape(BlockState p_261476_, Direction p_261512_, BlockState p_262167_, LevelAccessor p_261956_, BlockPos p_261876_, BlockPos p_262140_) - Overrides:
- updateShapein class- BlockBehaviour
 
- 
isValidBonemealTargetpublic boolean isValidBonemealTarget(LevelReader p_262065_, BlockPos p_262033_, BlockState p_261700_) - Specified by:
- isValidBonemealTargetin interface- BonemealableBlock
 
- 
isBonemealSuccesspublic boolean isBonemealSuccess(Level p_261870_, RandomSource p_261802_, BlockPos p_262123_, BlockState p_261972_) - Specified by:
- isBonemealSuccessin interface- BonemealableBlock
 
- 
performBonemealpublic void performBonemeal(ServerLevel p_261845_, RandomSource p_262034_, BlockPos p_261955_, BlockState p_261685_) - Specified by:
- performBonemealin interface- BonemealableBlock
 
- 
getDestroyProgresspublic float getDestroyProgress(BlockState p_261691_, Player p_262171_, BlockGetter p_261621_, BlockPos p_261500_) - Overrides:
- getDestroyProgressin class- BlockBehaviour
 
- 
growBambooprotected void growBamboo(BlockState p_261855_, Level p_262076_, BlockPos p_262109_, RandomSource p_261633_, int p_261759_) 
- 
getHeightAboveUpToMax
- 
getHeightBelowUpToMax
- 
getPlant- Specified by:
- getPlantin interface- IPlantable
 
 
-