public class EntangledChalice extends ConfigurableBlockContainer implements IInformationProvider, IBlockTank, IBlockRarityProvider
| Modifier and Type | Field and Description |
|---|---|
static int |
META_SUPPLY
Meta data for supplying.
|
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) |
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 EntangledChalice |
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.
|
net.minecraft.item.EnumRarity |
getRarity(net.minecraft.item.ItemStack itemStack) |
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.
|
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.
|
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, 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, getLocalizedName, getMapColor, getMaterial, getMixedBrightnessForBlock, getMobilityFlag, getPickBlock, getPlayerRelativeBlockHardness, getRenderBlockPass, getRenderColor, getSelectedBoundingBoxFromPool, 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, 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, shouldSideBeRendered, tickRate, updateTick, velocityToAddToEntitypublic static final int META_SUPPLY
public static void initInstance(ExtendedConfig<BlockConfig> eConfig)
eConfig - The config.public static EntangledChalice 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 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 int getRenderType()
getRenderType in class ConfigurableBlockContainerpublic boolean renderAsNormalBlock()
renderAsNormalBlock 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 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 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 getLightValue(net.minecraft.world.IBlockAccess world,
int x,
int y,
int z)
getLightValue 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.Blockpublic net.minecraft.item.EnumRarity getRarity(net.minecraft.item.ItemStack itemStack)
getRarity in interface IBlockRarityProvideritemStack - The itemstack with this block.