public class BambooBlock extends Block implements Fertilizable
Block.NeighborGroupAbstractBlock.AbstractBlockState, AbstractBlock.ContextPredicate, AbstractBlock.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A>| Modifier and Type | Field and Description |
|---|---|
static IntProperty |
AGE |
protected static VoxelShape |
LARGE_LEAVES_SHAPE |
static EnumProperty<BambooLeaves> |
LEAVES |
protected static VoxelShape |
NO_LEAVES_SHAPE |
protected static VoxelShape |
SMALL_LEAVES_SHAPE |
static IntProperty |
STAGE |
LOGGER, STATE_IDS, stateManagercollidable, dynamicBounds, FACINGS, jumpVelocityMultiplier, lootTableId, material, randomTicks, resistance, settings, slipperiness, soundGroup, velocityMultiplier| Constructor and Description |
|---|
BambooBlock(AbstractBlock.Settings settings) |
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, is, isFaceFullSquare, isIn, isShapeFullCube, onBreak, onBroken, onDestroyedByExplosion, onEntityLand, onLandedUpon, onPlaced, onSteppedOn, postProcessState, pushEntitiesUpBeforeBlockChange, rainTick, randomDisplayTick, replace, replace, setDefaultState, shouldDrawSide, shouldDropItemsOnExplosion, sideCoversSmallSquare, toStringcanBucketPlace, canReplace, createScreenHandlerFactory, emitsRedstonePower, getAmbientOcclusionLightLevel, getComparatorOutput, getCullingShape, getDefaultMaterialColor, getDroppedStacks, getFluidState, getLootTableId, getOpacity, getPistonBehavior, getRaycastShape, getRenderingSeed, getRenderType, getSidesShape, getStrongRedstonePower, getVisualShape, getWeakRedstonePower, hasBlockEntity, hasComparatorOutput, hasSidedTransparency, isSideInvisible, mirror, neighborUpdate, onBlockAdded, onBlockBreakStart, onEntityCollision, onProjectileHit, onStacksDropped, onStateReplaced, onSyncedBlockEvent, onUse, prepare, rotateprotected static final VoxelShape SMALL_LEAVES_SHAPE
protected static final VoxelShape LARGE_LEAVES_SHAPE
protected static final VoxelShape NO_LEAVES_SHAPE
public static final IntProperty AGE
public static final EnumProperty<BambooLeaves> LEAVES
public static final IntProperty STAGE
public BambooBlock(AbstractBlock.Settings settings)
protected void appendProperties(StateManager.Builder<Block,BlockState> builder)
appendProperties in class Blockpublic AbstractBlock.OffsetType getOffsetType()
getOffsetType in class AbstractBlockpublic boolean isTranslucent(BlockState state, BlockView world, BlockPos pos)
isTranslucent in class Blockpublic VoxelShape getOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context)
getOutlineShape in class AbstractBlockpublic boolean canPathfindThrough(BlockState state, BlockView world, BlockPos pos, NavigationType type)
canPathfindThrough in class AbstractBlockpublic VoxelShape getCollisionShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context)
getCollisionShape in class AbstractBlock@Nullable public BlockState getPlacementState(ItemPlacementContext ctx)
getPlacementState in class Blockpublic void scheduledTick(BlockState state, ServerWorld world, BlockPos pos, Random random)
scheduledTick in class AbstractBlockpublic boolean hasRandomTicks(BlockState state)
hasRandomTicks in class Blockpublic void randomTick(BlockState state, ServerWorld world, BlockPos pos, Random random)
randomTick in class AbstractBlockpublic boolean canPlaceAt(BlockState state, WorldView world, BlockPos pos)
canPlaceAt in class AbstractBlockpublic BlockState getStateForNeighborUpdate(BlockState state, Direction direction, BlockState newState, WorldAccess world, BlockPos pos, BlockPos posFrom)
getStateForNeighborUpdate in class AbstractBlockpublic boolean isFertilizable(BlockView world, BlockPos pos, BlockState state, boolean isClient)
isFertilizable in interface Fertilizablepublic boolean canGrow(World world, Random random, BlockPos pos, BlockState state)
canGrow in interface Fertilizablepublic void grow(ServerWorld world, Random random, BlockPos pos, BlockState state)
grow in interface Fertilizablepublic float calcBlockBreakingDelta(BlockState state, PlayerEntity player, BlockView world, BlockPos pos)
calcBlockBreakingDelta in class AbstractBlockprotected void updateLeaves(BlockState state, World world, BlockPos pos, Random random, int height)