public abstract class ConfigurableBlockConnectedTexture extends ConfigurableBlock
ConnectableIcon as the icon that dynamically changes it's appearance.ConnectableIcon| Modifier and Type | Field and Description |
|---|---|
protected net.minecraft.util.IIcon |
blockIconBorder |
protected net.minecraft.util.IIcon |
blockIconCorner |
protected net.minecraft.util.IIcon |
blockIconInnerCorner |
protected net.minecraft.util.IIcon |
blockIconInventory |
protected ConnectableIcon |
connectableIcon |
protected int |
pass |
protected CustomRenderBlocks |
renderer |
eConfig, isInventoryBlockblockConstructorCalled, 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 |
|---|
ConfigurableBlockConnectedTexture(ExtendedConfig eConfig,
net.minecraft.block.material.Material material)
Make a new block instance.
|
| Modifier and Type | Method and Description |
|---|---|
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.util.IIcon |
getIconBackground()
Get the icon of the background.
|
net.minecraft.util.IIcon |
getIconBorders()
Get the icon for the borders.
|
net.minecraft.util.IIcon |
getIconCorners()
Get the icon for the corners.
|
net.minecraft.util.IIcon |
getIconInnerCorners()
Get the inner corner icon.
|
net.minecraft.util.IIcon |
getIconInventory()
Get the inventory block icon.
|
CustomRenderBlocks |
getRenderBlocks()
Get the
CustomRenderBlocks instance. |
int |
getRenderPasses()
Get the amount of required render passes.
|
int |
getRenderType() |
boolean |
hasSeperateInventoryBlockIcon()
If this block has a seperate icon for rendering the inventory block, false by default.
|
void |
registerBlockIcons(net.minecraft.client.renderer.texture.IIconRegister iconRegister) |
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 |
shouldConnect(net.minecraft.world.IBlockAccess world,
int x,
int y,
int z)
If the block at the given coordinates should connect to any other block.
|
boolean |
shouldConnectDirection(net.minecraft.world.IBlockAccess world,
DirectionCorner side,
int x,
int y,
int z)
If this block should connect at the given direction corner.
|
boolean |
shouldConnectDirection(net.minecraft.world.IBlockAccess world,
net.minecraftforge.common.util.ForgeDirection side,
int x,
int y,
int z)
If this block should connect at the given direction.
|
boolean |
shouldRender(int pass)
If the block should be rendered in this pass.
|
getConfig, getTextureName, setHarvestLevelDefined, updateTileEntityaddCollisionBoxesToList, 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, 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 int pass
protected CustomRenderBlocks renderer
protected ConnectableIcon connectableIcon
protected net.minecraft.util.IIcon blockIconBorder
protected net.minecraft.util.IIcon blockIconCorner
protected net.minecraft.util.IIcon blockIconInnerCorner
protected net.minecraft.util.IIcon blockIconInventory
public ConfigurableBlockConnectedTexture(ExtendedConfig eConfig, net.minecraft.block.material.Material material)
eConfig - Config for this block.material - Material of this block.public net.minecraft.util.IIcon getIconBackground()
public net.minecraft.util.IIcon getIconBorders()
public net.minecraft.util.IIcon getIconCorners()
public net.minecraft.util.IIcon getIconInnerCorners()
public net.minecraft.util.IIcon getIconInventory()
hasSeperateInventoryBlockIcon()public int getRenderType()
getRenderType in class ConfigurableBlockpublic boolean shouldConnect(net.minecraft.world.IBlockAccess world,
int x,
int y,
int z)
world - The world.x - X coordinate.y - Y coordinate.z - Z coordinate.public boolean shouldConnectDirection(net.minecraft.world.IBlockAccess world,
net.minecraftforge.common.util.ForgeDirection side,
int x,
int y,
int z)
world - The world.side - The direction to check the connection with.x - X coordinate.y - Y coordinate.z - Z coordinate.ForgeDirectionpublic boolean shouldConnectDirection(net.minecraft.world.IBlockAccess world,
DirectionCorner side,
int x,
int y,
int z)
world - The world.side - The direction corner to check the connection with.x - X coordinate.y - Y coordinate.z - Z coordinate.DirectionCornerpublic void setRenderPass(int pass)
IMultiRenderPassBlocksetRenderPass in interface IMultiRenderPassBlocksetRenderPass in class ConfigurableBlockpass - The new render pass.public boolean shouldRender(int pass)
IMultiRenderPassBlockshouldRender in interface IMultiRenderPassBlockshouldRender in class ConfigurableBlockpass - The pass to check.public void setRenderBlocks(CustomRenderBlocks renderer)
IMultiRenderPassBlockCustomRenderBlocks instance.setRenderBlocks in interface IMultiRenderPassBlocksetRenderBlocks in class ConfigurableBlockrenderer - The CustomRenderBlocks instance.public CustomRenderBlocks getRenderBlocks()
IMultiRenderPassBlockCustomRenderBlocks instance.getRenderBlocks in interface IMultiRenderPassBlockgetRenderBlocks in class ConfigurableBlockCustomRenderBlocks instance.public void registerBlockIcons(net.minecraft.client.renderer.texture.IIconRegister iconRegister)
registerBlockIcons in class ConfigurableBlockpublic net.minecraft.util.IIcon getIcon(int side,
int meta)
getIcon in class ConfigurableBlockpublic net.minecraft.util.IIcon getIcon(int side,
int meta,
int renderPass)
IMultiRenderPassBlockgetIcon in interface IMultiRenderPassBlockgetIcon in class ConfigurableBlockside - The side to render for.meta - The metadata of the block that will be rendered.renderPass - The renderpass.public 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 int getRenderPasses()
IMultiRenderPassBlockgetRenderPasses in interface IMultiRenderPassBlockgetRenderPasses in class ConfigurableBlockpublic void setInventoryBlock(boolean isInventoryBlock)
IMultiRenderPassBlocksetInventoryBlock in interface IMultiRenderPassBlocksetInventoryBlock in class ConfigurableBlockisInventoryBlock - The new valuepublic boolean hasSeperateInventoryBlockIcon()