Package net.minecraft.block
Class BlockDoublePlant
- java.lang.Object
-
- net.zxmushroom63.plugins.BaseData
-
- net.zxmushroom63.plugins.PluginData
-
- net.minecraft.block.Block
-
- net.minecraft.block.BlockBush
-
- net.minecraft.block.BlockDoublePlant
-
- All Implemented Interfaces:
IGrowable,org.teavm.jso.JSObject
public class BlockDoublePlant extends BlockBush implements IGrowable
+ This portion of EaglercraftX contains deobfuscated Minecraft 1.8 source code. Minecraft 1.8.8 bytecode is (c) 2015 Mojang AB. "Do not distribute!" Mod Coder Pack v9.18 deobfuscation configs are (c) Copyright by the MCP Team EaglercraftX 1.8 patch files are (c) 2022-2023 LAX1DUDE. All Rights Reserved. WITH THE EXCEPTION OF PATCH FILES, MINIFIED JAVASCRIPT, AND ALL FILES NORMALLY FOUND IN AN UNMODIFIED MINECRAFT RESOURCE PACK, YOU ARE NOT ALLOWED TO SHARE, DISTRIBUTE, OR REPURPOSE ANY FILE USED BY OR PRODUCED BY THE SOFTWARE IN THIS REPOSITORY WITHOUT PRIOR PERMISSION FROM THE PROJECT AUTHOR. NOT FOR COMMERCIAL OR MALICIOUS USE (please read the 'LICENSE' file this repo's root directory for more info)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBlockDoublePlant.EnumBlockHalfstatic classBlockDoublePlant.EnumPlantType-
Nested classes/interfaces inherited from class net.minecraft.block.Block
Block.EnumOffsetType, Block.SoundType
-
Nested classes/interfaces inherited from class net.zxmushroom63.plugins.BaseData
BaseData.BooleanCallback, BaseData.BooleanCallbackArr, BaseData.DataBooleanCallback, BaseData.DataBooleanCallbackArr, BaseData.DataDoubleCallback, BaseData.DataDoubleCallbackArr, BaseData.DataFloatCallback, BaseData.DataFloatCallbackArr, BaseData.DataIntCallback, BaseData.DataIntCallbackArr, BaseData.DataObjectCallback, BaseData.DataObjectCallbackArr, BaseData.DataStringCallback, BaseData.DataStringCallbackArr, BaseData.DataVoidCallback, BaseData.DoubleCallback, BaseData.DoubleCallbackArr, BaseData.FloatCallback, BaseData.FloatCallbackArr, BaseData.IntCallback, BaseData.IntCallbackArr, BaseData.ObjectCallback, BaseData.ObjectCallbackArr, BaseData.StringCallback, BaseData.StringCallbackArr, BaseData.VoidCallback
-
-
Field Summary
Fields Modifier and Type Field Description static PropertyEnum<EnumFacing>field_181084_Nstatic PropertyEnum<BlockDoublePlant.EnumBlockHalf>HALFstatic PropertyEnum<BlockDoublePlant.EnumPlantType>VARIANT-
Fields inherited from class net.minecraft.block.Block
BLOCK_STATE_IDS, blockHardness, blockMaterial, blockParticleGravity, blockRegistry, blockResistance, blockState, enableStats, field_181083_K, forceRender, fullBlock, isBlockContainer, lightOpacity, lightValue, maxX, maxY, maxZ, minX, minY, minZ, needsRandomTick, noRender, SLIME_SOUND, slipperiness, soundTypeAnvil, soundTypeCloth, soundTypeGlass, soundTypeGrass, soundTypeGravel, soundTypeLadder, soundTypeMetal, soundTypePiston, soundTypeSand, soundTypeSnow, soundTypeStone, soundTypeWood, stepSound, translucent, useNeighborBrightness
-
-
Constructor Summary
Constructors Constructor Description BlockDoublePlant()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidbootstrapStates()booleancanBlockStay(World world, BlockPos blockpos, IBlockState iblockstate)booleancanGrow(World world, BlockPos blockpos, IBlockState var3, boolean var4)+ Whether this IGrowable can growbooleancanPlaceBlockAt(World world, BlockPos blockpos)booleancanUseBonemeal(World var1, EaglercraftRandom var2, BlockPos var3, IBlockState var4)protected voidcheckAndDropBlock(World world, BlockPos blockpos, IBlockState iblockstate)intcolorMultiplier(IBlockAccess iblockaccess, BlockPos blockpos, int var3)protected BlockStatecreateBlockState()intdamageDropped(IBlockState iblockstate)+ Gets the metadata of the item this Block can drop.IBlockStategetActualState(IBlockState iblockstate, IBlockAccess iblockaccess, BlockPos blockpos)+ Get the actual Block state of this Block at the given position.intgetDamageValue(World world, BlockPos blockpos)ItemgetItemDropped(IBlockState iblockstate, EaglercraftRandom random, int var3)+ Get the Item that this Block should drop when harvested.intgetMetaFromState(IBlockState iblockstate)+ Convert the BlockState into the correct metadata valueBlock.EnumOffsetTypegetOffsetType()+ Get the OffsetType for this Block.IBlockStategetStateFromMeta(int i)+ Convert the given metadata into a BlockState for this BlockvoidgetSubBlocks(Item item, CreativeTabs var2, java.util.List<ItemStack> list)+ returns a list of blocks with the same ID, but different meta (eg: wood returns 4 blocks)BlockDoublePlant.EnumPlantTypegetVariant(IBlockAccess worldIn, BlockPos pos)voidgrow(World world, EaglercraftRandom var2, BlockPos blockpos, IBlockState var4)booleanisReplaceable(World world, BlockPos blockpos)+ Whether this Block can be replaced directly by other blocks (true for e.g.voidonBlockHarvested(World world, BlockPos blockpos, IBlockState iblockstate, EntityPlayer entityplayer)voidonBlockPlacedBy(World world, BlockPos blockpos, IBlockState var3, EntityLivingBase var4, ItemStack var5)+ Called by ItemBlocks after a block is set in the world, to allow post-place logicvoidplaceAt(World worldIn, BlockPos lowerPos, BlockDoublePlant.EnumPlantType variant, int flags)voidsetBlockBoundsBasedOnState(IBlockAccess var1, BlockPos var2)-
Methods inherited from class net.minecraft.block.BlockBush
canPlaceBlockOn, getBlockLayer, getCollisionBoundingBox, isFullCube, isOpaqueCube, onNeighborBlockChange, updateTick
-
Methods inherited from class net.minecraft.block.Block
addCollisionBoxesToList, breakBlock, canCollideCheck, canDropFromExplosion, canPlaceBlockOnSide, canProvidePower, canReplace, canSilkHarvest, collisionRayTrace, colorMultiplier, createStackedBlock, disableStats, dropBlockAsItem, dropBlockAsItemWithChance, dropXpOnBlockBreak, fillWithRain, func_181623_g, getAmbientOcclusionLightValue, getBlockBoundsMaxX, getBlockBoundsMaxY, getBlockBoundsMaxZ, getBlockBoundsMinX, getBlockBoundsMinY, getBlockBoundsMinZ, getBlockById, getBlockColor, getBlockFromItem, getBlockFromName, getBlockHardness, getBlockState, getComparatorInputOverride, getCreativeTabToDisplayOn, getDefaultState, getEnableStats, getExplosionResistance, getIdFromBlock, getItem, getLightOpacity, getLightValue, getLocalizedName, getMapColor, getMaterial, getMixedBrightnessForBlock, getMobilityFlag, getPlayerRelativeBlockHardness, getRenderColor, getRenderType, getSelectedBoundingBox, getStateById, getStateForEntityRender, getStateId, getStrongPower, getTickRandomly, getUnlocalizedName, getUseNeighborBrightness, getWeakPower, harvestBlock, hasComparatorInputOverride, hasTileEntity, isAssociatedBlock, isBlockNormalCube, isBlockSolid, isCollidable, isEqualTo, isFlowerPot, isFullBlock, isNormalCube, isPassable, isTranslucent, isVisuallyOpaque, loadPluginData, makePluginData, modifyAcceleration, onBlockActivated, onBlockAdded, onBlockClicked, onBlockDestroyedByExplosion, onBlockDestroyedByPlayer, onBlockEventReceived, onBlockPlaced, onEntityCollidedWithBlock, onEntityCollidedWithBlock, onFallenUpon, onLanded, quantityDropped, quantityDroppedWithBonus, randomDisplayTick, randomTick, registerBlocks, requiresUpdates, setBlockBounds, setBlockBoundsForItemRender, setBlockUnbreakable, setCreativeTab, setDefaultState, setHardness, setLightLevel, setLightOpacity, setResistance, setStepSound, setTickRandomly, setUnlocalizedName, shouldSideBeRendered, spawnAsEntity, tickRate, toString
-
Methods inherited from class net.zxmushroom63.plugins.BaseData
execFuncBaseData, execFuncObject, execFuncString, getBaseData, getBaseDataArr, getBoolean, getBooleanArr, getByte, getByteArr, getChar, getCharArr, getDouble, getDoubleArr, getFloat, getFloatArr, getInt, getIntArr, getObject, getObjectArr, getShort, getShortArr, getString, getStringArr, has, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, setCallbackBoolean, setCallbackBooleanArr, setCallbackBooleanArrWithDataArg, setCallbackBooleanWithDataArg, setCallbackDouble, setCallbackDoubleArr, setCallbackDoubleArrWithDataArg, setCallbackDoubleWithDataArg, setCallbackFloat, setCallbackFloatArr, setCallbackFloatArrWithDataArg, setCallbackFloatWithDataArg, setCallbackInt, setCallbackIntArr, setCallbackIntArrWithDataArg, setCallbackIntWithDataArg, setCallbackObject, setCallbackObjectArr, setCallbackObjectArrWithDataArg, setCallbackObjectWithDataArg, setCallbackString, setCallbackStringArr, setCallbackStringArrWithDataArg, setCallbackStringWithDataArg, setCallbackVoid, setCallbackVoidWithDataArg, setNull
-
-
-
-
Field Detail
-
VARIANT
public static PropertyEnum<BlockDoublePlant.EnumPlantType> VARIANT
-
HALF
public static PropertyEnum<BlockDoublePlant.EnumBlockHalf> HALF
-
field_181084_N
public static final PropertyEnum<EnumFacing> field_181084_N
-
-
Method Detail
-
bootstrapStates
public static void bootstrapStates()
-
setBlockBoundsBasedOnState
public void setBlockBoundsBasedOnState(IBlockAccess var1, BlockPos var2)
- Overrides:
setBlockBoundsBasedOnStatein classBlock
-
getVariant
public BlockDoublePlant.EnumPlantType getVariant(IBlockAccess worldIn, BlockPos pos)
-
canPlaceBlockAt
public boolean canPlaceBlockAt(World world, BlockPos blockpos)
- Overrides:
canPlaceBlockAtin classBlockBush
-
isReplaceable
public boolean isReplaceable(World world, BlockPos blockpos)
+ Whether this Block can be replaced directly by other blocks (true for e.g. tall grass)- Overrides:
isReplaceablein classBlock
-
checkAndDropBlock
protected void checkAndDropBlock(World world, BlockPos blockpos, IBlockState iblockstate)
- Overrides:
checkAndDropBlockin classBlockBush
-
canBlockStay
public boolean canBlockStay(World world, BlockPos blockpos, IBlockState iblockstate)
- Overrides:
canBlockStayin classBlockBush
-
getItemDropped
public Item getItemDropped(IBlockState iblockstate, EaglercraftRandom random, int var3)
+ Get the Item that this Block should drop when harvested.- Overrides:
getItemDroppedin classBlock
-
damageDropped
public int damageDropped(IBlockState iblockstate)
+ Gets the metadata of the item this Block can drop. This method is called when the block gets destroyed. It returns the metadata of the dropped item based on the old metadata of the block.- Overrides:
damageDroppedin classBlock
-
colorMultiplier
public int colorMultiplier(IBlockAccess iblockaccess, BlockPos blockpos, int var3)
- Overrides:
colorMultiplierin classBlock
-
placeAt
public void placeAt(World worldIn, BlockPos lowerPos, BlockDoublePlant.EnumPlantType variant, int flags)
-
onBlockPlacedBy
public void onBlockPlacedBy(World world, BlockPos blockpos, IBlockState var3, EntityLivingBase var4, ItemStack var5)
+ Called by ItemBlocks after a block is set in the world, to allow post-place logic- Overrides:
onBlockPlacedByin classBlock
-
onBlockHarvested
public void onBlockHarvested(World world, BlockPos blockpos, IBlockState iblockstate, EntityPlayer entityplayer)
- Overrides:
onBlockHarvestedin classBlock
-
getSubBlocks
public void getSubBlocks(Item item, CreativeTabs var2, java.util.List<ItemStack> list)
+ returns a list of blocks with the same ID, but different meta (eg: wood returns 4 blocks)- Overrides:
getSubBlocksin classBlock
-
getDamageValue
public int getDamageValue(World world, BlockPos blockpos)
- Overrides:
getDamageValuein classBlock
-
canGrow
public boolean canGrow(World world, BlockPos blockpos, IBlockState var3, boolean var4)
+ Whether this IGrowable can grow
-
canUseBonemeal
public boolean canUseBonemeal(World var1, EaglercraftRandom var2, BlockPos var3, IBlockState var4)
- Specified by:
canUseBonemealin interfaceIGrowable
-
grow
public void grow(World world, EaglercraftRandom var2, BlockPos blockpos, IBlockState var4)
-
getStateFromMeta
public IBlockState getStateFromMeta(int i)
+ Convert the given metadata into a BlockState for this Block- Overrides:
getStateFromMetain classBlock
-
getActualState
public IBlockState getActualState(IBlockState iblockstate, IBlockAccess iblockaccess, BlockPos blockpos)
+ Get the actual Block state of this Block at the given position. This applies properties not visible in the metadata, such as fence connections.- Overrides:
getActualStatein classBlock
-
getMetaFromState
public int getMetaFromState(IBlockState iblockstate)
+ Convert the BlockState into the correct metadata value- Overrides:
getMetaFromStatein classBlock
-
createBlockState
protected BlockState createBlockState()
- Overrides:
createBlockStatein classBlock
-
getOffsetType
public Block.EnumOffsetType getOffsetType()
+ Get the OffsetType for this Block. Determines if the model is rendered slightly offset.- Overrides:
getOffsetTypein classBlock
-
-