public class BeetrootsBlock extends CropBlock
Block.NeighborGroup
AbstractBlock.AbstractBlockState, AbstractBlock.ContextPredicate, AbstractBlock.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A>
Modifier and Type | Field and Description |
---|---|
static IntProperty |
AGE |
private static VoxelShape[] |
AGE_TO_SHAPE |
LOGGER, STATE_IDS, stateManager
collidable, dynamicBounds, FACINGS, jumpVelocityMultiplier, lootTableId, material, randomTicks, resistance, settings, slipperiness, soundGroup, velocityMultiplier
Constructor and Description |
---|
BeetrootsBlock(AbstractBlock.Settings settings) |
Modifier and Type | Method and Description |
---|---|
protected void |
appendProperties(StateManager.Builder<Block,BlockState> builder) |
IntProperty |
getAgeProperty() |
protected int |
getGrowthAmount(World world) |
int |
getMaxAge() |
VoxelShape |
getOutlineShape(BlockState state,
BlockView world,
BlockPos pos,
ShapeContext context) |
protected ItemConvertible |
getSeedsItem() |
void |
randomTick(BlockState state,
ServerWorld world,
BlockPos pos,
Random random) |
applyGrowth, canGrow, canPlaceAt, canPlantOnTop, getAge, getAvailableMoisture, getPickStack, grow, hasRandomTicks, isFertilizable, isMature, onEntityCollision, withAge
canPathfindThrough, getStateForNeighborUpdate, isTranslucent
addStacksForDisplay, afterBreak, 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, hasTopRim, is, isFaceFullSquare, isIn, isShapeFullCube, onBreak, onBroken, onDestroyedByExplosion, onEntityLand, onLandedUpon, onPlaced, onSteppedOn, postProcessState, pushEntitiesUpBeforeBlockChange, rainTick, randomDisplayTick, replace, replace, setDefaultState, shouldDrawSide, shouldDropItemsOnExplosion, sideCoversSmallSquare, toString
calcBlockBreakingDelta, canBucketPlace, canReplace, createScreenHandlerFactory, emitsRedstonePower, getAmbientOcclusionLightLevel, getCollisionShape, getComparatorOutput, getCullingShape, getDefaultMaterialColor, getDroppedStacks, getFluidState, getLootTableId, getOffsetType, getOpacity, getPistonBehavior, getRaycastShape, getRenderingSeed, getRenderType, getSidesShape, getStrongRedstonePower, getVisualShape, getWeakRedstonePower, hasBlockEntity, hasComparatorOutput, hasSidedTransparency, isSideInvisible, mirror, neighborUpdate, onBlockAdded, onBlockBreakStart, onProjectileHit, onStacksDropped, onStateReplaced, onSyncedBlockEvent, onUse, prepare, rotate, scheduledTick
public static final IntProperty AGE
private static final VoxelShape[] AGE_TO_SHAPE
public BeetrootsBlock(AbstractBlock.Settings settings)
public IntProperty getAgeProperty()
getAgeProperty
in class CropBlock
@Environment(value=CLIENT) protected ItemConvertible getSeedsItem()
getSeedsItem
in class CropBlock
public void randomTick(BlockState state, ServerWorld world, BlockPos pos, Random random)
randomTick
in class CropBlock
protected int getGrowthAmount(World world)
getGrowthAmount
in class CropBlock
protected void appendProperties(StateManager.Builder<Block,BlockState> builder)
appendProperties
in class CropBlock
public VoxelShape getOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context)
getOutlineShape
in class CropBlock