public class WeatherContainer extends ConfigurableItem
| Modifier and Type | Class and Description |
|---|---|
static class |
WeatherContainer.WeatherContainerTypes
Enum containing the data for the different weather container types.
|
eConfig| Modifier and Type | Method and Description |
|---|---|
void |
addInformation(net.minecraft.item.ItemStack itemStack,
net.minecraft.entity.player.EntityPlayer entityPlayer,
java.util.List list,
boolean par4) |
static net.minecraft.item.ItemStack |
createItemStack(WeatherContainer.WeatherContainerTypes type,
int amount)
Create a stack of a certain type of weather containers.
|
int |
getColorFromDamage(int damage)
Get the overlay color from a damage value.
|
int |
getColorFromItemStack(net.minecraft.item.ItemStack itemStack,
int renderPass) |
net.minecraft.util.IIcon |
getIconFromDamageForRenderPass(int meta,
int renderpass) |
static WeatherContainer |
getInstance()
Get the unique instance.
|
net.minecraft.item.EnumAction |
getItemUseAction(net.minecraft.item.ItemStack itemStack) |
net.minecraft.item.EnumRarity |
getRarity(net.minecraft.item.ItemStack itemStack) |
int |
getRenderPasses(int metadata) |
void |
getSubItems(net.minecraft.item.Item item,
net.minecraft.creativetab.CreativeTabs creativeTabs,
java.util.List list) |
static WeatherContainer.WeatherContainerTypes |
getWeatherContainerType(int damage)
Returns the weather container type for a weather container with the given
item damage
|
static WeatherContainer.WeatherContainerTypes |
getWeatherContainerType(net.minecraft.item.ItemStack stack)
Returns the weather container type for the weather container in the given
ItemStack
|
static void |
initInstance(ExtendedConfig<ItemConfig> eConfig)
Initialise the configurable.
|
static boolean |
isEmpty(int itemDamage)
Checks wether or not a WeatherContainer is empty (it does not contain any weather)
given its item damage
|
void |
onFill(net.minecraft.world.World world,
net.minecraft.item.ItemStack itemStack)
When the actual filling of the container should be called.
|
net.minecraft.item.ItemStack |
onItemRightClick(net.minecraft.item.ItemStack itemStack,
net.minecraft.world.World world,
net.minecraft.entity.player.EntityPlayer player) |
void |
onUse(net.minecraft.world.World world,
net.minecraft.item.ItemStack itemStack)
When the actual usage of the container should be called.
|
void |
registerIcons(net.minecraft.client.renderer.texture.IIconRegister iconRegister) |
boolean |
requiresMultipleRenderPasses() |
getConfig, getIconStringcanHarvestBlock, canItemEditBlocks, createEntity, doesContainerItemLeaveCraftingGrid, doesSneakBypassUse, func_150893_a, func_150897_b, getArmorModel, getArmorTexture, getAttributeModifiers, getChestGenBase, getContainerItem, getContainerItem, getCreativeTab, getCreativeTabs, getDamage, getDigSpeed, getDisplayDamage, getDurabilityForDisplay, getEntityLifespan, getFontRenderer, getHarvestLevel, getHasSubtypes, getIcon, getIcon, getIconFromDamage, getIconIndex, getIdFromItem, getIsRepairable, getItemAttributeModifiers, getItemById, getItemEnchantability, getItemEnchantability, getItemFromBlock, getItemStackDisplayName, getItemStackLimit, getItemStackLimit, getMaxDamage, getMaxDamage, getMaxItemUseDuration, getMetadata, getMovingObjectPositionFromPlayer, getPotionEffect, getShareTag, getSmeltingExperience, getSpriteNumber, getToolClasses, getUnlocalizedName, getUnlocalizedName, getUnlocalizedNameInefficiently, hasContainerItem, hasContainerItem, hasCustomEntity, hasEffect, hasEffect, hitEntity, isBeaconPayment, isBookEnchantable, isDamageable, isDamaged, isFull3D, isItemTool, isMap, isPotionIngredient, isRepairable, isValidArmor, itemInteractionForEntity, onArmorTick, onBlockDestroyed, onBlockStartBreak, onCreated, onDroppedByPlayer, onEaten, onEntityItemUpdate, onEntitySwing, onItemUse, onItemUseFirst, onLeftClickEntity, onPlayerStoppedUsing, onUpdate, onUsingTick, registerItems, renderHelmetOverlay, setContainerItem, setCreativeTab, setDamage, setFull3D, setHarvestLevel, setHasSubtypes, setMaxDamage, setMaxStackSize, setNoRepair, setPotionEffect, setTextureName, setUnlocalizedName, shouldRotateAroundWhenRendering, showDurabilityBarpublic static void initInstance(ExtendedConfig<ItemConfig> eConfig)
eConfig - The config.public static WeatherContainer getInstance()
public net.minecraft.item.EnumAction getItemUseAction(net.minecraft.item.ItemStack itemStack)
getItemUseAction in class net.minecraft.item.Itempublic boolean requiresMultipleRenderPasses()
requiresMultipleRenderPasses in class net.minecraft.item.Itempublic int getRenderPasses(int metadata)
getRenderPasses in class net.minecraft.item.Itempublic int getColorFromDamage(int damage)
damage - The damage value.public int getColorFromItemStack(net.minecraft.item.ItemStack itemStack,
int renderPass)
getColorFromItemStack in class net.minecraft.item.Itempublic net.minecraft.item.ItemStack onItemRightClick(net.minecraft.item.ItemStack itemStack,
net.minecraft.world.World world,
net.minecraft.entity.player.EntityPlayer player)
onItemRightClick in class net.minecraft.item.Itempublic void onUse(net.minecraft.world.World world,
net.minecraft.item.ItemStack itemStack)
world - The world.itemStack - The weather container that was thrown.public void onFill(net.minecraft.world.World world,
net.minecraft.item.ItemStack itemStack)
world - The world.itemStack - The weather container that was filled.public void addInformation(net.minecraft.item.ItemStack itemStack,
net.minecraft.entity.player.EntityPlayer entityPlayer,
java.util.List list,
boolean par4)
addInformation in class ConfigurableItempublic void registerIcons(net.minecraft.client.renderer.texture.IIconRegister iconRegister)
registerIcons in class ConfigurableItempublic net.minecraft.util.IIcon getIconFromDamageForRenderPass(int meta,
int renderpass)
getIconFromDamageForRenderPass in class net.minecraft.item.Itempublic void getSubItems(net.minecraft.item.Item item,
net.minecraft.creativetab.CreativeTabs creativeTabs,
java.util.List list)
getSubItems in class net.minecraft.item.Itempublic static boolean isEmpty(int itemDamage)
itemDamage - item damage of the WeatherContainerpublic static WeatherContainer.WeatherContainerTypes getWeatherContainerType(int damage)
damage - Item damage of a weather containerpublic static WeatherContainer.WeatherContainerTypes getWeatherContainerType(net.minecraft.item.ItemStack stack)
stack - ItemStack which holds a WeatherContainerpublic static net.minecraft.item.ItemStack createItemStack(WeatherContainer.WeatherContainerTypes type, int amount)
type - The type of weather container to make.amount - The amount per stack.public net.minecraft.item.EnumRarity getRarity(net.minecraft.item.ItemStack itemStack)
getRarity in class net.minecraft.item.Item