java.lang.Object
net.minecraft.world.item.Item
vazkii.botania.common.item.equipment.bauble.BaubleItem
All Implemented Interfaces:
net.minecraft.world.flag.FeatureElement, net.minecraft.world.level.ItemLike, CosmeticAttachable, PhantomInkable
Direct Known Subclasses:
BandOfAuraItem, BandOfManaItem, BenevolentGoddessCharmItem, CharmOfTheDivaItem, CirrusAmuletItem, CloakOfVirtueItem, CosmeticBaubleItem, CrimsonPendantItem, FlugelTiaraItem, GreatFairyRingItem, InvisibilityCloakItem, ManaseerMonocleItem, PyroclastPendantItem, RelicBaubleItem, RingOfChordataItem, RingOfCorrectionItem, RingOfDexterousMotionItem, RingOfFarReachItem, RingOfMagnetizationItem, RingOfTheMantleItem, SnowflakePendantItem, SojournersSashItem, SpectatorItem, TaintedBloodPendantItem, TectonicGirdleItem, ThirdEyeItem, TinyPlanetItem

public abstract class BaubleItem extends net.minecraft.world.item.Item implements CosmeticAttachable, PhantomInkable
  • Nested Class Summary

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

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

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

    ABSOLUTE_MAX_STACK_SIZE, BASE_ATTACK_DAMAGE_ID, BASE_ATTACK_SPEED_ID, BY_BLOCK, DEFAULT_MAX_STACK_SIZE, MAX_BAR_WIDTH

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

    FILTERED_REGISTRIES
  • Constructor Summary

    Constructors
    Constructor
    Description
    BaubleItem(net.minecraft.world.item.Item.Properties props)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    appendHoverText(net.minecraft.world.item.ItemStack stack, net.minecraft.world.item.Item.TooltipContext context, List<net.minecraft.network.chat.Component> tooltip, net.minecraft.world.item.TooltipFlag flags)
     
    boolean
    canEquip(net.minecraft.world.item.ItemStack stack, net.minecraft.world.entity.LivingEntity entity)
     
    static UUID
    getBaubleUUID(net.minecraft.world.item.ItemStack stack)
     
    net.minecraft.world.item.ItemStack
    getCosmeticItem(net.minecraft.world.item.ItemStack stack)
    Gets the cosmetic item stored in the stack passed in.
    com.google.common.collect.Multimap<net.minecraft.core.Holder<net.minecraft.world.entity.ai.attributes.Attribute>,net.minecraft.world.entity.ai.attributes.AttributeModifier>
    getEquippedAttributeModifiers(net.minecraft.world.item.ItemStack stack)
     
    boolean
    hasPhantomInk(net.minecraft.world.item.ItemStack stack)
     
    boolean
    hasRender(net.minecraft.world.item.ItemStack stack, net.minecraft.world.entity.LivingEntity living)
     
    void
    onEquipped(net.minecraft.world.item.ItemStack stack, net.minecraft.world.entity.LivingEntity entity)
     
    void
    onUnequipped(net.minecraft.world.item.ItemStack stack, net.minecraft.world.entity.LivingEntity entity)
     
    void
    onWornTick(net.minecraft.world.item.ItemStack stack, net.minecraft.world.entity.LivingEntity entity)
     
    void
    setCosmeticItem(net.minecraft.world.item.ItemStack stack, net.minecraft.world.item.ItemStack cosmetic)
    Sets the stack's cosmetic item to the one passed in.
    void
    setPhantomInk(net.minecraft.world.item.ItemStack stack, boolean ink)
     

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

    asItem, builtInRegistryHolder, byBlock, byId, canAttackBlock, canFitInsideContainerItems, components, finishUsingItem, getAttackDamageBonus, getBarColor, getBarWidth, getBreakingSound, getCraftingRemainingItem, getDefaultAttributeModifiers, getDefaultInstance, getDefaultMaxStackSize, getDescription, getDescriptionId, getDescriptionId, getDestroySpeed, getDrinkingSound, getEatingSound, getEnchantmentValue, getId, getName, getOrCreateDescriptionId, getPlayerPOVHitResult, getTooltipImage, getUseAnimation, getUseDuration, hasCraftingRemainingItem, hurtEnemy, interactLivingEntity, inventoryTick, isBarVisible, isComplex, isCorrectToolForDrops, isEnchantable, isFoil, isValidRepairItem, mineBlock, onCraftedBy, onCraftedPostProcess, onDestroyed, onUseTick, overrideOtherStackedOnMe, overrideStackedOnOther, postHurtEnemy, releaseUsing, requiredFeatures, toString, use, useOn, useOnRelease, verifyComponentsAfterLoad

    Methods inherited from class java.lang.Object

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

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

    isEnabled
  • Constructor Details

    • BaubleItem

      public BaubleItem(net.minecraft.world.item.Item.Properties props)
  • Method Details

    • appendHoverText

      public void appendHoverText(net.minecraft.world.item.ItemStack stack, net.minecraft.world.item.Item.TooltipContext context, List<net.minecraft.network.chat.Component> tooltip, net.minecraft.world.item.TooltipFlag flags)
      Overrides:
      appendHoverText in class net.minecraft.world.item.Item
    • getCosmeticItem

      public net.minecraft.world.item.ItemStack getCosmeticItem(net.minecraft.world.item.ItemStack stack)
      Description copied from interface: CosmeticAttachable
      Gets the cosmetic item stored in the stack passed in.
      Specified by:
      getCosmeticItem in interface CosmeticAttachable
    • setCosmeticItem

      public void setCosmeticItem(net.minecraft.world.item.ItemStack stack, net.minecraft.world.item.ItemStack cosmetic)
      Description copied from interface: CosmeticAttachable
      Sets the stack's cosmetic item to the one passed in.
      Specified by:
      setCosmeticItem in interface CosmeticAttachable
    • getBaubleUUID

      public static UUID getBaubleUUID(net.minecraft.world.item.ItemStack stack)
    • hasPhantomInk

      public boolean hasPhantomInk(net.minecraft.world.item.ItemStack stack)
      Specified by:
      hasPhantomInk in interface PhantomInkable
    • setPhantomInk

      public void setPhantomInk(net.minecraft.world.item.ItemStack stack, boolean ink)
      Specified by:
      setPhantomInk in interface PhantomInkable
    • onWornTick

      public void onWornTick(net.minecraft.world.item.ItemStack stack, net.minecraft.world.entity.LivingEntity entity)
    • onEquipped

      public void onEquipped(net.minecraft.world.item.ItemStack stack, net.minecraft.world.entity.LivingEntity entity)
    • onUnequipped

      public void onUnequipped(net.minecraft.world.item.ItemStack stack, net.minecraft.world.entity.LivingEntity entity)
    • canEquip

      public boolean canEquip(net.minecraft.world.item.ItemStack stack, net.minecraft.world.entity.LivingEntity entity)
    • getEquippedAttributeModifiers

      public com.google.common.collect.Multimap<net.minecraft.core.Holder<net.minecraft.world.entity.ai.attributes.Attribute>,net.minecraft.world.entity.ai.attributes.AttributeModifier> getEquippedAttributeModifiers(net.minecraft.world.item.ItemStack stack)
    • hasRender

      public boolean hasRender(net.minecraft.world.item.ItemStack stack, net.minecraft.world.entity.LivingEntity living)