Package net.minecraft.block
Class BambooBlock
java.lang.Object
net.minecraft.block.AbstractBlock
net.minecraft.block.Block
net.minecraft.block.BambooBlock
- All Implemented Interfaces:
Fertilizable,ItemConvertible
public class BambooBlock extends Block implements Fertilizable
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.block.Block
Block.NeighborGroupNested classes/interfaces inherited from class net.minecraft.block.AbstractBlock
AbstractBlock.AbstractBlockState, AbstractBlock.ContextPredicate, AbstractBlock.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A> -
Field Summary
Fields Modifier and Type Field Description static IntPropertyAGEprotected static VoxelShapeLARGE_LEAVES_SHAPEstatic EnumProperty<BambooLeaves>LEAVESprotected static VoxelShapeNO_LEAVES_SHAPEprotected static VoxelShapeSMALL_LEAVES_SHAPEstatic IntPropertySTAGEFields inherited from class net.minecraft.block.Block
LOGGER, STATE_IDS, stateManagerFields inherited from class net.minecraft.block.AbstractBlock
collidable, dynamicBounds, FACINGS, jumpVelocityMultiplier, lootTableId, material, randomTicks, resistance, settings, slipperiness, soundGroup, velocityMultiplier -
Constructor Summary
Constructors Constructor Description BambooBlock(AbstractBlock.Settings settings) -
Method Summary
Methods inherited from class net.minecraft.block.Block
addStacksForDisplay, afterBreak, appendTooltip, asBlock, asItem, canMobSpawnInside, cannotConnect, createCuboidShape, dropExperience, dropStack, dropStacks, dropStacks, dropStacks, getBlastResistance, getBlockFromItem, getDefaultState, getDroppedStacks, getDroppedStacks, getJumpVelocityMultiplier, getName, getPickStack, getRawIdFromState, getSlipperiness, getSoundGroup, getStateFromRawId, getStateManager, getTranslationKey, getVelocityMultiplier, hasDynamicBounds, hasTopRim, isFaceFullSquare, isShapeFullCube, onBreak, onBroken, onDestroyedByExplosion, onEntityLand, onLandedUpon, onPlaced, onSteppedOn, postProcessState, precipitationTick, pushEntitiesUpBeforeBlockChange, randomDisplayTick, replace, replace, setDefaultState, shouldDrawSide, shouldDropItemsOnExplosion, sideCoversSmallSquare, toStringMethods inherited from class net.minecraft.block.AbstractBlock
canBucketPlace, canReplace, createScreenHandlerFactory, emitsRedstonePower, getAmbientOcclusionLightLevel, getComparatorOutput, getCullingShape, getDefaultMapColor, getDroppedStacks, getFluidState, getLootTableId, getMaxModelOffset, getOpacity, getPistonBehavior, getRaycastShape, getRenderingSeed, getRenderType, getSidesShape, getStrongRedstonePower, getVisualShape, getWeakRedstonePower, hasComparatorOutput, hasSidedTransparency, isSideInvisible, mirror, neighborUpdate, onBlockAdded, onBlockBreakStart, onEntityCollision, onProjectileHit, onStacksDropped, onStateReplaced, onSyncedBlockEvent, onUse, prepare, rotate
-
Field Details
-
SMALL_LEAVES_SHAPE
-
LARGE_LEAVES_SHAPE
-
NO_LEAVES_SHAPE
-
AGE
-
LEAVES
-
STAGE
-
-
Constructor Details
-
BambooBlock
-
-
Method Details
-
appendProperties
- Overrides:
appendPropertiesin classBlock
-
getOffsetType
- Overrides:
getOffsetTypein classAbstractBlock
-
isTranslucent
- Overrides:
isTranslucentin classBlock
-
getOutlineShape
public VoxelShape getOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context)- Overrides:
getOutlineShapein classAbstractBlock
-
getCollisionShape
public VoxelShape getCollisionShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context)- Overrides:
getCollisionShapein classAbstractBlock
-
getPlacementState
- Overrides:
getPlacementStatein classBlock
-
scheduledTick
- Overrides:
scheduledTickin classAbstractBlock
-
hasRandomTicks
- Overrides:
hasRandomTicksin classBlock
-
randomTick
- Overrides:
randomTickin classAbstractBlock
-
canPlaceAt
- Overrides:
canPlaceAtin classAbstractBlock
-
getStateForNeighborUpdate
public BlockState getStateForNeighborUpdate(BlockState state, Direction direction, BlockState newState, WorldAccess world, BlockPos pos, BlockPos posFrom)- Overrides:
getStateForNeighborUpdatein classAbstractBlock
-
isFertilizable
- Specified by:
isFertilizablein interfaceFertilizable
-
canGrow
- Specified by:
canGrowin interfaceFertilizable
-
grow
- Specified by:
growin interfaceFertilizable
-
calcBlockBreakingDelta
public float calcBlockBreakingDelta(BlockState state, PlayerEntity player, BlockView world, BlockPos pos)- Overrides:
calcBlockBreakingDeltain classAbstractBlock
-
updateLeaves
protected void updateLeaves(BlockState state, World world, BlockPos pos, Random random, int height) -
countBambooAbove
-
countBambooBelow
-