public class ItemWeatherContainer
extends net.minecraft.item.Item
| Modifier and Type | Class and Description |
|---|---|
static class |
ItemWeatherContainer.ItemColor |
static class |
ItemWeatherContainer.WeatherContainerType
Enum containing the data for the different weather container types.
|
| Constructor and Description |
|---|
ItemWeatherContainer(net.minecraft.item.Item.Properties properties) |
| Modifier and Type | Method and Description |
|---|---|
void |
addInformation(net.minecraft.item.ItemStack itemStack,
net.minecraft.world.World world,
java.util.List<net.minecraft.util.text.ITextComponent> list,
net.minecraft.client.util.ITooltipFlag flag) |
void |
fillItemGroup(net.minecraft.item.ItemGroup group,
net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> items) |
net.minecraft.item.Rarity |
getRarity(net.minecraft.item.ItemStack itemStack) |
net.minecraft.item.UseAction |
getUseAction(net.minecraft.item.ItemStack itemStack) |
static ItemWeatherContainer.WeatherContainerType |
getWeatherType(net.minecraft.item.ItemStack itemStack) |
void |
onFill(net.minecraft.world.server.ServerWorld 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.PlayerEntity player,
net.minecraft.util.Hand hand) |
void |
onUse(net.minecraft.world.server.ServerWorld world,
net.minecraft.item.ItemStack itemStack)
When the actual usage of the container should be called.
|
static void |
setWeatherType(net.minecraft.item.ItemStack itemStack,
ItemWeatherContainer.WeatherContainerType type) |
asItem, canHarvestBlock, canPlayerBreakBlockWhileHolding, getAttributeModifiers, getContainerItem, getDefaultInstance, getDefaultTranslationKey, getDestroySpeed, getDisplayName, getDrinkSound, getEatSound, getFood, getGroup, getHarvestLevel, getIdFromItem, getIsRepairable, getItemById, getItemEnchantability, getItemFromBlock, getItemStackTileEntityRenderer, getMaxDamage, getMaxStackSize, getName, getTags, getToolTypes, getTranslationKey, getTranslationKey, getUseDuration, hasContainerItem, hasEffect, hitEntity, inventoryTick, isComplex, isCrossbow, isDamageable, isDamageable, isEnchantable, isFood, isImmuneToFire, isIn, isInGroup, isRepairable, itemInteractionForEntity, onBlockDestroyed, onCreated, onItemUse, onItemUseFinish, onPlayerStoppedUsing, onUse, rayTrace, shouldSyncTag, toString, updateItemStackNBTgetRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcanApplyAtEnchantingTable, canContinueUsing, canDisableShield, canElytraFly, canEquip, canHarvestBlock, createEntity, damageItem, doesSneakBypassUse, elytraFlightTick, getArmorModel, getArmorTexture, getAttributeModifiers, getBurnTime, getContainerItem, getCreativeTabs, getCreatorModId, getDamage, getDurabilityForDisplay, getEntityLifespan, getEquipmentSlot, getFontRenderer, getHighlightTip, getItem, getItemEnchantability, getItemStackLimit, getMaxDamage, getRGBDurabilityForDisplay, getShareTag, getSmeltingExperience, getXpRepairRatio, hasContainerItem, hasCustomEntity, initCapabilities, isBookEnchantable, isDamageable, isDamaged, isEnderMask, isPiglinCurrency, isShield, makesPiglinsNeutral, onArmorTick, onBlockStartBreak, onDroppedByPlayer, onEntityItemUpdate, onEntitySwing, onHorseArmorTick, onItemUseFirst, onLeftClickEntity, onUsingTick, readShareTag, renderHelmetOverlay, setDamage, shouldCauseBlockBreakReset, shouldCauseReequipAnimation, showDurabilityBarpublic ItemWeatherContainer(net.minecraft.item.Item.Properties properties)
public static ItemWeatherContainer.WeatherContainerType getWeatherType(net.minecraft.item.ItemStack itemStack)
public static void setWeatherType(net.minecraft.item.ItemStack itemStack,
ItemWeatherContainer.WeatherContainerType type)
public net.minecraft.item.UseAction getUseAction(net.minecraft.item.ItemStack itemStack)
getUseAction in class net.minecraft.item.Itempublic net.minecraft.util.ActionResult<net.minecraft.item.ItemStack> onItemRightClick(net.minecraft.world.World world,
net.minecraft.entity.player.PlayerEntity player,
net.minecraft.util.Hand hand)
onItemRightClick in class net.minecraft.item.Itempublic void onUse(net.minecraft.world.server.ServerWorld world,
net.minecraft.item.ItemStack itemStack)
world - The world.itemStack - The weather container that was thrown.public void onFill(net.minecraft.world.server.ServerWorld 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<net.minecraft.util.text.ITextComponent> list,
net.minecraft.client.util.ITooltipFlag flag)
addInformation in class net.minecraft.item.Itempublic void fillItemGroup(net.minecraft.item.ItemGroup group,
net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> items)
fillItemGroup in class net.minecraft.item.Itempublic net.minecraft.item.Rarity getRarity(net.minecraft.item.ItemStack itemStack)
getRarity in class net.minecraft.item.Item