Package net.minecraft.block
Class BlockCocoa
- java.lang.Object
-
- net.zxmushroom63.plugins.BaseData
-
- net.zxmushroom63.plugins.PluginData
-
- net.minecraft.block.Block
-
- net.minecraft.block.BlockDirectional
-
- net.minecraft.block.BlockCocoa
-
- All Implemented Interfaces:
IGrowable,org.teavm.jso.JSObject
public class BlockCocoa extends BlockDirectional 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/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 PropertyIntegerAGE-
Fields inherited from class net.minecraft.block.BlockDirectional
FACING
-
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 BlockCocoa()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanBlockStay(World worldIn, BlockPos pos, IBlockState state)booleancanGrow(World var1, BlockPos var2, IBlockState iblockstate, boolean var4)+ Whether this IGrowable can growbooleancanUseBonemeal(World var1, EaglercraftRandom var2, BlockPos var3, IBlockState var4)protected BlockStatecreateBlockState()voiddropBlockAsItemWithChance(World world, BlockPos blockpos, IBlockState iblockstate, float var4, int var5)+ Spawns this Block's drops into the World as EntityItems.EnumWorldBlockLayergetBlockLayer()AxisAlignedBBgetCollisionBoundingBox(World world, BlockPos blockpos, IBlockState iblockstate)intgetDamageValue(World var1, BlockPos var2)ItemgetItem(World var1, BlockPos var2)intgetMetaFromState(IBlockState iblockstate)+ Convert the BlockState into the correct metadata valueAxisAlignedBBgetSelectedBoundingBox(World world, BlockPos blockpos)IBlockStategetStateFromMeta(int i)+ Convert the given metadata into a BlockState for this Blockvoidgrow(World world, EaglercraftRandom var2, BlockPos blockpos, IBlockState iblockstate)booleanisFullCube()booleanisOpaqueCube()+ Used to determine ambient occlusion and culling when rebuilding chunks for renderIBlockStateonBlockPlaced(World var1, BlockPos var2, EnumFacing enumfacing, float var4, float var5, float var6, int var7, EntityLivingBase var8)+ Called by ItemBlocks just before a block is actually set in the world, to allow for adjustments to the IBlockstatevoidonBlockPlacedBy(World world, BlockPos blockpos, IBlockState iblockstate, EntityLivingBase entitylivingbase, ItemStack var5)+ Called by ItemBlocks after a block is set in the world, to allow post-place logicvoidonNeighborBlockChange(World world, BlockPos blockpos, IBlockState iblockstate, Block var4)+ Called when a neighboring block changes.voidsetBlockBoundsBasedOnState(IBlockAccess iblockaccess, BlockPos blockpos)voidupdateTick(World world, BlockPos blockpos, IBlockState iblockstate, EaglercraftRandom var4)-
Methods inherited from class net.minecraft.block.Block
addCollisionBoxesToList, bootstrapStates, breakBlock, canCollideCheck, canDropFromExplosion, canPlaceBlockAt, canPlaceBlockOnSide, canProvidePower, canReplace, canSilkHarvest, collisionRayTrace, colorMultiplier, colorMultiplier, createStackedBlock, damageDropped, disableStats, dropBlockAsItem, dropXpOnBlockBreak, fillWithRain, func_181623_g, getActualState, getAmbientOcclusionLightValue, getBlockBoundsMaxX, getBlockBoundsMaxY, getBlockBoundsMaxZ, getBlockBoundsMinX, getBlockBoundsMinY, getBlockBoundsMinZ, getBlockById, getBlockColor, getBlockFromItem, getBlockFromName, getBlockHardness, getBlockState, getComparatorInputOverride, getCreativeTabToDisplayOn, getDefaultState, getEnableStats, getExplosionResistance, getIdFromBlock, getItemDropped, getLightOpacity, getLightValue, getLocalizedName, getMapColor, getMaterial, getMixedBrightnessForBlock, getMobilityFlag, getOffsetType, getPlayerRelativeBlockHardness, getRenderColor, getRenderType, getStateById, getStateForEntityRender, getStateId, getStrongPower, getSubBlocks, getTickRandomly, getUnlocalizedName, getUseNeighborBrightness, getWeakPower, harvestBlock, hasComparatorInputOverride, hasTileEntity, isAssociatedBlock, isBlockNormalCube, isBlockSolid, isCollidable, isEqualTo, isFlowerPot, isFullBlock, isNormalCube, isPassable, isReplaceable, isTranslucent, isVisuallyOpaque, loadPluginData, makePluginData, modifyAcceleration, onBlockActivated, onBlockAdded, onBlockClicked, onBlockDestroyedByExplosion, onBlockDestroyedByPlayer, onBlockEventReceived, onBlockHarvested, 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
-
AGE
public static final PropertyInteger AGE
-
-
Method Detail
-
updateTick
public void updateTick(World world, BlockPos blockpos, IBlockState iblockstate, EaglercraftRandom var4)
- Overrides:
updateTickin classBlock
-
canBlockStay
public boolean canBlockStay(World worldIn, BlockPos pos, IBlockState state)
-
isFullCube
public boolean isFullCube()
- Overrides:
isFullCubein classBlock
-
isOpaqueCube
public boolean isOpaqueCube()
+ Used to determine ambient occlusion and culling when rebuilding chunks for render- Overrides:
isOpaqueCubein classBlock
-
getCollisionBoundingBox
public AxisAlignedBB getCollisionBoundingBox(World world, BlockPos blockpos, IBlockState iblockstate)
- Overrides:
getCollisionBoundingBoxin classBlock
-
getSelectedBoundingBox
public AxisAlignedBB getSelectedBoundingBox(World world, BlockPos blockpos)
- Overrides:
getSelectedBoundingBoxin classBlock
-
setBlockBoundsBasedOnState
public void setBlockBoundsBasedOnState(IBlockAccess iblockaccess, BlockPos blockpos)
- Overrides:
setBlockBoundsBasedOnStatein classBlock
-
onBlockPlacedBy
public void onBlockPlacedBy(World world, BlockPos blockpos, IBlockState iblockstate, EntityLivingBase entitylivingbase, ItemStack var5)
+ Called by ItemBlocks after a block is set in the world, to allow post-place logic- Overrides:
onBlockPlacedByin classBlock
-
onBlockPlaced
public IBlockState onBlockPlaced(World var1, BlockPos var2, EnumFacing enumfacing, float var4, float var5, float var6, int var7, EntityLivingBase var8)
+ Called by ItemBlocks just before a block is actually set in the world, to allow for adjustments to the IBlockstate- Overrides:
onBlockPlacedin classBlock
-
onNeighborBlockChange
public void onNeighborBlockChange(World world, BlockPos blockpos, IBlockState iblockstate, Block var4)
+ Called when a neighboring block changes.- Overrides:
onNeighborBlockChangein classBlock
-
dropBlockAsItemWithChance
public void dropBlockAsItemWithChance(World world, BlockPos blockpos, IBlockState iblockstate, float var4, int var5)
+ Spawns this Block's drops into the World as EntityItems.- Overrides:
dropBlockAsItemWithChancein classBlock
-
getDamageValue
public int getDamageValue(World var1, BlockPos var2)
- Overrides:
getDamageValuein 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:
canUseBonemealin interfaceIGrowable
-
grow
public void grow(World world, EaglercraftRandom var2, BlockPos blockpos, IBlockState iblockstate)
-
getBlockLayer
public EnumWorldBlockLayer getBlockLayer()
- Overrides:
getBlockLayerin classBlock
-
getStateFromMeta
public IBlockState getStateFromMeta(int i)
+ Convert the given metadata into a BlockState for this Block- Overrides:
getStateFromMetain 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
-
-