public class BambooSaplingBlock extends Block implements Fertilizable
Block.NeighborGroup
AbstractBlock.AbstractBlockState, AbstractBlock.ContextPredicate, AbstractBlock.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A>
Modifier and Type | Field and Description |
---|---|
protected static VoxelShape |
SHAPE |
LOGGER, STATE_IDS, stateManager
collidable, dynamicBounds, FACINGS, jumpVelocityMultiplier, lootTableId, material, randomTicks, resistance, settings, slipperiness, soundGroup, velocityMultiplier
Constructor and Description |
---|
BambooSaplingBlock(AbstractBlock.Settings settings) |
Modifier and Type | Method and Description |
---|---|
float |
calcBlockBreakingDelta(BlockState state,
PlayerEntity player,
BlockView world,
BlockPos pos) |
boolean |
canGrow(World world,
Random random,
BlockPos pos,
BlockState state) |
boolean |
canPlaceAt(BlockState state,
WorldView world,
BlockPos pos) |
AbstractBlock.OffsetType |
getOffsetType() |
VoxelShape |
getOutlineShape(BlockState state,
BlockView world,
BlockPos pos,
ShapeContext context) |
ItemStack |
getPickStack(BlockView world,
BlockPos pos,
BlockState state) |
BlockState |
getStateForNeighborUpdate(BlockState state,
Direction direction,
BlockState newState,
WorldAccess world,
BlockPos pos,
BlockPos posFrom) |
void |
grow(ServerWorld world,
Random random,
BlockPos pos,
BlockState state) |
protected void |
grow(World world,
BlockPos pos) |
boolean |
isFertilizable(BlockView world,
BlockPos pos,
BlockState state,
boolean isClient) |
void |
randomTick(BlockState state,
ServerWorld world,
BlockPos pos,
Random random) |
addStacksForDisplay, afterBreak, appendProperties, appendTooltip, asBlock, asItem, canMobSpawnInside, cannotConnect, createCuboidShape, dropExperience, dropStack, dropStacks, dropStacks, dropStacks, getBlastResistance, getBlockFromItem, getDefaultState, getDroppedStacks, getDroppedStacks, getJumpVelocityMultiplier, getName, getPlacementState, getRawIdFromState, getSlipperiness, getSoundGroup, getStateFromRawId, getStateManager, getTranslationKey, getVelocityMultiplier, hasDynamicBounds, hasRandomTicks, hasTopRim, is, isFaceFullSquare, isIn, isShapeFullCube, isTranslucent, onBreak, onBroken, onDestroyedByExplosion, onEntityLand, onLandedUpon, onPlaced, onSteppedOn, postProcessState, pushEntitiesUpBeforeBlockChange, rainTick, randomDisplayTick, replace, replace, setDefaultState, shouldDrawSide, shouldDropItemsOnExplosion, sideCoversSmallSquare, toString
canBucketPlace, canPathfindThrough, canReplace, createScreenHandlerFactory, emitsRedstonePower, getAmbientOcclusionLightLevel, getCollisionShape, 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, rotate, scheduledTick
protected static final VoxelShape SHAPE
public BambooSaplingBlock(AbstractBlock.Settings settings)
public AbstractBlock.OffsetType getOffsetType()
getOffsetType
in class AbstractBlock
public VoxelShape getOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context)
getOutlineShape
in class AbstractBlock
public void randomTick(BlockState state, ServerWorld world, BlockPos pos, Random random)
randomTick
in class AbstractBlock
public boolean canPlaceAt(BlockState state, WorldView world, BlockPos pos)
canPlaceAt
in class AbstractBlock
public BlockState getStateForNeighborUpdate(BlockState state, Direction direction, BlockState newState, WorldAccess world, BlockPos pos, BlockPos posFrom)
getStateForNeighborUpdate
in class AbstractBlock
@Environment(value=CLIENT) public ItemStack getPickStack(BlockView world, BlockPos pos, BlockState state)
getPickStack
in class Block
public boolean isFertilizable(BlockView world, BlockPos pos, BlockState state, boolean isClient)
isFertilizable
in interface Fertilizable
public boolean canGrow(World world, Random random, BlockPos pos, BlockState state)
canGrow
in interface Fertilizable
public void grow(ServerWorld world, Random random, BlockPos pos, BlockState state)
grow
in interface Fertilizable
public float calcBlockBreakingDelta(BlockState state, PlayerEntity player, BlockView world, BlockPos pos)
calcBlockBreakingDelta
in class AbstractBlock