public class ConfigurableBlock extends net.minecraft.block.Block implements IConfigurable, IMultiRenderPassBlock
| Modifier and Type | Field and Description |
|---|---|
protected ExtendedConfig |
eConfig |
protected boolean |
isInventoryBlock |
protected int |
pass |
protected CustomRenderBlocks |
renderer |
blockConstructorCalled, 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, useNeighborBrightness| Constructor and Description |
|---|
ConfigurableBlock(ExtendedConfig eConfig,
net.minecraft.block.material.Material material)
Make a new block instance.
|
| Modifier and Type | Method and Description |
|---|---|
ExtendedConfig<?> |
getConfig() |
net.minecraft.util.IIcon |
getIcon(int side,
int meta) |
net.minecraft.util.IIcon |
getIcon(int side,
int meta,
int renderPass)
Get the icon for the given parameters.
|
CustomRenderBlocks |
getRenderBlocks()
Get the
CustomRenderBlocks instance. |
int |
getRenderPasses()
Get the amount of required render passes.
|
int |
getRenderType() |
java.lang.String |
getTextureName() |
void |
registerBlockIcons(net.minecraft.client.renderer.texture.IIconRegister iconRegister) |
ConfigurableBlock |
setHarvestLevelDefined(java.lang.String toolClass,
int level) |
void |
setInventoryBlock(boolean isInventoryBlock)
Define whether or not the current rendering is for an inventory block.
|
void |
setRenderBlocks(CustomRenderBlocks renderer)
Set the
CustomRenderBlocks instance. |
void |
setRenderPass(int pass)
Set the current pass to render at.
|
boolean |
shouldRender(int pass)
If the block should be rendered in this pass.
|
void |
updateTileEntity(net.minecraft.world.IBlockAccess world,
int x,
int y,
int z)
Update the tile entity (for updating the icon) at the given coordinates.
|
addCollisionBoxesToList, addDestroyEffects, addHitEffects, beginLeavesDecay, breakBlock, canBeReplacedByLeaves, canBlockStay, canCollideCheck, canConnectRedstone, canCreatureSpawn, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canPlaceBlockAt, canPlaceBlockOnSide, canPlaceTorchOnTop, canProvidePower, canRenderInPass, canReplace, canSilkHarvest, canSilkHarvest, canSustainLeaves, canSustainPlant, captureDrops, collisionRayTrace, colorMultiplier, createStackedBlock, createTileEntity, damageDropped, 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, getBlockHardness, getBlocksMovement, getBlockTextureFromSide, getCanBlockGrass, getCollisionBoundingBoxFromPool, getComparatorInputOverride, getCreativeTabToDisplayOn, getDamageValue, getDrops, getEnableStats, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getExplosionResistance, getFireSpreadSpeed, getFlammability, getHarvestLevel, getHarvestTool, getIcon, getIdFromBlock, getItem, getItemDropped, getItemIconName, getLightOpacity, getLightOpacity, getLightValue, getLightValue, getLocalizedName, getMapColor, getMaterial, getMixedBrightnessForBlock, getMobilityFlag, getPickBlock, getPickBlock, getPlayerRelativeBlockHardness, getRenderBlockPass, getRenderColor, getSelectedBoundingBoxFromPool, getSubBlocks, 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, velocityToAddToEntityprotected ExtendedConfig eConfig
protected int pass
protected CustomRenderBlocks renderer
protected boolean isInventoryBlock
public ConfigurableBlock(ExtendedConfig eConfig, net.minecraft.block.material.Material material)
eConfig - Config for this block.material - Material of this block.public ExtendedConfig<?> getConfig()
getConfig in interface IConfigurablepublic void registerBlockIcons(net.minecraft.client.renderer.texture.IIconRegister iconRegister)
registerBlockIcons in class net.minecraft.block.Blockpublic java.lang.String getTextureName()
getTextureName in class net.minecraft.block.Blockpublic net.minecraft.util.IIcon getIcon(int side,
int meta)
getIcon in class net.minecraft.block.Blockpublic net.minecraft.util.IIcon getIcon(int side,
int meta,
int renderPass)
IMultiRenderPassBlockgetIcon in interface IMultiRenderPassBlockside - The side to render for.meta - The metadata of the block that will be rendered.renderPass - The renderpass.public int getRenderType()
getRenderType in class net.minecraft.block.Blockpublic int getRenderPasses()
IMultiRenderPassBlockgetRenderPasses in interface IMultiRenderPassBlockpublic void setRenderPass(int pass)
IMultiRenderPassBlocksetRenderPass in interface IMultiRenderPassBlockpass - The new render pass.public boolean shouldRender(int pass)
IMultiRenderPassBlockshouldRender in interface IMultiRenderPassBlockpass - The pass to check.public void setRenderBlocks(CustomRenderBlocks renderer)
IMultiRenderPassBlockCustomRenderBlocks instance.setRenderBlocks in interface IMultiRenderPassBlockrenderer - The CustomRenderBlocks instance.public CustomRenderBlocks getRenderBlocks()
IMultiRenderPassBlockCustomRenderBlocks instance.getRenderBlocks in interface IMultiRenderPassBlockCustomRenderBlocks instance.public void updateTileEntity(net.minecraft.world.IBlockAccess world,
int x,
int y,
int z)
IMultiRenderPassBlockupdateTileEntity in interface IMultiRenderPassBlockworld - The world.x - X coordinate.y - Y coordinate.z - Z coordinate.public void setInventoryBlock(boolean isInventoryBlock)
IMultiRenderPassBlocksetInventoryBlock in interface IMultiRenderPassBlockisInventoryBlock - The new valuepublic ConfigurableBlock setHarvestLevelDefined(java.lang.String toolClass, int level)