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.BlockStatePairKey
Nested 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
Modifier and TypeFieldDescriptionstatic final IntegerProperty
static final int
static final int
protected static final float
protected static final VoxelShape
protected static final float
protected static final VoxelShape
static final EnumProperty<BambooLeaves>
static final int
protected static final float
protected static final VoxelShape
static final IntegerProperty
static final int
static final int
Fields 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_LIGHT
Fields 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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canSurvive
(BlockState p_48917_, LevelReader p_48918_, BlockPos p_48919_) protected void
getCollisionShape
(BlockState p_48950_, BlockGetter p_48951_, BlockPos p_48952_, CollisionContext p_48953_) float
getDestroyProgress
(BlockState p_48901_, Player p_48902_, BlockGetter p_48903_, BlockPos p_48904_) protected int
getHeightAboveUpToMax
(BlockGetter p_48883_, BlockPos p_48884_) protected int
getHeightBelowUpToMax
(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 void
growBamboo
(BlockState p_220732_, Level p_220733_, BlockPos p_220734_, RandomSource p_220735_, int p_220736_) boolean
isBonemealSuccess
(Level p_220722_, RandomSource p_220723_, BlockPos p_220724_, BlockState p_220725_) boolean
isCollisionShapeFullBlock
(BlockState p_181159_, BlockGetter p_181160_, BlockPos p_181161_) boolean
isPathfindable
(BlockState p_48906_, BlockGetter p_48907_, BlockPos p_48908_, PathComputationType p_48909_) boolean
isRandomlyTicking
(BlockState p_48930_) boolean
isValidBonemealTarget
(BlockGetter p_48886_, BlockPos p_48887_, BlockState p_48888_, boolean p_48889_) void
performBonemeal
(ServerLevel p_220717_, RandomSource p_220718_, BlockPos p_220719_, BlockState p_220720_) boolean
propagatesSkylightDown
(BlockState p_48941_, BlockGetter p_48942_, BlockPos p_48943_) void
randomTick
(BlockState p_220738_, ServerLevel p_220739_, BlockPos p_220740_, RandomSource p_220741_) void
tick
(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, withPropertiesOf
Methods 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, useShapeForLightOcclusion
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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, supportsExternalFaceHiding
Methods 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:
createBlockStateDefinition
in classBlock
-
propagatesSkylightDown
- Overrides:
propagatesSkylightDown
in classBlock
-
getShape
public VoxelShape getShape(BlockState p_48945_, BlockGetter p_48946_, BlockPos p_48947_, CollisionContext p_48948_) - Overrides:
getShape
in classBlockBehaviour
-
isPathfindable
public boolean isPathfindable(BlockState p_48906_, BlockGetter p_48907_, BlockPos p_48908_, PathComputationType p_48909_) - Overrides:
isPathfindable
in classBlockBehaviour
-
getCollisionShape
public VoxelShape getCollisionShape(BlockState p_48950_, BlockGetter p_48951_, BlockPos p_48952_, CollisionContext p_48953_) - Overrides:
getCollisionShape
in classBlockBehaviour
-
isCollisionShapeFullBlock
public boolean isCollisionShapeFullBlock(BlockState p_181159_, BlockGetter p_181160_, BlockPos p_181161_) - Overrides:
isCollisionShapeFullBlock
in classBlockBehaviour
-
getStateForPlacement
- Overrides:
getStateForPlacement
in classBlock
-
tick
public void tick(BlockState p_220727_, ServerLevel p_220728_, BlockPos p_220729_, RandomSource p_220730_) - Overrides:
tick
in classBlockBehaviour
-
isRandomlyTicking
- Overrides:
isRandomlyTicking
in classBlock
-
randomTick
public void randomTick(BlockState p_220738_, ServerLevel p_220739_, BlockPos p_220740_, RandomSource p_220741_) - Overrides:
randomTick
in classBlockBehaviour
-
canSurvive
- Overrides:
canSurvive
in classBlockBehaviour
-
updateShape
public BlockState updateShape(BlockState p_48921_, Direction p_48922_, BlockState p_48923_, LevelAccessor p_48924_, BlockPos p_48925_, BlockPos p_48926_) - Overrides:
updateShape
in classBlockBehaviour
-
isValidBonemealTarget
public boolean isValidBonemealTarget(BlockGetter p_48886_, BlockPos p_48887_, BlockState p_48888_, boolean p_48889_) - Specified by:
isValidBonemealTarget
in interfaceBonemealableBlock
-
isBonemealSuccess
public boolean isBonemealSuccess(Level p_220722_, RandomSource p_220723_, BlockPos p_220724_, BlockState p_220725_) - Specified by:
isBonemealSuccess
in interfaceBonemealableBlock
-
performBonemeal
public void performBonemeal(ServerLevel p_220717_, RandomSource p_220718_, BlockPos p_220719_, BlockState p_220720_) - Specified by:
performBonemeal
in interfaceBonemealableBlock
-
getDestroyProgress
public float getDestroyProgress(BlockState p_48901_, Player p_48902_, BlockGetter p_48903_, BlockPos p_48904_) - Overrides:
getDestroyProgress
in 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:
getPlant
in interfaceIPlantable
-