Package net.minecraft.block
Class CropBlock
java.lang.Object
net.minecraft.block.AbstractBlock
net.minecraft.block.Block
net.minecraft.block.PlantBlock
net.minecraft.block.CropBlock
- All Implemented Interfaces:
Fertilizable,ItemConvertible
- Direct Known Subclasses:
BeetrootsBlock,CarrotsBlock,PotatoesBlock
public class CropBlock extends PlantBlock 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 IntPropertyAGEprivate static VoxelShape[]AGE_TO_SHAPEFields 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 Modifier Constructor Description protectedCropBlock(AbstractBlock.Settings settings) -
Method Summary
Methods inherited from class net.minecraft.block.PlantBlock
canPathfindThrough, getStateForNeighborUpdate, isTranslucentMethods 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, getPlacementState, 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
calcBlockBreakingDelta, canBucketPlace, canReplace, createScreenHandlerFactory, emitsRedstonePower, getAmbientOcclusionLightLevel, getCollisionShape, getComparatorOutput, getCullingShape, getDefaultMapColor, getDroppedStacks, getFluidState, getLootTableId, getMaxModelOffset, getOffsetType, getOpacity, getPistonBehavior, getRaycastShape, getRenderingSeed, getRenderType, getSidesShape, getStrongRedstonePower, getVisualShape, getWeakRedstonePower, hasComparatorOutput, hasSidedTransparency, isSideInvisible, mirror, neighborUpdate, onBlockAdded, onBlockBreakStart, onProjectileHit, onStacksDropped, onStateReplaced, onSyncedBlockEvent, onUse, prepare, rotate, scheduledTick
-
Field Details
-
AGE
-
AGE_TO_SHAPE
-
-
Constructor Details
-
CropBlock
-
-
Method Details
-
getOutlineShape
public VoxelShape getOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context)- Overrides:
getOutlineShapein classAbstractBlock
-
canPlantOnTop
- Overrides:
canPlantOnTopin classPlantBlock
-
getAgeProperty
-
getMaxAge
public int getMaxAge() -
getAge
-
withAge
-
isMature
-
hasRandomTicks
- Overrides:
hasRandomTicksin classBlock
-
randomTick
- Overrides:
randomTickin classAbstractBlock
-
applyGrowth
-
getGrowthAmount
-
getAvailableMoisture
-
canPlaceAt
- Overrides:
canPlaceAtin classPlantBlock
-
onEntityCollision
- Overrides:
onEntityCollisionin classAbstractBlock
-
getSeedsItem
-
getPickStack
@Environment(CLIENT) public ItemStack getPickStack(BlockView world, BlockPos pos, BlockState state)- Overrides:
getPickStackin classBlock
-
isFertilizable
- Specified by:
isFertilizablein interfaceFertilizable
-
canGrow
- Specified by:
canGrowin interfaceFertilizable
-
grow
- Specified by:
growin interfaceFertilizable
-
appendProperties
- Overrides:
appendPropertiesin classBlock
-