public abstract class JCBlockCropsBase
extends net.minecraft.block.BlockBush
implements net.minecraft.block.IGrowable
| Modifier and Type | Field and Description |
|---|---|
protected int |
cropDropMax |
protected int |
cropDropMin |
protected int |
seedDropMax |
protected int |
seedDropMin |
BLOCK_STATE_IDS, blockHardness, blockMapColor, blockMaterial, blockParticleGravity, blockResistance, blockSoundType, blockState, capturedDrops, captureDrops, enableStats, FULL_BLOCK_AABB, fullBlock, harvesters, hasTileEntity, lightOpacity, lightValue, needsRandomTick, NULL_AABB, RANDOM, REGISTRY, slipperiness, translucent, useNeighborBrightness| Modifier | Constructor and Description |
|---|---|
protected |
JCBlockCropsBase() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canBlockStay(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state) |
boolean |
canGrow(net.minecraft.world.World worldIn,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state,
boolean isClient) |
protected boolean |
canSustainBush(net.minecraft.block.state.IBlockState ground) |
boolean |
canUseBonemeal(net.minecraft.world.World worldIn,
java.util.Random rand,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state) |
protected abstract net.minecraft.block.state.BlockStateContainer |
createBlockState() |
void |
dropBlockAsItemWithChance(net.minecraft.world.World worldIn,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state,
float chance,
int fortune) |
protected abstract net.minecraft.block.properties.PropertyInteger |
getAgeProperty() |
net.minecraft.util.math.AxisAlignedBB |
getBoundingBox(net.minecraft.block.state.IBlockState state,
net.minecraft.world.IBlockAccess source,
net.minecraft.util.math.BlockPos pos) |
protected abstract net.minecraft.item.Item |
getCrop() |
java.util.List<net.minecraft.item.ItemStack> |
getDrops(net.minecraft.world.IBlockAccess world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state,
int fortune) |
protected static float |
getGrowthChance(net.minecraft.block.Block block,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos) |
net.minecraft.item.ItemStack |
getItem(net.minecraft.world.World worldIn,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state) |
net.minecraft.item.Item |
getItemDropped(net.minecraft.block.state.IBlockState state,
java.util.Random rand,
int fortune) |
protected abstract int |
getMaxAge() |
int |
getMetaFromState(net.minecraft.block.state.IBlockState state) |
protected abstract net.minecraft.item.Item |
getSeed() |
net.minecraft.block.state.IBlockState |
getStateFromMeta(int meta) |
void |
grow(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state) |
void |
grow(net.minecraft.world.World world,
java.util.Random rand,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state) |
void |
updateTick(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state,
java.util.Random rand) |
canPlaceBlockAt, checkAndDropBlock, getBlockFaceShape, getBlockLayer, getCollisionBoundingBox, getPlant, getPlantType, isFullCube, isOpaqueCube, neighborChangedaddCollisionBoxToList, addCollisionBoxToList, addDestroyEffects, addHitEffects, addInformation, addLandingEffects, addRunningEffects, beginLeavesDecay, breakBlock, canBeConnectedTo, canBeReplacedByLeaves, canCollideCheck, canConnectRedstone, canCreatureSpawn, canDropFromExplosion, canEntityDestroy, canEntitySpawn, canHarvestBlock, canPlaceBlockOnSide, canPlaceTorchOnTop, canProvidePower, canRenderInLayer, canSilkHarvest, canSilkHarvest, canSpawnInBlock, canSustainLeaves, canSustainPlant, captureDrops, causesSuffocation, collisionRayTrace, createTileEntity, damageDropped, disableStats, doesSideBlockChestOpening, doesSideBlockRendering, dropBlockAsItem, dropXpOnBlockBreak, eventReceived, fillWithRain, getActualState, getAiPathNodeType, getAmbientOcclusionLightValue, getBeaconColorMultiplier, getBedDirection, getBedSpawnPosition, getBlockById, getBlockFromItem, getBlockFromName, getBlockHardness, getBlockState, getComparatorInputOverride, getCreativeTabToDisplayOn, getDefaultState, getDrops, getEnableStats, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getExplosionResistance, getExtendedState, getFireSpreadSpeed, getFlammability, getFogColor, getHarvestLevel, getHarvestTool, getIdFromBlock, getLightOpacity, getLightOpacity, getLightValue, getLightValue, getLocalizedName, getMapColor, getMaterial, getMobilityFlag, getOffset, getOffsetType, getPackedLightmapCoords, getPickBlock, getPlayerRelativeBlockHardness, getRenderType, getSelectedBoundingBox, getSilkTouchDrop, getSlipperiness, getSoundType, getSoundType, getStateById, getStateForPlacement, getStateForPlacement, getStateId, getStrongPower, getSubBlocks, getTickRandomly, getUnlocalizedName, getUseNeighborBrightness, getValidRotations, getWeakChanges, getWeakPower, harvestBlock, hasComparatorInputOverride, hasCustomBreakingProgress, hasTileEntity, hasTileEntity, isAABBInsideLiquid, isAABBInsideMaterial, isAir, isAssociatedBlock, isBeaconBase, isBed, isBedFoot, isBlockNormalCube, isBurning, isCollidable, isEntityInsideMaterial, isEqualTo, isExceptBlockForAttachWithPiston, isExceptionBlockForAttaching, isFertile, isFireSource, isFlammable, isFoliage, isFullBlock, isLadder, isLeaves, isNormalCube, isNormalCube, isPassable, isReplaceable, isReplaceableOreGen, isSideSolid, isStickyBlock, isToolEffective, isTopSolid, isTranslucent, isWood, modifyAcceleration, observedNeighborChange, onBlockActivated, onBlockAdded, onBlockClicked, onBlockDestroyedByExplosion, onBlockDestroyedByPlayer, onBlockExploded, onBlockHarvested, onBlockPlacedBy, onEntityCollidedWithBlock, onEntityWalk, onFallenUpon, onLanded, onNeighborChange, onPlantGrow, quantityDropped, quantityDropped, quantityDroppedWithBonus, randomDisplayTick, randomTick, rayTrace, recolorBlock, registerBlocks, removedByPlayer, requiresUpdates, rotateBlock, setBedOccupied, setBlockUnbreakable, setCreativeTab, setDefaultSlipperiness, setDefaultState, setHardness, setHarvestLevel, setHarvestLevel, setLightLevel, setLightOpacity, setResistance, setSoundType, setTickRandomly, setUnlocalizedName, shouldCheckWeakPower, shouldSideBeRendered, spawnAsEntity, tickRate, toString, withMirror, withRotationprotected int seedDropMin
protected int seedDropMax
protected int cropDropMin
protected int cropDropMax
protected static float getGrowthChance(net.minecraft.block.Block block,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos)
public net.minecraft.util.math.AxisAlignedBB getBoundingBox(net.minecraft.block.state.IBlockState state,
net.minecraft.world.IBlockAccess source,
net.minecraft.util.math.BlockPos pos)
getBoundingBox in class net.minecraft.block.BlockBushprotected abstract net.minecraft.block.properties.PropertyInteger getAgeProperty()
protected abstract int getMaxAge()
protected abstract net.minecraft.block.state.BlockStateContainer createBlockState()
createBlockState in class net.minecraft.block.Blockprotected abstract net.minecraft.item.Item getSeed()
protected abstract net.minecraft.item.Item getCrop()
protected boolean canSustainBush(net.minecraft.block.state.IBlockState ground)
canSustainBush in class net.minecraft.block.BlockBushpublic void updateTick(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state,
java.util.Random rand)
updateTick in class net.minecraft.block.BlockBushpublic void grow(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state)
public boolean canBlockStay(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state)
canBlockStay in class net.minecraft.block.BlockBushpublic boolean canGrow(net.minecraft.world.World worldIn,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state,
boolean isClient)
canGrow in interface net.minecraft.block.IGrowablepublic boolean canUseBonemeal(net.minecraft.world.World worldIn,
java.util.Random rand,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state)
canUseBonemeal in interface net.minecraft.block.IGrowablepublic net.minecraft.item.ItemStack getItem(net.minecraft.world.World worldIn,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state)
getItem in class net.minecraft.block.Blockpublic void grow(net.minecraft.world.World world,
java.util.Random rand,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state)
grow in interface net.minecraft.block.IGrowablepublic net.minecraft.block.state.IBlockState getStateFromMeta(int meta)
getStateFromMeta in class net.minecraft.block.Blockpublic int getMetaFromState(net.minecraft.block.state.IBlockState state)
getMetaFromState in class net.minecraft.block.Blockpublic void dropBlockAsItemWithChance(net.minecraft.world.World worldIn,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state,
float chance,
int fortune)
dropBlockAsItemWithChance in class net.minecraft.block.Blockpublic net.minecraft.item.Item getItemDropped(net.minecraft.block.state.IBlockState state,
java.util.Random rand,
int fortune)
getItemDropped in class net.minecraft.block.Blockpublic java.util.List<net.minecraft.item.ItemStack> getDrops(net.minecraft.world.IBlockAccess world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state,
int fortune)
getDrops in class net.minecraft.block.Block