public class ItemPromise
extends net.minecraft.item.Item
| Modifier and Type | Class and Description |
|---|---|
static class |
ItemPromise.ItemColor |
| Modifier and Type | Field and Description |
|---|---|
static java.util.Map<Upgrades.Upgrade,java.lang.Integer> |
MAIN_COLORS |
static java.util.Map<Upgrades.Upgrade,java.lang.Integer> |
SECONDARY_COLORS |
static Upgrades.Upgrade[] |
UPGRADES |
| Constructor and Description |
|---|
ItemPromise(net.minecraft.item.Item.Properties properties,
Upgrades.Upgrade upgrade) |
| 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) |
static net.minecraft.item.Item |
getItem(int tier) |
static net.minecraft.item.Item |
getItem(Upgrades.Upgrade upgrade) |
int |
getItemStackLimit(net.minecraft.item.ItemStack itemStack) |
net.minecraft.item.Rarity |
getRarity(net.minecraft.item.ItemStack itemStack) |
Upgrades.Upgrade |
getUpgrade(net.minecraft.item.ItemStack itemStack)
Get the upgrade for given damage.
|
boolean |
isTierUpgrade(net.minecraft.item.ItemStack itemStack) |
asItem, canHarvestBlock, canPlayerBreakBlockWhileHolding, fillItemGroup, getAttributeModifiers, getContainerItem, getDefaultInstance, getDefaultTranslationKey, getDestroySpeed, getDisplayName, getDrinkSound, getEatSound, getFood, getGroup, getHarvestLevel, getIdFromItem, getIsRepairable, getItemById, getItemEnchantability, getItemFromBlock, getItemStackTileEntityRenderer, getMaxDamage, getMaxStackSize, getName, getTags, getToolTypes, getTranslationKey, getTranslationKey, getUseAction, getUseDuration, hasContainerItem, hasEffect, hitEntity, inventoryTick, isComplex, isCrossbow, isDamageable, isDamageable, isEnchantable, isFood, isImmuneToFire, isIn, isInGroup, isRepairable, itemInteractionForEntity, onBlockDestroyed, onCreated, onItemRightClick, 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, getBurnTime, getContainerItem, getCreativeTabs, getCreatorModId, getDamage, getDurabilityForDisplay, getEntityLifespan, getEquipmentSlot, getFontRenderer, getHighlightTip, getItem, getItemEnchantability, 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 static final Upgrades.Upgrade[] UPGRADES
public static final java.util.Map<Upgrades.Upgrade,java.lang.Integer> MAIN_COLORS
public static final java.util.Map<Upgrades.Upgrade,java.lang.Integer> SECONDARY_COLORS
public ItemPromise(net.minecraft.item.Item.Properties properties,
Upgrades.Upgrade upgrade)
public int getItemStackLimit(net.minecraft.item.ItemStack itemStack)
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 Upgrades.Upgrade getUpgrade(net.minecraft.item.ItemStack itemStack)
itemStack - The item.public static net.minecraft.item.Item getItem(int tier)
public static net.minecraft.item.Item getItem(Upgrades.Upgrade upgrade)
public boolean isTierUpgrade(net.minecraft.item.ItemStack itemStack)
itemStack - The item.public net.minecraft.item.Rarity getRarity(net.minecraft.item.ItemStack itemStack)
getRarity in class net.minecraft.item.Item