Package net.minecraft.block
Class BlockLeaves
- java.lang.Object
-
- net.zxmushroom63.plugins.BaseData
-
- net.zxmushroom63.plugins.PluginData
-
- net.minecraft.block.Block
-
- net.minecraft.block.BlockLeavesBase
-
- net.minecraft.block.BlockLeaves
-
- All Implemented Interfaces:
org.teavm.jso.JSObject
- Direct Known Subclasses:
BlockNewLeaf,BlockOldLeaf
public abstract class BlockLeaves extends BlockLeavesBase
-
-
Nested Class Summary
-
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 PropertyBoolCHECK_DECAYstatic PropertyBoolDECAYABLEprotected inticonIndexprotected booleanisTransparent-
Fields inherited from class net.minecraft.block.BlockLeavesBase
fancyGraphics
-
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 BlockLeaves()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidbreakBlock(World world, BlockPos blockpos, IBlockState var3)intcolorMultiplier(IBlockAccess iblockaccess, BlockPos blockpos, int var3)protected voiddropApple(World worldIn, BlockPos pos, IBlockState state, int chance)intgetBlockColor()EnumWorldBlockLayergetBlockLayer()ItemgetItemDropped(IBlockState var1, EaglercraftRandom var2, int var3)+ Get the Item that this Block should drop when harvested.intgetRenderColor(IBlockState var1)protected intgetSaplingDropChance(IBlockState state)abstract BlockPlanks.EnumTypegetWoodType(int var1)booleanisOpaqueCube()+ Used to determine ambient occlusion and culling when rebuilding chunks for renderbooleanisVisuallyOpaque()intquantityDropped(EaglercraftRandom random)+ Returns the quantity of items to drop on block destruction.voidrandomDisplayTick(World world, BlockPos blockpos, IBlockState var3, EaglercraftRandom random)voidsetGraphicsLevel(boolean fancy)+ Pass true to draw this block using fancy graphics, or false for fast graphics.-
Methods inherited from class net.minecraft.block.BlockLeavesBase
shouldSideBeRendered
-
Methods inherited from class net.minecraft.block.Block
addCollisionBoxesToList, bootstrapStates, canCollideCheck, canDropFromExplosion, canPlaceBlockAt, canPlaceBlockOnSide, canProvidePower, canReplace, canSilkHarvest, collisionRayTrace, colorMultiplier, createBlockState, createStackedBlock, damageDropped, disableStats, dropBlockAsItem, dropBlockAsItemWithChance, dropXpOnBlockBreak, fillWithRain, func_181623_g, getActualState, getAmbientOcclusionLightValue, getBlockBoundsMaxX, getBlockBoundsMaxY, getBlockBoundsMaxZ, getBlockBoundsMinX, getBlockBoundsMinY, getBlockBoundsMinZ, getBlockById, getBlockFromItem, getBlockFromName, getBlockHardness, getBlockState, getCollisionBoundingBox, getComparatorInputOverride, getCreativeTabToDisplayOn, getDamageValue, getDefaultState, getEnableStats, getExplosionResistance, getIdFromBlock, getItem, getLightOpacity, getLightValue, getLocalizedName, getMapColor, getMaterial, getMetaFromState, getMixedBrightnessForBlock, getMobilityFlag, getOffsetType, getPlayerRelativeBlockHardness, getRenderType, getSelectedBoundingBox, getStateById, getStateForEntityRender, getStateFromMeta, getStateId, getStrongPower, getSubBlocks, getTickRandomly, getUnlocalizedName, getUseNeighborBrightness, getWeakPower, harvestBlock, hasComparatorInputOverride, hasTileEntity, isAssociatedBlock, isBlockNormalCube, isBlockSolid, isCollidable, isEqualTo, isFlowerPot, isFullBlock, isFullCube, isNormalCube, isPassable, isReplaceable, isTranslucent, loadPluginData, makePluginData, modifyAcceleration, onBlockActivated, onBlockAdded, onBlockClicked, onBlockDestroyedByExplosion, onBlockDestroyedByPlayer, onBlockEventReceived, onBlockHarvested, onBlockPlaced, onBlockPlacedBy, onEntityCollidedWithBlock, onEntityCollidedWithBlock, onFallenUpon, onLanded, onNeighborBlockChange, quantityDroppedWithBonus, randomTick, registerBlocks, requiresUpdates, setBlockBounds, setBlockBoundsBasedOnState, setBlockBoundsForItemRender, setBlockUnbreakable, setCreativeTab, setDefaultState, setHardness, setLightLevel, setLightOpacity, setResistance, setStepSound, setTickRandomly, setUnlocalizedName, spawnAsEntity, tickRate, toString, updateTick
-
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
-
DECAYABLE
public static final PropertyBool DECAYABLE
-
CHECK_DECAY
public static final PropertyBool CHECK_DECAY
-
iconIndex
protected int iconIndex
-
isTransparent
protected boolean isTransparent
-
-
Method Detail
-
getBlockColor
public int getBlockColor()
- Overrides:
getBlockColorin classBlock
-
getRenderColor
public int getRenderColor(IBlockState var1)
- Overrides:
getRenderColorin classBlock
-
colorMultiplier
public int colorMultiplier(IBlockAccess iblockaccess, BlockPos blockpos, int var3)
- Overrides:
colorMultiplierin classBlock
-
breakBlock
public void breakBlock(World world, BlockPos blockpos, IBlockState var3)
- Overrides:
breakBlockin classBlock
-
randomDisplayTick
public void randomDisplayTick(World world, BlockPos blockpos, IBlockState var3, EaglercraftRandom random)
- Overrides:
randomDisplayTickin classBlock
-
quantityDropped
public int quantityDropped(EaglercraftRandom random)
+ Returns the quantity of items to drop on block destruction.- Overrides:
quantityDroppedin classBlock
-
getItemDropped
public Item getItemDropped(IBlockState var1, EaglercraftRandom var2, int var3)
+ Get the Item that this Block should drop when harvested.- Overrides:
getItemDroppedin classBlock
-
dropApple
protected void dropApple(World worldIn, BlockPos pos, IBlockState state, int chance)
-
getSaplingDropChance
protected int getSaplingDropChance(IBlockState state)
-
isOpaqueCube
public boolean isOpaqueCube()
+ Used to determine ambient occlusion and culling when rebuilding chunks for render- Overrides:
isOpaqueCubein classBlockLeavesBase
-
setGraphicsLevel
public void setGraphicsLevel(boolean fancy)
+ Pass true to draw this block using fancy graphics, or false for fast graphics.
-
getBlockLayer
public EnumWorldBlockLayer getBlockLayer()
- Overrides:
getBlockLayerin classBlock
-
isVisuallyOpaque
public boolean isVisuallyOpaque()
- Overrides:
isVisuallyOpaquein classBlock
-
getWoodType
public abstract BlockPlanks.EnumType getWoodType(int var1)
-
-