Package net.minecraft.world.level.block
Class BambooBlock
java.lang.Object
net.minecraft.world.level.block.state.BlockBehaviour
net.minecraft.world.level.block.Block
net.minecraft.world.level.block.BambooBlock
- All Implemented Interfaces:
BonemealableBlock,ItemLike,IForgeBlock,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.OffsetType, BlockBehaviour.Properties, BlockBehaviour.StateArgumentPredicate<A>, BlockBehaviour.StatePredicate -
Field Summary
FieldsModifier 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.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_DROPS, UPDATE_SUPPRESS_LIGHTFields inherited from class net.minecraft.world.level.block.state.BlockBehaviour
drops, dynamicShape, explosionResistance, friction, hasCollision, isRandomlyTicking, jumpFactor, material, properties, soundType, speedFactor, UPDATE_SHAPE_ORDER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanSurvive(BlockState p_48917_, LevelReader p_48918_, BlockPos p_48919_) protected voidgetCollisionShape(BlockState p_48950_, BlockGetter p_48951_, BlockPos p_48952_, CollisionContext p_48953_) floatgetDestroyProgress(BlockState p_48901_, Player p_48902_, BlockGetter p_48903_, BlockPos p_48904_) protected intgetHeightAboveUpToMax(BlockGetter p_48883_, BlockPos p_48884_) protected intgetHeightBelowUpToMax(BlockGetter p_48933_, BlockPos p_48934_) getPlant(BlockGetter world, BlockPos pos) getShape(BlockState p_48945_, BlockGetter p_48946_, BlockPos p_48947_, CollisionContext p_48948_) getStateForPlacement(BlockPlaceContext p_48881_) protected voidgrowBamboo(BlockState p_220732_, Level p_220733_, BlockPos p_220734_, RandomSource p_220735_, int p_220736_) booleanisBonemealSuccess(Level p_220722_, RandomSource p_220723_, BlockPos p_220724_, BlockState p_220725_) booleanisCollisionShapeFullBlock(BlockState p_181159_, BlockGetter p_181160_, BlockPos p_181161_) booleanisPathfindable(BlockState p_48906_, BlockGetter p_48907_, BlockPos p_48908_, PathComputationType p_48909_) booleanisRandomlyTicking(BlockState p_48930_) booleanisValidBonemealTarget(BlockGetter p_48886_, BlockPos p_48887_, BlockState p_48888_, boolean p_48889_) voidperformBonemeal(ServerLevel p_220717_, RandomSource p_220718_, BlockPos p_220719_, BlockState p_220720_) booleanpropagatesSkylightDown(BlockState p_48941_, BlockGetter p_48942_, BlockPos p_48943_) voidrandomTick(BlockState p_220738_, ServerLevel p_220739_, BlockPos p_220740_, RandomSource p_220741_) voidtick(BlockState p_220727_, ServerLevel p_220728_, BlockPos p_220729_, RandomSource p_220730_) updateShape(BlockState p_48921_, Direction p_48922_, BlockState p_48923_, LevelAccessor p_48924_, BlockPos p_48925_, BlockPos p_48926_) Methods 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, dropResources, fallOn, fillItemCategory, 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.BlockBehaviour
attack, canBeReplaced, canBeReplaced, defaultDestroyTime, defaultMaterialColor, entityInside, getAnalogOutputSignal, getBlockSupportShape, getDirectSignal, getDrops, getFluidState, getInteractionShape, getLightBlock, getLootTable, getMaxHorizontalOffset, getMaxVerticalOffset, getMenuProvider, getOcclusionShape, getPistonPushReaction, getRenderShape, getSeed, getShadeBrightness, getSignal, getVisualShape, hasAnalogOutputSignal, isAir, isOcclusionShapeFullBlock, isSignalSource, mirror, neighborChanged, onPlace, onProjectileHit, onRemove, rotate, skipRendering, spawnAfterBreak, triggerEvent, updateIndirectNeighbourShapes, use, useShapeForLightOcclusionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraftforge.common.extensions.IForgeBlock
addLandingEffects, addRunningEffects, canBeHydrated, canConnectRedstone, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canStickTo, collisionExtendsVertically, getAdjacentBlockPathType, getAppearance, getBeaconColorMultiplier, getBedDirection, getBlockPathType, getCloneItemStack, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getFireSpreadSpeed, getFlammability, getFriction, getLightEmission, getMapColor, 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.IPlantable
getPlantType
-
Field Details
-
SMALL_LEAVES_AABB_OFFSET
protected static final float SMALL_LEAVES_AABB_OFFSET- See Also:
-
LARGE_LEAVES_AABB_OFFSET
protected static final float LARGE_LEAVES_AABB_OFFSET- See Also:
-
COLLISION_AABB_OFFSET
protected static final float COLLISION_AABB_OFFSET- See Also:
-
SMALL_SHAPE
-
LARGE_SHAPE
-
COLLISION_SHAPE
-
AGE
-
LEAVES
-
STAGE
-
MAX_HEIGHT
public static final int MAX_HEIGHT- See Also:
-
STAGE_GROWING
public static final int STAGE_GROWING- See Also:
-
STAGE_DONE_GROWING
public static final int STAGE_DONE_GROWING- See Also:
-
AGE_THIN_BAMBOO
public static final int AGE_THIN_BAMBOO- See Also:
-
AGE_THICK_BAMBOO
public static final int AGE_THICK_BAMBOO- See Also:
-
-
Constructor Details
-
BambooBlock
-
-
Method Details
-
createBlockStateDefinition
- Overrides:
createBlockStateDefinitionin classBlock
-
propagatesSkylightDown
- Overrides:
propagatesSkylightDownin classBlock
-
getShape
public VoxelShape getShape(BlockState p_48945_, BlockGetter p_48946_, BlockPos p_48947_, CollisionContext p_48948_) - Overrides:
getShapein classBlockBehaviour
-
isPathfindable
public boolean isPathfindable(BlockState p_48906_, BlockGetter p_48907_, BlockPos p_48908_, PathComputationType p_48909_) - Overrides:
isPathfindablein classBlockBehaviour
-
getCollisionShape
public VoxelShape getCollisionShape(BlockState p_48950_, BlockGetter p_48951_, BlockPos p_48952_, CollisionContext p_48953_) - Overrides:
getCollisionShapein classBlockBehaviour
-
isCollisionShapeFullBlock
public boolean isCollisionShapeFullBlock(BlockState p_181159_, BlockGetter p_181160_, BlockPos p_181161_) - Overrides:
isCollisionShapeFullBlockin classBlockBehaviour
-
getStateForPlacement
- Overrides:
getStateForPlacementin classBlock
-
tick
public void tick(BlockState p_220727_, ServerLevel p_220728_, BlockPos p_220729_, RandomSource p_220730_) - Overrides:
tickin classBlockBehaviour
-
isRandomlyTicking
- Overrides:
isRandomlyTickingin classBlock
-
randomTick
public void randomTick(BlockState p_220738_, ServerLevel p_220739_, BlockPos p_220740_, RandomSource p_220741_) - Overrides:
randomTickin classBlockBehaviour
-
canSurvive
- Overrides:
canSurvivein classBlockBehaviour
-
updateShape
public BlockState updateShape(BlockState p_48921_, Direction p_48922_, BlockState p_48923_, LevelAccessor p_48924_, BlockPos p_48925_, BlockPos p_48926_) - Overrides:
updateShapein classBlockBehaviour
-
isValidBonemealTarget
public boolean isValidBonemealTarget(BlockGetter p_48886_, BlockPos p_48887_, BlockState p_48888_, boolean p_48889_) - Specified by:
isValidBonemealTargetin interfaceBonemealableBlock
-
isBonemealSuccess
public boolean isBonemealSuccess(Level p_220722_, RandomSource p_220723_, BlockPos p_220724_, BlockState p_220725_) - Specified by:
isBonemealSuccessin interfaceBonemealableBlock
-
performBonemeal
public void performBonemeal(ServerLevel p_220717_, RandomSource p_220718_, BlockPos p_220719_, BlockState p_220720_) - Specified by:
performBonemealin interfaceBonemealableBlock
-
getDestroyProgress
public float getDestroyProgress(BlockState p_48901_, Player p_48902_, BlockGetter p_48903_, BlockPos p_48904_) - Overrides:
getDestroyProgressin classBlockBehaviour
-
growBamboo
protected void growBamboo(BlockState p_220732_, Level p_220733_, BlockPos p_220734_, RandomSource p_220735_, int p_220736_) -
getHeightAboveUpToMax
-
getHeightBelowUpToMax
-
getPlant
- Specified by:
getPlantin interfaceIPlantable
-