public class WeatherContainer
extends org.cyclops.cyclopscore.config.configurable.ConfigurableItem
| Modifier and Type | Class and Description |
|---|---|
static class |
WeatherContainer.WeatherContainerTypes
Enum containing the data for the different weather container types.
|
| Constructor and Description |
|---|
WeatherContainer(org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfig<org.cyclops.cyclopscore.config.extendedconfig.ItemConfig> 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) |
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) |
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 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.
|
createDynamicModel, getConfig, hasDynamicModel, onModelBakeEventcanHarvestBlock, canHarvestBlock, canItemEditBlocks, createEntity, doesSneakBypassUse, getArmorModel, getArmorTexture, getAttributeModifiers, getByNameOrId, getChestGenBase, getContainerItem, getContainerItem, getCreativeTab, getCreativeTabs, getDamage, getDigSpeed, getDurabilityForDisplay, getEntityLifespan, getFontRenderer, getHarvestLevel, getHasSubtypes, getIdFromItem, getIsRepairable, getItemAttributeModifiers, getItemById, getItemEnchantability, getItemEnchantability, getItemFromBlock, getItemStackDisplayName, getItemStackLimit, getItemStackLimit, getMaxDamage, getMaxDamage, getMaxItemUseDuration, getMetadata, getMetadata, getModel, getMovingObjectPositionFromPlayer, getPotionEffect, getShareTag, getSmeltingExperience, getStrVsBlock, getToolClasses, getUnlocalizedName, getUnlocalizedName, getUnlocalizedNameInefficiently, hasContainerItem, hasContainerItem, hasCustomEntity, hasEffect, hitEntity, isBeaconPayment, isBookEnchantable, isDamageable, isDamaged, isFull3D, isItemTool, isMap, isPotionIngredient, isRepairable, isValidArmor, itemInteractionForEntity, onArmorTick, onBlockDestroyed, onBlockStartBreak, onCreated, onDroppedByPlayer, onEntityItemUpdate, onEntitySwing, onItemUse, onItemUseFinish, onItemUseFirst, onLeftClickEntity, onPlayerStoppedUsing, onUpdate, onUsingTick, registerItemBlock, registerItems, renderHelmetOverlay, setContainerItem, setCreativeTab, setDamage, setFull3D, setHarvestLevel, setHasSubtypes, setMaxDamage, setMaxStackSize, setNoRepair, setPotionEffect, setUnlocalizedName, shouldCauseReequipAnimation, shouldRotateAroundWhenRendering, showDurabilityBar, updateItemStackNBTpublic WeatherContainer(org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfig<org.cyclops.cyclopscore.config.extendedconfig.ItemConfig> eConfig)
public static WeatherContainer getInstance()
public net.minecraft.item.EnumAction getItemUseAction(net.minecraft.item.ItemStack itemStack)
getItemUseAction 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 org.cyclops.cyclopscore.config.configurable.ConfigurableItempublic 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