Package net.minecraft.block
Class BlockTallGrass
- java.lang.Object
-
- net.zxmushroom63.plugins.BaseData
-
- net.zxmushroom63.plugins.PluginData
-
- net.minecraft.block.Block
-
- net.minecraft.block.BlockBush
-
- net.minecraft.block.BlockTallGrass
-
- All Implemented Interfaces:
IGrowable
,org.teavm.jso.JSObject
public class BlockTallGrass 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 class
BlockTallGrass.EnumType
-
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<BlockTallGrass.EnumType>
TYPE
-
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 Modifier Constructor Description protected
BlockTallGrass()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
bootstrapStates()
boolean
canBlockStay(World world, BlockPos blockpos, IBlockState var3)
boolean
canGrow(World var1, BlockPos var2, IBlockState iblockstate, boolean var4)
+ Whether this IGrowable can growboolean
canUseBonemeal(World var1, EaglercraftRandom var2, BlockPos var3, IBlockState var4)
int
colorMultiplier(IBlockAccess iblockaccess, BlockPos blockpos, int var3)
protected BlockState
createBlockState()
int
getBlockColor()
int
getDamageValue(World world, BlockPos blockpos)
Item
getItemDropped(IBlockState var1, EaglercraftRandom random, int var3)
+ Get the Item that this Block should drop when harvested.int
getMetaFromState(IBlockState iblockstate)
+ Convert the BlockState into the correct metadata valueBlock.EnumOffsetType
getOffsetType()
+ Get the OffsetType for this Block.int
getRenderColor(IBlockState iblockstate)
IBlockState
getStateFromMeta(int i)
+ Convert the given metadata into a BlockState for this Blockvoid
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)void
grow(World world, EaglercraftRandom var2, BlockPos blockpos, IBlockState iblockstate)
boolean
isReplaceable(World var1, BlockPos var2)
+ Whether this Block can be replaced directly by other blocks (true for e.g.int
quantityDroppedWithBonus(int i, EaglercraftRandom random)
+ Get the quantity dropped based on the given fortune level-
Methods inherited from class net.minecraft.block.BlockBush
canPlaceBlockAt, canPlaceBlockOn, checkAndDropBlock, 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, damageDropped, disableStats, dropBlockAsItem, dropBlockAsItemWithChance, dropXpOnBlockBreak, fillWithRain, func_181623_g, getActualState, getAmbientOcclusionLightValue, getBlockBoundsMaxX, getBlockBoundsMaxY, getBlockBoundsMaxZ, getBlockBoundsMinX, getBlockBoundsMinY, getBlockBoundsMinZ, getBlockById, getBlockFromItem, getBlockFromName, getBlockHardness, getBlockState, getComparatorInputOverride, getCreativeTabToDisplayOn, getDefaultState, getEnableStats, getExplosionResistance, getIdFromBlock, getItem, getLightOpacity, getLightValue, getLocalizedName, getMapColor, getMaterial, getMixedBrightnessForBlock, getMobilityFlag, getPlayerRelativeBlockHardness, 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, onBlockHarvested, onBlockPlaced, onBlockPlacedBy, onEntityCollidedWithBlock, onEntityCollidedWithBlock, onFallenUpon, onLanded, quantityDropped, randomDisplayTick, randomTick, registerBlocks, requiresUpdates, setBlockBounds, setBlockBoundsBasedOnState, 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
-
TYPE
public static PropertyEnum<BlockTallGrass.EnumType> TYPE
-
-
Method Detail
-
bootstrapStates
public static void bootstrapStates()
-
getBlockColor
public int getBlockColor()
- Overrides:
getBlockColor
in classBlock
-
canBlockStay
public boolean canBlockStay(World world, BlockPos blockpos, IBlockState var3)
- Overrides:
canBlockStay
in classBlockBush
-
isReplaceable
public boolean isReplaceable(World var1, BlockPos var2)
+ Whether this Block can be replaced directly by other blocks (true for e.g. tall grass)- Overrides:
isReplaceable
in classBlock
-
getRenderColor
public int getRenderColor(IBlockState iblockstate)
- Overrides:
getRenderColor
in classBlock
-
colorMultiplier
public int colorMultiplier(IBlockAccess iblockaccess, BlockPos blockpos, int var3)
- Overrides:
colorMultiplier
in classBlock
-
getItemDropped
public Item getItemDropped(IBlockState var1, EaglercraftRandom random, int var3)
+ Get the Item that this Block should drop when harvested.- Overrides:
getItemDropped
in classBlock
-
quantityDroppedWithBonus
public int quantityDroppedWithBonus(int i, EaglercraftRandom random)
+ Get the quantity dropped based on the given fortune level- Overrides:
quantityDroppedWithBonus
in classBlock
-
getDamageValue
public int getDamageValue(World world, BlockPos blockpos)
- Overrides:
getDamageValue
in 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:
getSubBlocks
in classBlock
-
canGrow
public boolean canGrow(World var1, BlockPos var2, IBlockState iblockstate, boolean var4)
+ Whether this IGrowable can grow
-
canUseBonemeal
public boolean canUseBonemeal(World var1, EaglercraftRandom var2, BlockPos var3, IBlockState var4)
- Specified by:
canUseBonemeal
in interfaceIGrowable
-
grow
public void grow(World world, EaglercraftRandom var2, BlockPos blockpos, IBlockState iblockstate)
-
getStateFromMeta
public IBlockState getStateFromMeta(int i)
+ Convert the given metadata into a BlockState for this Block- Overrides:
getStateFromMeta
in classBlock
-
getMetaFromState
public int getMetaFromState(IBlockState iblockstate)
+ Convert the BlockState into the correct metadata value- Overrides:
getMetaFromState
in classBlock
-
createBlockState
protected BlockState createBlockState()
- Overrides:
createBlockState
in classBlock
-
getOffsetType
public Block.EnumOffsetType getOffsetType()
+ Get the OffsetType for this Block. Determines if the model is rendered slightly offset.- Overrides:
getOffsetType
in classBlock
-
-