public class WeatherContainer
extends org.cyclops.cyclopscore.config.configurable.ConfigurableItem
| Modifier and Type | Class and Description |
|---|---|
static class |
WeatherContainer.ItemColor |
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.world.World world,
java.util.List<java.lang.String> list,
net.minecraft.client.util.ITooltipFlag flag) |
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.
|
static WeatherContainer |
getInstance()
Get the unique instance.
|
net.minecraft.client.renderer.color.IItemColor |
getItemColorHandler() |
net.minecraft.item.EnumAction |
getItemUseAction(net.minecraft.item.ItemStack itemStack) |
net.minecraft.item.EnumRarity |
getRarity(net.minecraft.item.ItemStack itemStack) |
void |
getSubItems(net.minecraft.creativetab.CreativeTabs creativeTabs,
net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> 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.util.ActionResult<net.minecraft.item.ItemStack> |
onItemRightClick(net.minecraft.world.World world,
net.minecraft.entity.player.EntityPlayer player,
net.minecraft.util.EnumHand hand) |
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, onModelBakeEventaddPropertyOverride, canApplyAtEnchantingTable, canDestroyBlockInCreative, canDisableShield, canHarvestBlock, canHarvestBlock, canItemEditBlocks, createEntity, doesSneakBypassUse, getAnimationParameters, getArmorModel, getArmorTexture, getAttributeModifiers, getByNameOrId, getContainerItem, getContainerItem, getCreativeTab, getCreativeTabs, getCreatorModId, getDamage, getDefaultInstance, getDestroySpeed, getDurabilityForDisplay, getEntityLifespan, getEquipmentSlot, getFontRenderer, getHarvestLevel, getHasSubtypes, getHighlightTip, getHorseArmorTexture, getHorseArmorType, getIdFromItem, getIsRepairable, getItemAttributeModifiers, getItemBurnTime, getItemById, getItemEnchantability, getItemEnchantability, getItemFromBlock, getItemStackDisplayName, getItemStackLimit, getItemStackLimit, getMaxDamage, getMaxDamage, getMaxItemUseDuration, getMetadata, getMetadata, getNBTShareTag, getPropertyGetter, getRGBDurabilityForDisplay, getShareTag, getSmeltingExperience, getTileEntityItemStackRenderer, getToolClasses, getTranslationKey, getTranslationKey, getUnlocalizedNameInefficiently, hasContainerItem, hasContainerItem, hasCustomEntity, hasCustomProperties, hasEffect, hitEntity, initCapabilities, isBeaconPayment, isBookEnchantable, isDamageable, isDamaged, isEnchantable, isFull3D, isInCreativeTab, isMap, isRepairable, isShield, isValidArmor, itemInteractionForEntity, onArmorTick, onBlockDestroyed, onBlockStartBreak, onCreated, onDroppedByPlayer, onEntityItemUpdate, onEntitySwing, onHorseArmorTick, onItemUse, onItemUseFinish, onItemUseFirst, onLeftClickEntity, onPlayerStoppedUsing, onUpdate, onUsingTick, rayTrace, readNBTShareTag, registerItemBlock, registerItems, renderHelmetOverlay, setContainerItem, setCreativeTab, setDamage, setFull3D, setHarvestLevel, setHasSubtypes, setMaxDamage, setMaxStackSize, setNoRepair, setTileEntityItemStackRenderer, setTranslationKey, shouldCauseBlockBreakReset, 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 net.minecraft.util.ActionResult<net.minecraft.item.ItemStack> onItemRightClick(net.minecraft.world.World world,
net.minecraft.entity.player.EntityPlayer player,
net.minecraft.util.EnumHand hand)
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.world.World world,
java.util.List<java.lang.String> list,
net.minecraft.client.util.ITooltipFlag flag)
addInformation in class org.cyclops.cyclopscore.config.configurable.ConfigurableItempublic void getSubItems(net.minecraft.creativetab.CreativeTabs creativeTabs,
net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> 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@Nullable public net.minecraft.client.renderer.color.IItemColor getItemColorHandler()
getItemColorHandler in interface org.cyclops.cyclopscore.config.configurable.IConfigurableItemgetItemColorHandler in class org.cyclops.cyclopscore.config.configurable.ConfigurableItem