public class BlockPotato extends BlockCrops
Block.EnumOffsetType, Block.Properties, Block.RenderSideCacheKeyAGEBLOCK_STATE_IDS, blockHardness, blockMapColor, blockResistance, blocksMovement, capturedDrops, captureDrops, harvesters, lightValue, LOGGER, material, needsRandomTick, RANDOM, soundType, stateContainerdelegate| Constructor and Description |
|---|
BlockPotato(Block.Properties builder) |
| Modifier and Type | Method and Description |
|---|---|
void |
dropBlockAsItemWithChance(IBlockState state,
World worldIn,
BlockPos pos,
float chancePerItem,
int fortune) |
protected IItemProvider |
getCropsItem() |
void |
getDrops(IBlockState state,
NonNullList<ItemStack> drops,
World world,
BlockPos pos,
int fortune)
This gets a complete list of items dropped from this block.
|
protected IItemProvider |
getSeedsItem() |
VoxelShape |
getShape(IBlockState state,
IBlockReader worldIn,
BlockPos pos) |
canGrow, canUseBonemeal, fillStateContainer, getAge, getAgeProperty, getBonemealAgeIncrease, getGrowthChance, getItem, getItemDropped, getMaxAge, grow, grow, isMaxAge, isValidGround, isValidPosition, tick, withAgegetBlockFaceShape, getOpacity, getPlant, getRenderLayer, isFullCube, updatePostPlacementaddInformation, allowsMovement, animateTick, asItem, canDropFromExplosion, canEntitySpawn, canProvidePower, canSilkHarvest, canSilkHarvest, canSpawnInBlock, canSustainPlant, captureDrops, causesSuffocation, collisionRayTrace, doesSideFillSquare, dropXpOnBlockBreak, eventReceived, fillItemGroup, fillWithRain, getAmbientOcclusionLightValue, getBlockFromItem, getBlockHardness, getCollisionShape, getComparatorInputOverride, getDefaultState, getExplosionResistance, getFluidState, getHarvestLevel, getHarvestTool, getItemsToDropCount, getLightValue, getMapColor, getMaterial, getNameTextComponent, getOffset, getOffsetType, getPackedLightmapCoords, getPlayerRelativeBlockHardness, getPositionRandom, getPushReaction, getRaytraceShape, getRenderShape, getRenderType, getSilkTouchDrop, getSlipperiness, getSlipperiness, getSoundType, getStateById, getStateContainer, getStateForPlacement, getStateId, getStrongPower, getTickRandomly, getTranslationKey, getValidBlockForPosition, getWeakPower, harvestBlock, hasComparatorInputOverride, hasCustomBreakingProgress, hasTileEntity, isAir, isBlockNormalCube, isCollidable, isCollidable, isDirt, isExceptBlockForAttachWithPiston, isExceptionBlockForAttaching, isIn, isNormalCube, isOpaque, isOpaqueCube, isReplaceable, isRock, isSideInvisible, isSolid, isTopSolid, isVariableOpacity, makeCuboidShape, mirror, needsPostProcessing, neighborChanged, nudgeEntitiesWithNewState, onBlockActivated, onBlockAdded, onBlockClicked, onBlockHarvested, onBlockPlacedBy, onEntityCollision, onEntityWalk, onExplosionDestroy, onFallenUpon, onLanded, onPlayerDestroy, onReplaced, propagatesSkylightDown, quantityDropped, randomTick, registerBlocks, replaceBlock, rotate, setDefaultState, shouldSideBeRendered, spawnAsEntity, tickRate, toString, updateDiagonalNeighbors, updateNeighbors, useNeighborBrightnessgetRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetPlantTypeaddDestroyEffects, addHitEffects, addLandingEffects, addRunningEffects, beginLeaveDecay, canBeConnectedTo, canBeReplacedByLeaves, canConnectRedstone, canCreatureSpawn, canEntityDestroy, canHarvestBlock, canPlaceTorchOnTop, canRenderInLayer, createTileEntity, doesSideBlockChestOpening, doesSideBlockRendering, getAiPathNodeType, getBeaconColorMultiplier, getBedDirection, getBedSpawnPosition, getBlock, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getExtendedState, getFireSpreadSpeed, getFlammability, getFogColor, getLightValue, getPickBlock, getRayTraceResult, getSoundType, getStateAtViewpoint, getStateForPlacement, getValidRotations, getWeakChanges, hasTileEntity, isAir, isBeaconBase, isBed, isBedFoot, isBurning, isFertile, isFireSource, isFlammable, isFoliage, isLadder, isNormalCube, isReplaceableOreGen, isStickyBlock, isToolEffective, isTopSolid, observedNeighborChange, onBlockExploded, onNeighborChange, onPlantGrow, recolorBlock, removedByPlayer, rotate, setBedOccupied, shouldCheckWeakPowerpublic BlockPotato(Block.Properties builder)
protected IItemProvider getSeedsItem()
getSeedsItem in class BlockCropsprotected IItemProvider getCropsItem()
getCropsItem in class BlockCropspublic void dropBlockAsItemWithChance(IBlockState state, World worldIn, BlockPos pos, float chancePerItem, int fortune)
dropBlockAsItemWithChance in class BlockCropspublic void getDrops(IBlockState state, NonNullList<ItemStack> drops, World world, BlockPos pos, int fortune)
IForgeBlockgetDrops in interface IForgeBlockgetDrops in class BlockCropsstate - Current statedrops - add all items this block drops to this drops listworld - The current world, Currently hard 'World' and not 'IBlockReder' because vanilla needs it.pos - Block position in worldfortune - Breakers fortune levelpublic VoxelShape getShape(IBlockState state, IBlockReader worldIn, BlockPos pos)
getShape in class BlockCrops