Class ItemEnhancement

java.lang.Object
net.minecraft.world.item.Item
org.cyclops.integrateddynamics.item.ItemEnhancement
All Implemented Interfaces:
net.minecraft.world.flag.FeatureElement, net.minecraft.world.level.ItemLike, net.neoforged.neoforge.common.extensions.IItemExtension

public class ItemEnhancement extends net.minecraft.world.item.Item
An enhancement item.
  • Nested Class Summary Link icon

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
     

    Nested classes/interfaces inherited from class net.minecraft.world.item.Item Link icon

    net.minecraft.world.item.Item.Properties, net.minecraft.world.item.Item.TooltipContext
  • Field Summary Link icon

    Fields inherited from class net.minecraft.world.item.Item Link icon

    ABSOLUTE_MAX_STACK_SIZE, BASE_ATTACK_DAMAGE_ID, BASE_ATTACK_SPEED_ID, BY_BLOCK, canCombineRepair, CODEC, DEFAULT_MAX_STACK_SIZE, descriptionId, MAX_BAR_WIDTH

    Fields inherited from interface net.minecraft.world.flag.FeatureElement Link icon

    FILTERED_REGISTRIES
  • Constructor Summary Link icon

    Constructors
    Constructor
    Description
    ItemEnhancement(ItemEnhancement.Type type, net.minecraft.world.item.Item.Properties properties)
     
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    void
    appendHoverText(net.minecraft.world.item.ItemStack itemStack, net.minecraft.world.item.Item.TooltipContext context, List<net.minecraft.network.chat.Component> list, net.minecraft.world.item.TooltipFlag flag)
     
    <P extends IPartType<P, S>, S extends IPartState<P>>
    net.minecraft.world.InteractionResult
    applyEnhancement(IPartType<P,S> partType, IPartState<P> partState, net.minecraft.world.item.ItemStack itemStack, net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand)
     
    int
    getEnhancementValue(net.minecraft.world.item.ItemStack itemStack)
     
    void
    setEnhancementValue(net.minecraft.world.item.ItemStack itemStack, int value)
     

    Methods inherited from class net.minecraft.world.item.Item Link icon

    asItem, builtInRegistryHolder, byBlock, byId, canAttackBlock, canFitInsideContainerItems, components, finishUsingItem, getAttackDamageBonus, getBarColor, getBarWidth, getBreakingSound, getCraftingRemainder, getDamageSource, getDefaultInstance, getDefaultMaxStackSize, getDescriptionId, getDestroySpeed, getId, getName, getName, getPlayerPOVHitResult, getTooltipImage, getUseAnimation, getUseDuration, hurtEnemy, interactLivingEntity, inventoryTick, isBarVisible, isCombineRepairable, isCorrectToolForDrops, isFoil, mineBlock, modifyDefaultComponentsFrom, onCraftedBy, onCraftedPostProcess, onDestroyed, onUseTick, overrideOtherStackedOnMe, overrideStackedOnOther, postHurtEnemy, releaseUsing, requiredFeatures, shouldPrintOpWarning, toString, use, useOn, useOnRelease, verifyComponentsAfterLoad

    Methods inherited from class java.lang.Object Link icon

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface net.minecraft.world.flag.FeatureElement Link icon

    isEnabled

    Methods inherited from interface net.neoforged.neoforge.common.extensions.IItemExtension Link icon

    applyEnchantments, canBeHurtBy, canContinueUsing, canDisableShield, canEquip, canGrindstoneRepair, canPerformAction, canWalkOnPowderedSnow, createEntity, damageItem, doesSneakBypassUse, getAllEnchantments, getBurnTime, getCraftingRemainder, getCreatorModId, getDamage, getDefaultAttributeModifiers, getEnchantmentLevel, getEntityLifespan, getEquipmentSlot, getHighlightTip, getMaxDamage, getMaxStackSize, getSweepHitBox, getXpRepairRatio, hasCustomEntity, isBookEnchantable, isDamageable, isDamaged, isGazeDisguise, isNotReplaceableByPickAction, isPiglinCurrency, isPrimaryItemFor, makesPiglinsNeutral, onAnimalArmorTick, onDestroyed, onDroppedByPlayer, onEntityItemUpdate, onEntitySwing, onItemUseFirst, onLeftClickEntity, onStopUsing, setDamage, shouldCauseBlockBreakReset, shouldCauseReequipAnimation, supportsEnchantment
  • Constructor Details Link icon

    • ItemEnhancement Link icon

      public ItemEnhancement(ItemEnhancement.Type type, net.minecraft.world.item.Item.Properties properties)
  • Method Details Link icon

    • applyEnhancement Link icon

      public <P extends IPartType<P, S>, S extends IPartState<P>> net.minecraft.world.InteractionResult applyEnhancement(IPartType<P,S> partType, IPartState<P> partState, net.minecraft.world.item.ItemStack itemStack, net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand)
    • getEnhancementValue Link icon

      public int getEnhancementValue(net.minecraft.world.item.ItemStack itemStack)
    • setEnhancementValue Link icon

      public void setEnhancementValue(net.minecraft.world.item.ItemStack itemStack, int value)
    • appendHoverText Link icon

      public void appendHoverText(net.minecraft.world.item.ItemStack itemStack, net.minecraft.world.item.Item.TooltipContext context, List<net.minecraft.network.chat.Component> list, net.minecraft.world.item.TooltipFlag flag)
      Overrides:
      appendHoverText in class net.minecraft.world.item.Item