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 PropertyBool
CHECK_DECAY
static PropertyBool
DECAYABLE
protected int
iconIndex
protected boolean
isTransparent
-
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 void
breakBlock(World world, BlockPos blockpos, IBlockState var3)
int
colorMultiplier(IBlockAccess iblockaccess, BlockPos blockpos, int var3)
protected void
dropApple(World worldIn, BlockPos pos, IBlockState state, int chance)
int
getBlockColor()
EnumWorldBlockLayer
getBlockLayer()
Item
getItemDropped(IBlockState var1, EaglercraftRandom var2, int var3)
+ Get the Item that this Block should drop when harvested.int
getRenderColor(IBlockState var1)
protected int
getSaplingDropChance(IBlockState state)
abstract BlockPlanks.EnumType
getWoodType(int var1)
boolean
isOpaqueCube()
+ Used to determine ambient occlusion and culling when rebuilding chunks for renderboolean
isVisuallyOpaque()
int
quantityDropped(EaglercraftRandom random)
+ Returns the quantity of items to drop on block destruction.void
randomDisplayTick(World world, BlockPos blockpos, IBlockState var3, EaglercraftRandom random)
void
setGraphicsLevel(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:
getBlockColor
in classBlock
-
getRenderColor
public int getRenderColor(IBlockState var1)
- Overrides:
getRenderColor
in classBlock
-
colorMultiplier
public int colorMultiplier(IBlockAccess iblockaccess, BlockPos blockpos, int var3)
- Overrides:
colorMultiplier
in classBlock
-
breakBlock
public void breakBlock(World world, BlockPos blockpos, IBlockState var3)
- Overrides:
breakBlock
in classBlock
-
randomDisplayTick
public void randomDisplayTick(World world, BlockPos blockpos, IBlockState var3, EaglercraftRandom random)
- Overrides:
randomDisplayTick
in classBlock
-
quantityDropped
public int quantityDropped(EaglercraftRandom random)
+ Returns the quantity of items to drop on block destruction.- Overrides:
quantityDropped
in classBlock
-
getItemDropped
public Item getItemDropped(IBlockState var1, EaglercraftRandom var2, int var3)
+ Get the Item that this Block should drop when harvested.- Overrides:
getItemDropped
in 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:
isOpaqueCube
in 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:
getBlockLayer
in classBlock
-
isVisuallyOpaque
public boolean isVisuallyOpaque()
- Overrides:
isVisuallyOpaque
in classBlock
-
getWoodType
public abstract BlockPlanks.EnumType getWoodType(int var1)
-
-