public abstract class ConfigurableBlockWithInnerBlocks extends ConfigurableBlock implements IInformationProvider
| Modifier and Type | Field and Description |
|---|---|
protected net.minecraft.block.Block[] |
INNER_BLOCKS |
eConfig, isInventoryBlock, pass, rendererblockConstructorCalled, blockHardness, blockIcon, blockMaterial, blockParticleGravity, blockRegistry, blockResistance, canBlockGrass, capturedDrops, captureDrops, delegate, enableStats, harvesters, isBlockContainer, lightOpacity, lightValue, maxX, maxY, maxZ, minX, minY, minZ, needsRandomTick, opaque, slipperiness, soundTypeAnvil, soundTypeCloth, soundTypeGlass, soundTypeGrass, soundTypeGravel, soundTypeLadder, soundTypeMetal, soundTypePiston, soundTypeSand, soundTypeSnow, soundTypeStone, soundTypeWood, stepSound, textureName, useNeighborBrightnessBLOCK_PREFIX, INFO_PREFIX, ITEM_PREFIX| Constructor and Description |
|---|
ConfigurableBlockWithInnerBlocks(ExtendedConfig eConfig,
net.minecraft.block.material.Material material)
Make a new block instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canHarvestBlock(net.minecraft.entity.player.EntityPlayer player,
int meta) |
int |
colorMultiplier(net.minecraft.world.IBlockAccess world,
int x,
int y,
int z) |
protected net.minecraft.item.ItemStack |
createStackedBlock(int meta) |
int |
damageDropped(int meta) |
net.minecraft.block.Block |
getBlockFromMetadata(int blockMetadata)
Get the Block from the given (inner) block metadata
|
float |
getBlockHardness(net.minecraft.world.World world,
int x,
int y,
int z) |
net.minecraft.util.IIcon |
getIcon(int side,
int meta) |
java.lang.String |
getInfo(net.minecraft.item.ItemStack itemStack)
Get info for a given itemStack.
|
int |
getInnerBlocks()
Get the amount of innerblocks
|
net.minecraft.item.Item |
getItemDropped(int meta,
java.util.Random random,
int zero) |
int |
getMetadataFromBlock(net.minecraft.block.Block block)
Get the metadata for the given (inner) block id
|
float |
getPlayerRelativeBlockHardness(net.minecraft.entity.player.EntityPlayer player,
net.minecraft.world.World world,
int x,
int y,
int z) |
int |
getRenderColor(int meta) |
void |
getSubBlocks(net.minecraft.item.Item item,
net.minecraft.creativetab.CreativeTabs creativeTabs,
java.util.List list) |
protected abstract net.minecraft.block.Block[] |
makeInnerBlockList()
This should be implemented and return a list of innerblocks, they all must refer to
non-null block instanced to work correctly.
|
void |
provideInformation(net.minecraft.item.ItemStack itemStack,
net.minecraft.entity.player.EntityPlayer entityPlayer,
java.util.List list,
boolean par4)
An extended way to provide additional information.
|
getConfig, getIcon, getRenderBlocks, getRenderPasses, getRenderType, getTextureName, registerBlockIcons, setHarvestLevelDefined, setInventoryBlock, setRenderBlocks, setRenderPass, shouldRender, updateTileEntityaddCollisionBoxesToList, addDestroyEffects, addHitEffects, beginLeavesDecay, breakBlock, canBeReplacedByLeaves, canBlockStay, canCollideCheck, canConnectRedstone, canCreatureSpawn, canDropFromExplosion, canEntityDestroy, canPlaceBlockAt, canPlaceBlockOnSide, canPlaceTorchOnTop, canProvidePower, canRenderInPass, canReplace, canSilkHarvest, canSilkHarvest, canSustainLeaves, canSustainPlant, captureDrops, collisionRayTrace, createTileEntity, disableStats, dropBlockAsItem, dropBlockAsItem, dropBlockAsItemWithChance, dropXpOnBlockBreak, fillWithRain, func_149698_L, func_149730_j, func_149735_b, getAmbientOcclusionLightValue, getBedDirection, getBedSpawnPosition, getBlockBoundsMaxX, getBlockBoundsMaxY, getBlockBoundsMaxZ, getBlockBoundsMinX, getBlockBoundsMinY, getBlockBoundsMinZ, getBlockById, getBlockColor, getBlockFromItem, getBlockFromName, getBlocksMovement, getBlockTextureFromSide, getCanBlockGrass, getCollisionBoundingBoxFromPool, getComparatorInputOverride, getCreativeTabToDisplayOn, getDamageValue, getDrops, getEnableStats, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getExplosionResistance, getFireSpreadSpeed, getFlammability, getHarvestLevel, getHarvestTool, getIcon, getIdFromBlock, getItem, getItemIconName, getLightOpacity, getLightOpacity, getLightValue, getLightValue, getLocalizedName, getMapColor, getMaterial, getMixedBrightnessForBlock, getMobilityFlag, getPickBlock, getPickBlock, getRenderBlockPass, getSelectedBoundingBoxFromPool, getTickRandomly, getUnlocalizedName, getUseNeighborBrightness, getValidRotations, getWeakChanges, harvestBlock, hasComparatorInputOverride, hasTileEntity, hasTileEntity, isAir, isAssociatedBlock, isBeaconBase, isBed, isBedFoot, isBlockNormalCube, isBlockSolid, isBurning, isCollidable, isEqualTo, isFertile, isFireSource, isFlammable, isFlowerPot, isFoliage, isLadder, isLeaves, isNormalCube, isNormalCube, isOpaqueCube, isProvidingStrongPower, isProvidingWeakPower, isReplaceable, isReplaceableOreGen, isSideSolid, isToolEffective, isWood, onBlockActivated, onBlockAdded, onBlockClicked, onBlockDestroyedByExplosion, onBlockDestroyedByPlayer, onBlockEventReceived, onBlockExploded, onBlockHarvested, onBlockPlaced, onBlockPlacedBy, onBlockPreDestroy, onEntityCollidedWithBlock, onEntityWalking, onFallenUpon, onNeighborBlockChange, onNeighborChange, onPlantGrow, onPostBlockPlaced, quantityDropped, quantityDropped, quantityDroppedWithBonus, randomDisplayTick, recolourBlock, registerBlocks, removedByPlayer, removedByPlayer, renderAsNormalBlock, rotateBlock, setBedOccupied, setBlockBounds, setBlockBoundsBasedOnState, setBlockBoundsForItemRender, setBlockName, setBlockTextureName, setBlockUnbreakable, setCreativeTab, setHardness, setHarvestLevel, setHarvestLevel, setLightLevel, setLightOpacity, setResistance, setStepSound, setTickRandomly, shouldCheckWeakPower, shouldSideBeRendered, tickRate, updateTick, velocityToAddToEntitypublic ConfigurableBlockWithInnerBlocks(ExtendedConfig eConfig, net.minecraft.block.material.Material material)
eConfig - Config for this block.material - Material of this block.protected abstract net.minecraft.block.Block[] makeInnerBlockList()
public void getSubBlocks(net.minecraft.item.Item item,
net.minecraft.creativetab.CreativeTabs creativeTabs,
java.util.List list)
getSubBlocks in class net.minecraft.block.Blockpublic net.minecraft.util.IIcon getIcon(int side,
int meta)
getIcon in class ConfigurableBlockpublic net.minecraft.item.Item getItemDropped(int meta,
java.util.Random random,
int zero)
getItemDropped in class net.minecraft.block.Blockprotected net.minecraft.item.ItemStack createStackedBlock(int meta)
createStackedBlock in class net.minecraft.block.Blockpublic java.lang.String getInfo(net.minecraft.item.ItemStack itemStack)
IInformationProvidergetInfo in interface IInformationProvideritemStack - The itemStack that must be given information.public void provideInformation(net.minecraft.item.ItemStack itemStack,
net.minecraft.entity.player.EntityPlayer entityPlayer,
java.util.List list,
boolean par4)
IInformationProviderprovideInformation in interface IInformationProvideritemStack - The itemStack that must be given information.entityPlayer - The player that asks for information.list - The list of information.par4 - No idea...public int getMetadataFromBlock(net.minecraft.block.Block block)
block - The block to search a stained version forpublic net.minecraft.block.Block getBlockFromMetadata(int blockMetadata)
blockMetadata - metadata for the inner block.public int getInnerBlocks()
public float getBlockHardness(net.minecraft.world.World world,
int x,
int y,
int z)
getBlockHardness in class net.minecraft.block.Blockpublic int damageDropped(int meta)
damageDropped in class net.minecraft.block.Blockpublic boolean canHarvestBlock(net.minecraft.entity.player.EntityPlayer player,
int meta)
canHarvestBlock in class net.minecraft.block.Blockpublic float getPlayerRelativeBlockHardness(net.minecraft.entity.player.EntityPlayer player,
net.minecraft.world.World world,
int x,
int y,
int z)
getPlayerRelativeBlockHardness in class net.minecraft.block.Blockpublic int colorMultiplier(net.minecraft.world.IBlockAccess world,
int x,
int y,
int z)
colorMultiplier in class net.minecraft.block.Blockpublic int getRenderColor(int meta)
getRenderColor in class net.minecraft.block.Block