public class ItemMachineUpgrade extends net.minecraft.item.Item implements IUpgradeItem
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
NBT_DIRECTION |
| Constructor and Description |
|---|
ItemMachineUpgrade(EnumUpgrade upgrade,
int tier) |
| Modifier and Type | Method and Description |
|---|---|
void |
appendHoverText(net.minecraft.item.ItemStack stack,
net.minecraft.world.World world,
java.util.List<net.minecraft.util.text.ITextComponent> infoList,
net.minecraft.client.util.ITooltipFlag par4) |
void |
fillItemCategory(net.minecraft.item.ItemGroup group,
net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> items) |
net.minecraft.item.Rarity |
getRarity(net.minecraft.item.ItemStack stack) |
int |
getTier() |
EnumUpgrade |
getUpgradeType() |
static ItemMachineUpgrade |
of(net.minecraft.item.ItemStack stack) |
net.minecraft.util.ActionResult<net.minecraft.item.ItemStack> |
use(net.minecraft.world.World worldIn,
net.minecraft.entity.player.PlayerEntity playerIn,
net.minecraft.util.Hand handIn) |
net.minecraft.util.ActionResultType |
useOn(net.minecraft.item.ItemUseContext context) |
allowdedIn, asItem, byBlock, byId, canAttackBlock, canBeDepleted, canBeHurtBy, finishUsingItem, getCraftingRemainingItem, getDefaultAttributeModifiers, getDefaultInstance, getDescription, getDescriptionId, getDescriptionId, getDestroySpeed, getDrinkingSound, getEatingSound, getEnchantmentValue, getFoodProperties, getHarvestLevel, getId, getItemCategory, getItemStackTileEntityRenderer, getMaxDamage, getMaxStackSize, getName, getOrCreateDescriptionId, getPlayerPOVHitResult, getTags, getToolTypes, getUseAnimation, getUseDuration, hasCraftingRemainingItem, hurtEnemy, interactLivingEntity, inventoryTick, is, isComplex, isCorrectToolForDrops, isEdible, isEnchantable, isFireResistant, isFoil, isRepairable, isValidRepairItem, mineBlock, onCraftedBy, onUseTick, releaseUsing, shouldOverrideMultiplayerNbt, toString, useOnRelease, verifyTagAfterLoadgetRegistryName, 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, 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 static final java.lang.String NBT_DIRECTION
public ItemMachineUpgrade(EnumUpgrade upgrade, int tier)
public EnumUpgrade getUpgradeType()
getUpgradeType in interface IUpgradeItempublic int getTier()
public void appendHoverText(net.minecraft.item.ItemStack stack,
net.minecraft.world.World world,
java.util.List<net.minecraft.util.text.ITextComponent> infoList,
net.minecraft.client.util.ITooltipFlag par4)
appendHoverText in class net.minecraft.item.Itempublic net.minecraft.util.ActionResultType useOn(net.minecraft.item.ItemUseContext context)
useOn in class net.minecraft.item.Itempublic net.minecraft.util.ActionResult<net.minecraft.item.ItemStack> use(net.minecraft.world.World worldIn,
net.minecraft.entity.player.PlayerEntity playerIn,
net.minecraft.util.Hand handIn)
use in class net.minecraft.item.Itempublic net.minecraft.item.Rarity getRarity(net.minecraft.item.ItemStack stack)
getRarity in class net.minecraft.item.Itempublic static ItemMachineUpgrade of(net.minecraft.item.ItemStack stack)
public void fillItemCategory(net.minecraft.item.ItemGroup group,
net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> items)
fillItemCategory in class net.minecraft.item.Item