public class DarkTank extends ConfigurableBlockContainer implements IInformationProvider, IBlockTank
| Modifier and Type | Field and Description |
|---|---|
static int |
META_DRAINING
Meta data for draining.
|
protected net.minecraft.util.IIcon |
sideIcon |
protected net.minecraft.util.IIcon |
sideIconActive |
protected net.minecraft.util.IIcon |
topIcon |
protected net.minecraft.util.IIcon |
topIconActive |
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| Modifier and Type | Method and Description |
|---|---|
void |
addCollisionBoxesToList(net.minecraft.world.World world,
int x,
int y,
int z,
net.minecraft.util.AxisAlignedBB area,
java.util.List list,
net.minecraft.entity.Entity entity) |
int |
damageDropped(int meta) |
int |
getComparatorInputOverride(net.minecraft.world.World world,
int x,
int y,
int z,
int side) |
net.minecraft.util.IIcon |
getIcon(int side,
int meta) |
java.lang.String |
getInfo(net.minecraft.item.ItemStack itemStack)
Get info for a given itemStack.
|
static DarkTank |
getInstance()
Get the unique instance.
|
int |
getLightValue(net.minecraft.world.IBlockAccess world,
int x,
int y,
int z) |
int |
getMaxCapacity()
Get the maximum capacity possible for this item/block type.
|
int |
getRenderBlockPass() |
int |
getRenderType() |
void |
getSubBlocks(net.minecraft.item.Item item,
net.minecraft.creativetab.CreativeTabs creativeTabs,
java.util.List list) |
int |
getTankCapacity(net.minecraft.item.ItemStack itemStack)
Get the maximal tank capacity.
|
java.lang.String |
getTankNBTName()
Get the NBT name for the inner tank.
|
boolean |
hasComparatorInputOverride() |
static void |
initInstance(ExtendedConfig<BlockConfig> eConfig)
Initialise the configurable.
|
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 |
isOpaqueCube() |
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 |
registerBlockIcons(net.minecraft.client.renderer.texture.IIconRegister iconRegister) |
boolean |
renderAsNormalBlock() |
void |
setBlockBoundsBasedOnState(net.minecraft.world.IBlockAccess world,
int x,
int y,
int z) |
void |
setBlockBoundsForItemRender() |
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.
|
boolean |
shouldSideBeRendered(net.minecraft.world.IBlockAccess world,
int x,
int y,
int z,
int side) |
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.
|
void |
writeAdditionalInfo(net.minecraft.tileentity.TileEntity tile,
net.minecraft.nbt.NBTTagCompound tag)
Write additional info about the tile into the item.
|
breakBlock, createNewTileEntity, getConfig, getDrops, getGuiTexture, getGuiTexture, getIcon, getIcon, getPickBlock, getRenderBlocks, getRenderPasses, getTextureName, getTileEntity, hasGui, isKeepNBTOnDrop, isRotatable, onBlockDestroyedByExplosion, onBlockPlacedBy, onPostBlockDestroyed, onPreBlockDestroyed, rotateBlock, saveNBTToDroppedItem, setInventoryBlock, setRenderBlocks, setRenderPass, setRotatable, shouldRender, updateTileEntityaddDestroyEffects, 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, 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, getLocalizedName, getMapColor, getMaterial, getMixedBrightnessForBlock, getMobilityFlag, getPickBlock, getPlayerRelativeBlockHardness, getRenderColor, getSelectedBoundingBoxFromPool, 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, setBlockName, setBlockTextureName, setBlockUnbreakable, setCreativeTab, setHardness, setHarvestLevel, setHarvestLevel, setLightLevel, setLightOpacity, setResistance, setStepSound, setTickRandomly, shouldCheckWeakPower, tickRate, updateTick, velocityToAddToEntitypublic static final int META_DRAINING
protected net.minecraft.util.IIcon sideIcon
protected net.minecraft.util.IIcon topIcon
protected net.minecraft.util.IIcon sideIconActive
protected net.minecraft.util.IIcon topIconActive
public static void initInstance(ExtendedConfig<BlockConfig> eConfig)
eConfig - The config.public static DarkTank getInstance()
public void setBlockBoundsForItemRender()
setBlockBoundsForItemRender in class net.minecraft.block.Blockpublic void setBlockBoundsBasedOnState(net.minecraft.world.IBlockAccess world,
int x,
int y,
int z)
setBlockBoundsBasedOnState in class net.minecraft.block.Blockpublic void addCollisionBoxesToList(net.minecraft.world.World world,
int x,
int y,
int z,
net.minecraft.util.AxisAlignedBB area,
java.util.List list,
net.minecraft.entity.Entity entity)
addCollisionBoxesToList in class net.minecraft.block.Blockpublic 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 void registerBlockIcons(net.minecraft.client.renderer.texture.IIconRegister iconRegister)
registerBlockIcons in class ConfigurableBlockContainerpublic net.minecraft.util.IIcon getIcon(int side,
int meta)
getIcon in class ConfigurableBlockContainerpublic boolean isOpaqueCube()
isOpaqueCube in class ConfigurableBlockContainerpublic boolean renderAsNormalBlock()
renderAsNormalBlock in class net.minecraft.block.Blockpublic int getRenderBlockPass()
getRenderBlockPass in class net.minecraft.block.Blockpublic boolean shouldSideBeRendered(net.minecraft.world.IBlockAccess world,
int x,
int y,
int z,
int side)
shouldSideBeRendered in class net.minecraft.block.Blockpublic int getRenderType()
getRenderType in class ConfigurableBlockContainerpublic 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 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 java.lang.String getTankNBTName()
IBlockTankgetTankNBTName in interface IBlockTankpublic int getTankCapacity(net.minecraft.item.ItemStack itemStack)
IBlockTankgetTankCapacity in interface IBlockTankitemStack - The item stack.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 void writeAdditionalInfo(net.minecraft.tileentity.TileEntity tile,
net.minecraft.nbt.NBTTagCompound tag)
ConfigurableBlockContainerwriteAdditionalInfo in class ConfigurableBlockContainertile - The tile that is being broken.tag - The tag that will be added to the dropped item.public int getLightValue(net.minecraft.world.IBlockAccess world,
int x,
int y,
int z)
getLightValue in class net.minecraft.block.Blockpublic int getMaxCapacity()
IBlockTankIBlockTank.getTankCapacity(ItemStack)
if this capacity is variable.getMaxCapacity in interface IBlockTankpublic 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.public int damageDropped(int meta)
damageDropped in class net.minecraft.block.Blockpublic void getSubBlocks(net.minecraft.item.Item item,
net.minecraft.creativetab.CreativeTabs creativeTabs,
java.util.List list)
getSubBlocks in class net.minecraft.block.Block