public abstract class ConfigurableBlockContainerGuiTankInfo extends ConfigurableBlockContainerGui implements IInformationProvider, IBlockTank
eConfig, hasGui, isInventoryBlock, pass, random, renderer, sideIconsblockConstructorCalled, 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 |
|---|
ConfigurableBlockContainerGuiTankInfo(ExtendedConfig eConfig,
net.minecraft.block.material.Material material,
java.lang.Class<? extends TankInventoryTileEntity> tileEntity)
Make a new block instance.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getComparatorInputOverride(net.minecraft.world.World world,
int x,
int y,
int z,
int side) |
java.lang.String |
getInfo(net.minecraft.item.ItemStack itemStack)
Get info for a given itemStack.
|
int |
getTankCapacity(net.minecraft.item.ItemStack itemStack)
Get the maximal tank capacity.
|
boolean |
hasComparatorInputOverride() |
boolean |
isActivatable() |
boolean |
isActivated(net.minecraft.item.ItemStack itemStack,
net.minecraft.world.World world,
net.minecraft.entity.Entity entity)
If the given item is activated.
|
boolean |
onBlockActivated(net.minecraft.world.World world,
int x,
int y,
int z,
net.minecraft.entity.player.EntityPlayer player,
int side,
float motionX,
float motionY,
float motionZ) |
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.
|
void |
setTankCapacity(net.minecraft.item.ItemStack itemStack,
int capacity)
Set the maximal tank capacity.
|
void |
setTankCapacity(net.minecraft.nbt.NBTTagCompound tag,
int capacity)
Set the maximal tank capacity.
|
net.minecraft.item.ItemStack |
toggleActivation(net.minecraft.item.ItemStack itemStack,
net.minecraft.world.World world,
net.minecraft.entity.player.EntityPlayer player)
Toggle the activation of the item.
|
getContainer, getGUI, getGuiID, onPostBlockDestroyed, renderAsNormalBlock, setContainer, setGUI, tryCloseClientGuibreakBlock, createNewTileEntity, getConfig, getDrops, getGuiTexture, getGuiTexture, getIcon, getIcon, getIcon, getPickBlock, getRenderBlocks, getRenderPasses, getRenderType, getTextureName, getTileEntity, hasGui, isKeepNBTOnDrop, isOpaqueCube, isRotatable, onBlockDestroyedByExplosion, onBlockPlacedBy, onPreBlockDestroyed, registerBlockIcons, rotateBlock, saveNBTToDroppedItem, setInventoryBlock, setRenderBlocks, setRenderPass, setRotatable, shouldRender, updateTileEntity, writeAdditionalInfoaddCollisionBoxesToList, 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, 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, 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, onBlockClicked, onBlockDestroyedByPlayer, onBlockExploded, onBlockHarvested, onBlockPlaced, onBlockPreDestroy, onEntityCollidedWithBlock, onEntityWalking, onFallenUpon, onNeighborBlockChange, onNeighborChange, onPlantGrow, onPostBlockPlaced, quantityDropped, quantityDropped, quantityDroppedWithBonus, randomDisplayTick, recolourBlock, registerBlocks, removedByPlayer, removedByPlayer, setBedOccupied, setBlockBounds, setBlockBoundsBasedOnState, setBlockBoundsForItemRender, setBlockName, setBlockTextureName, setBlockUnbreakable, setCreativeTab, setHardness, setHarvestLevel, setHarvestLevel, setLightLevel, setLightOpacity, setResistance, setStepSound, setTickRandomly, shouldCheckWeakPower, shouldSideBeRendered, tickRate, updateTick, velocityToAddToEntityclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMaxCapacity, getTankNBTNamegetGuiTexture, getGuiTexturepublic ConfigurableBlockContainerGuiTankInfo(ExtendedConfig eConfig, net.minecraft.block.material.Material material, java.lang.Class<? extends TankInventoryTileEntity> tileEntity)
eConfig - Config for this block.material - Material of this block.tileEntity - The class of the tile entity this block holds.public boolean hasComparatorInputOverride()
hasComparatorInputOverride in class net.minecraft.block.Blockpublic int getComparatorInputOverride(net.minecraft.world.World world,
int x,
int y,
int z,
int side)
getComparatorInputOverride in class net.minecraft.block.Blockpublic boolean onBlockActivated(net.minecraft.world.World world,
int x,
int y,
int z,
net.minecraft.entity.player.EntityPlayer player,
int side,
float motionX,
float motionY,
float motionZ)
onBlockActivated in class ConfigurableBlockContainerGuipublic 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 void setTankCapacity(net.minecraft.item.ItemStack itemStack,
int capacity)
IBlockTanksetTankCapacity in interface IBlockTankitemStack - The item stack.capacity - The maximal tank capacity in mB.public void setTankCapacity(net.minecraft.nbt.NBTTagCompound tag,
int capacity)
IBlockTanksetTankCapacity in interface IBlockTanktag - The tag of an item stack.capacity - The maximal tank capacity in mB.public int getTankCapacity(net.minecraft.item.ItemStack itemStack)
IBlockTankgetTankCapacity in interface IBlockTankitemStack - The item stack.public boolean isActivatable()
isActivatable in interface IBlockTankpublic net.minecraft.item.ItemStack toggleActivation(net.minecraft.item.ItemStack itemStack,
net.minecraft.world.World world,
net.minecraft.entity.player.EntityPlayer player)
IBlockTanktoggleActivation in interface IBlockTankitemStack - The item.world - The world.player - The player holding the item.public boolean isActivated(net.minecraft.item.ItemStack itemStack,
net.minecraft.world.World world,
net.minecraft.entity.Entity entity)
IBlockTankisActivated in interface IBlockTankitemStack - The item.world - The world.entity - The entity holding the item.