public class ConfigurableBlockContainer extends net.minecraft.block.BlockContainer implements IConfigurable, IMultiRenderPassBlock
| Modifier and Type | Field and Description |
|---|---|
protected ExtendedConfig |
eConfig |
protected boolean |
hasGui |
protected boolean |
isInventoryBlock |
protected int |
pass |
protected java.util.Random |
random |
protected CustomRenderBlocks |
renderer |
protected net.minecraft.util.IIcon[] |
sideIcons |
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 |
|---|
ConfigurableBlockContainer(ExtendedConfig eConfig,
net.minecraft.block.material.Material material,
java.lang.Class<? extends EvilCraftTileEntity> tileEntity)
Make a new block instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
breakBlock(net.minecraft.world.World world,
int x,
int y,
int z,
net.minecraft.block.Block block,
int meta) |
net.minecraft.tileentity.TileEntity |
createNewTileEntity(net.minecraft.world.World world,
int meta) |
BlockContainerConfig |
getConfig() |
java.util.ArrayList<net.minecraft.item.ItemStack> |
getDrops(net.minecraft.world.World world,
int x,
int y,
int z,
int metadata,
int fortune) |
java.lang.String |
getGuiTexture()
Get the texture path of the GUI.
|
java.lang.String |
getGuiTexture(java.lang.String suffix)
Get the texture path of the GUI.
|
net.minecraft.util.IIcon |
getIcon(net.minecraft.world.IBlockAccess world,
int x,
int y,
int z,
int side) |
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.
|
net.minecraft.item.ItemStack |
getPickBlock(net.minecraft.util.MovingObjectPosition target,
net.minecraft.world.World world,
int x,
int y,
int z) |
CustomRenderBlocks |
getRenderBlocks()
Get the
CustomRenderBlocks instance. |
int |
getRenderPasses()
Get the amount of required render passes.
|
int |
getRenderType() |
java.lang.String |
getTextureName() |
java.lang.Class<? extends net.minecraft.tileentity.TileEntity> |
getTileEntity()
Get the class of the tile entity this block holds.
|
boolean |
hasGui()
If this block container has a corresponding GUI.
|
boolean |
isKeepNBTOnDrop()
If the NBT data of this block should be preserved in the item when it
is broken into an item.
|
boolean |
isOpaqueCube() |
boolean |
isRotatable()
If this block can be rotated.
|
void |
onBlockDestroyedByExplosion(net.minecraft.world.World world,
int x,
int y,
int z,
net.minecraft.world.Explosion explosion) |
void |
onBlockPlacedBy(net.minecraft.world.World world,
int x,
int y,
int z,
net.minecraft.entity.EntityLivingBase entity,
net.minecraft.item.ItemStack stack) |
protected void |
onPostBlockDestroyed(net.minecraft.world.World world,
int x,
int y,
int z) |
protected void |
onPreBlockDestroyed(net.minecraft.world.World world,
int x,
int y,
int z) |
void |
registerBlockIcons(net.minecraft.client.renderer.texture.IIconRegister iconRegister) |
boolean |
rotateBlock(net.minecraft.world.World world,
int x,
int y,
int z,
net.minecraftforge.common.util.ForgeDirection axis) |
boolean |
saveNBTToDroppedItem()
If the NBT data of this tile entity should be added to the dropped block.
|
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.
|
void |
setRotatable(boolean rotatable)
Set whether of not this container must be able to be rotated.
|
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.
|
void |
writeAdditionalInfo(net.minecraft.tileentity.TileEntity tile,
net.minecraft.nbt.NBTTagCompound tag)
Write additional info about the tile into the item.
|
addCollisionBoxesToList, addDestroyEffects, addHitEffects, beginLeavesDecay, 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, getEnableStats, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getExplosionResistance, getFireSpreadSpeed, getFlammability, getHarvestLevel, getHarvestTool, getIdFromBlock, getItem, getItemDropped, getItemIconName, getLightOpacity, getLightOpacity, getLightValue, getLightValue, getLocalizedName, getMapColor, getMaterial, getMixedBrightnessForBlock, getMobilityFlag, 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, isProvidingStrongPower, isProvidingWeakPower, isReplaceable, isReplaceableOreGen, isSideSolid, isToolEffective, isWood, onBlockActivated, onBlockClicked, onBlockDestroyedByPlayer, onBlockExploded, onBlockHarvested, onBlockPlaced, onBlockPreDestroy, onEntityCollidedWithBlock, onEntityWalking, onFallenUpon, onNeighborBlockChange, onNeighborChange, onPlantGrow, onPostBlockPlaced, quantityDropped, quantityDropped, quantityDroppedWithBonus, randomDisplayTick, recolourBlock, registerBlocks, removedByPlayer, removedByPlayer, renderAsNormalBlock, setBedOccupied, setBlockBounds, setBlockBoundsBasedOnState, setBlockBoundsForItemRender, setBlockName, setBlockTextureName, setBlockUnbreakable, setCreativeTab, setHardness, setHarvestLevel, setHarvestLevel, setLightLevel, setLightOpacity, setResistance, setStepSound, setTickRandomly, shouldCheckWeakPower, shouldSideBeRendered, tickRate, updateTick, velocityToAddToEntityprotected ExtendedConfig eConfig
protected java.util.Random random
protected boolean hasGui
protected net.minecraft.util.IIcon[] sideIcons
protected int pass
protected CustomRenderBlocks renderer
protected boolean isInventoryBlock
public ConfigurableBlockContainer(ExtendedConfig eConfig, net.minecraft.block.material.Material material, java.lang.Class<? extends EvilCraftTileEntity> tileEntity)
eConfig - Config for this block.material - Material of this block.tileEntity - The class of the tile entity this block holds.public java.lang.Class<? extends net.minecraft.tileentity.TileEntity> getTileEntity()
public boolean hasGui()
public void registerBlockIcons(net.minecraft.client.renderer.texture.IIconRegister iconRegister)
registerBlockIcons in class net.minecraft.block.Blockpublic net.minecraft.util.IIcon getIcon(net.minecraft.world.IBlockAccess world,
int x,
int y,
int z,
int side)
getIcon 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 java.lang.String getTextureName()
getTextureName in class net.minecraft.block.Blockpublic net.minecraft.tileentity.TileEntity createNewTileEntity(net.minecraft.world.World world,
int meta)
createNewTileEntity in interface net.minecraft.block.ITileEntityProviderpublic boolean isOpaqueCube()
isOpaqueCube in class net.minecraft.block.Blockpublic boolean saveNBTToDroppedItem()
protected void onPreBlockDestroyed(net.minecraft.world.World world,
int x,
int y,
int z)
protected void onPostBlockDestroyed(net.minecraft.world.World world,
int x,
int y,
int z)
public void breakBlock(net.minecraft.world.World world,
int x,
int y,
int z,
net.minecraft.block.Block block,
int meta)
breakBlock in class net.minecraft.block.BlockContainerpublic void onBlockDestroyedByExplosion(net.minecraft.world.World world,
int x,
int y,
int z,
net.minecraft.world.Explosion explosion)
onBlockDestroyedByExplosion in class net.minecraft.block.Blockpublic void onBlockPlacedBy(net.minecraft.world.World world,
int x,
int y,
int z,
net.minecraft.entity.EntityLivingBase entity,
net.minecraft.item.ItemStack stack)
onBlockPlacedBy in class net.minecraft.block.Blockpublic void writeAdditionalInfo(net.minecraft.tileentity.TileEntity tile,
net.minecraft.nbt.NBTTagCompound tag)
tile - The tile that is being broken.tag - The tag that will be added to the dropped item.public boolean rotateBlock(net.minecraft.world.World world,
int x,
int y,
int z,
net.minecraftforge.common.util.ForgeDirection axis)
rotateBlock in class net.minecraft.block.Blockpublic java.util.ArrayList<net.minecraft.item.ItemStack> getDrops(net.minecraft.world.World world,
int x,
int y,
int z,
int metadata,
int fortune)
getDrops in class net.minecraft.block.Blockpublic boolean isKeepNBTOnDrop()
public boolean isRotatable()
public void setRotatable(boolean rotatable)
rotatable - Can be rotated.public java.lang.String getGuiTexture()
public java.lang.String getGuiTexture(java.lang.String suffix)
suffix - Suffix to add to the path.public net.minecraft.item.ItemStack getPickBlock(net.minecraft.util.MovingObjectPosition target,
net.minecraft.world.World world,
int x,
int y,
int z)
getPickBlock in class net.minecraft.block.Blockpublic final BlockContainerConfig getConfig()
getConfig in interface IConfigurable