public class BlockDoublePlant extends BlockBush implements IGrowable, IShearable
Block.SoundType
Modifier and Type | Field and Description |
---|---|
static java.lang.String[] |
field_149892_a |
IIcon[] |
sunflowerIcons |
blockConstructorCalled, blockHardness, blockIcon, blockMaterial, blockParticleGravity, blockRegistry, blockResistance, canBlockGrass, capturedDrops, captureDrops, delegate, enableStats, harvesters, isBlockContainer, lightOpacity, lightValue, maxX, maxY, maxZ, minX, minY, minZ, needsRandomTick, opaque, slipperiness, soundTypeAnvil, soundTypeCloth, soundTypeGlass, soundTypeGrass, soundTypeGravel, soundTypeLadder, soundTypeMetal, soundTypePiston, soundTypeSand, soundTypeSnow, soundTypeStone, soundTypeWood, stepSound, textureName, useNeighborBrightness
Constructor and Description |
---|
BlockDoublePlant() |
Modifier and Type | Method and Description |
---|---|
boolean |
canBlockStay(World p_149718_1_,
int p_149718_2_,
int p_149718_3_,
int p_149718_4_) |
boolean |
canPlaceBlockAt(World p_149742_1_,
int p_149742_2_,
int p_149742_3_,
int p_149742_4_) |
protected void |
checkAndDropBlock(World p_149855_1_,
int p_149855_2_,
int p_149855_3_,
int p_149855_4_) |
int |
colorMultiplier(IBlockAccess p_149720_1_,
int p_149720_2_,
int p_149720_3_,
int p_149720_4_) |
int |
damageDropped(int p_149692_1_) |
boolean |
func_149851_a(World p_149851_1_,
int p_149851_2_,
int p_149851_3_,
int p_149851_4_,
boolean p_149851_5_) |
boolean |
func_149852_a(World p_149852_1_,
java.util.Random p_149852_2_,
int p_149852_3_,
int p_149852_4_,
int p_149852_5_) |
void |
func_149853_b(World p_149853_1_,
java.util.Random p_149853_2_,
int p_149853_3_,
int p_149853_4_,
int p_149853_5_) |
int |
func_149885_e(IBlockAccess p_149885_1_,
int p_149885_2_,
int p_149885_3_,
int p_149885_4_) |
static boolean |
func_149887_c(int p_149887_0_) |
IIcon |
func_149888_a(boolean p_149888_1_,
int p_149888_2_) |
void |
func_149889_c(World p_149889_1_,
int p_149889_2_,
int p_149889_3_,
int p_149889_4_,
int p_149889_5_,
int p_149889_6_) |
static int |
func_149890_d(int p_149890_0_) |
int |
getDamageValue(World p_149643_1_,
int p_149643_2_,
int p_149643_3_,
int p_149643_4_) |
IIcon |
getIcon(int p_149691_1_,
int p_149691_2_) |
Item |
getItemDropped(int p_149650_1_,
java.util.Random p_149650_2_,
int p_149650_3_) |
int |
getRenderType() |
void |
getSubBlocks(Item p_149666_1_,
CreativeTabs p_149666_2_,
java.util.List p_149666_3_) |
void |
harvestBlock(World p_149636_1_,
EntityPlayer p_149636_2_,
int p_149636_3_,
int p_149636_4_,
int p_149636_5_,
int p_149636_6_) |
boolean |
isShearable(ItemStack item,
IBlockAccess world,
int x,
int y,
int z)
Checks if the object is currently shearable
Example: Sheep return false when they have no wool
|
void |
onBlockHarvested(World p_149681_1_,
int p_149681_2_,
int p_149681_3_,
int p_149681_4_,
int p_149681_5_,
EntityPlayer p_149681_6_) |
void |
onBlockPlacedBy(World p_149689_1_,
int p_149689_2_,
int p_149689_3_,
int p_149689_4_,
EntityLivingBase p_149689_5_,
ItemStack p_149689_6_) |
java.util.ArrayList<ItemStack> |
onSheared(ItemStack item,
IBlockAccess world,
int x,
int y,
int z,
int fortune)
Performs the shear function on this object.
|
void |
registerBlockIcons(IIconRegister p_149651_1_) |
void |
setBlockBoundsBasedOnState(IBlockAccess p_149719_1_,
int p_149719_2_,
int p_149719_3_,
int p_149719_4_) |
canPlaceBlockOn, getCollisionBoundingBoxFromPool, getPlant, getPlantMetadata, getPlantType, isOpaqueCube, onNeighborBlockChange, renderAsNormalBlock, updateTick
addCollisionBoxesToList, addDestroyEffects, addHitEffects, beginLeavesDecay, breakBlock, canBeReplacedByLeaves, canCollideCheck, canConnectRedstone, canCreatureSpawn, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canPlaceBlockOnSide, canPlaceTorchOnTop, canProvidePower, canRenderInPass, canReplace, canSilkHarvest, canSilkHarvest, canSustainLeaves, canSustainPlant, captureDrops, collisionRayTrace, createStackedBlock, createTileEntity, disableStats, dropBlockAsItem, dropBlockAsItem, dropBlockAsItemWithChance, dropXpOnBlockBreak, fillWithRain, func_149698_L, func_149730_j, func_149735_b, getAmbientOcclusionLightValue, getBedDirection, getBedSpawnPosition, getBlockBoundsMaxX, getBlockBoundsMaxY, getBlockBoundsMaxZ, getBlockBoundsMinX, getBlockBoundsMinY, getBlockBoundsMinZ, getBlockById, getBlockColor, getBlockFromItem, getBlockFromName, getBlockHardness, getBlocksMovement, getBlockTextureFromSide, getCanBlockGrass, getComparatorInputOverride, getCreativeTabToDisplayOn, getDrops, getEnableStats, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getExplosionResistance, getFireSpreadSpeed, getFlammability, getHarvestLevel, getHarvestTool, getIcon, getIdFromBlock, getItem, getItemIconName, getLightOpacity, getLightOpacity, getLightValue, getLightValue, getLocalizedName, getMapColor, getMaterial, getMixedBrightnessForBlock, getMobilityFlag, getPickBlock, getPickBlock, getPlayerRelativeBlockHardness, getRenderBlockPass, getRenderColor, getSelectedBoundingBoxFromPool, getTextureName, getTickRandomly, getUnlocalizedName, getUseNeighborBrightness, getValidRotations, getWeakChanges, hasComparatorInputOverride, hasTileEntity, hasTileEntity, isAir, isAssociatedBlock, isBeaconBase, isBed, isBedFoot, isBlockNormalCube, isBlockSolid, isBurning, isCollidable, isEqualTo, isFertile, isFireSource, isFlammable, isFlowerPot, isFoliage, isLadder, isLeaves, isNormalCube, isNormalCube, isProvidingStrongPower, isProvidingWeakPower, isReplaceable, isReplaceableOreGen, isSideSolid, isToolEffective, isWood, onBlockActivated, onBlockAdded, onBlockClicked, onBlockDestroyedByExplosion, onBlockDestroyedByPlayer, onBlockEventReceived, onBlockExploded, onBlockPlaced, onBlockPreDestroy, onEntityCollidedWithBlock, onEntityWalking, onFallenUpon, onNeighborChange, onPlantGrow, onPostBlockPlaced, quantityDropped, quantityDropped, quantityDroppedWithBonus, randomDisplayTick, recolourBlock, registerBlocks, removedByPlayer, removedByPlayer, rotateBlock, setBedOccupied, setBlockBounds, setBlockBoundsForItemRender, setBlockName, setBlockTextureName, setBlockUnbreakable, setCreativeTab, setHardness, setHarvestLevel, setHarvestLevel, setLightLevel, setLightOpacity, setResistance, setStepSound, setTickRandomly, shouldCheckWeakPower, shouldSideBeRendered, tickRate, velocityToAddToEntity
public static final java.lang.String[] field_149892_a
public IIcon[] sunflowerIcons
public int getRenderType()
getRenderType
in class BlockBush
public void setBlockBoundsBasedOnState(IBlockAccess p_149719_1_, int p_149719_2_, int p_149719_3_, int p_149719_4_)
setBlockBoundsBasedOnState
in class Block
public int func_149885_e(IBlockAccess p_149885_1_, int p_149885_2_, int p_149885_3_, int p_149885_4_)
public boolean canPlaceBlockAt(World p_149742_1_, int p_149742_2_, int p_149742_3_, int p_149742_4_)
canPlaceBlockAt
in class BlockBush
protected void checkAndDropBlock(World p_149855_1_, int p_149855_2_, int p_149855_3_, int p_149855_4_)
checkAndDropBlock
in class BlockBush
public boolean canBlockStay(World p_149718_1_, int p_149718_2_, int p_149718_3_, int p_149718_4_)
canBlockStay
in class BlockBush
public Item getItemDropped(int p_149650_1_, java.util.Random p_149650_2_, int p_149650_3_)
getItemDropped
in class Block
public int damageDropped(int p_149692_1_)
damageDropped
in class Block
public static boolean func_149887_c(int p_149887_0_)
public static int func_149890_d(int p_149890_0_)
public IIcon func_149888_a(boolean p_149888_1_, int p_149888_2_)
public int colorMultiplier(IBlockAccess p_149720_1_, int p_149720_2_, int p_149720_3_, int p_149720_4_)
colorMultiplier
in class Block
public void func_149889_c(World p_149889_1_, int p_149889_2_, int p_149889_3_, int p_149889_4_, int p_149889_5_, int p_149889_6_)
public void onBlockPlacedBy(World p_149689_1_, int p_149689_2_, int p_149689_3_, int p_149689_4_, EntityLivingBase p_149689_5_, ItemStack p_149689_6_)
onBlockPlacedBy
in class Block
public void harvestBlock(World p_149636_1_, EntityPlayer p_149636_2_, int p_149636_3_, int p_149636_4_, int p_149636_5_, int p_149636_6_)
harvestBlock
in class Block
public void onBlockHarvested(World p_149681_1_, int p_149681_2_, int p_149681_3_, int p_149681_4_, int p_149681_5_, EntityPlayer p_149681_6_)
onBlockHarvested
in class Block
public void registerBlockIcons(IIconRegister p_149651_1_)
registerBlockIcons
in class Block
public void getSubBlocks(Item p_149666_1_, CreativeTabs p_149666_2_, java.util.List p_149666_3_)
getSubBlocks
in class Block
public int getDamageValue(World p_149643_1_, int p_149643_2_, int p_149643_3_, int p_149643_4_)
getDamageValue
in class Block
public boolean func_149851_a(World p_149851_1_, int p_149851_2_, int p_149851_3_, int p_149851_4_, boolean p_149851_5_)
func_149851_a
in interface IGrowable
public boolean func_149852_a(World p_149852_1_, java.util.Random p_149852_2_, int p_149852_3_, int p_149852_4_, int p_149852_5_)
func_149852_a
in interface IGrowable
public void func_149853_b(World p_149853_1_, java.util.Random p_149853_2_, int p_149853_3_, int p_149853_4_, int p_149853_5_)
func_149853_b
in interface IGrowable
public boolean isShearable(ItemStack item, IBlockAccess world, int x, int y, int z)
IShearable
isShearable
in interface IShearable
item
- The itemstack that is being used, Possible to be nullworld
- The current worldx
- The X Positiony
- The Y Positionz
- The Z Positionpublic java.util.ArrayList<ItemStack> onSheared(ItemStack item, IBlockAccess world, int x, int y, int z, int fortune)
IShearable
onSheared
in interface IShearable
item
- The itemstack that is being used, Possible to be nullworld
- The current worldx
- The X Positiony
- The Y Positionz
- The Z Positionfortune
- The fortune level of the shears being used