Interface CosmeticAttachable

All Known Implementing Classes:
BandOfAuraItem, BandOfManaItem, BaubleItem, BenevolentGoddessCharmItem, CharmOfTheDivaItem, CirrusAmuletItem, CloakOfBalanceItem, CloakOfSinItem, CloakOfVirtueItem, CosmeticBaubleItem, CrimsonPendantItem, FlugelTiaraItem, GlobetrottersSashItem, GreaterBandOfManaItem, GreatFairyRingItem, InvisibilityCloakItem, ManaseerMonocleItem, NimbusAmuletItem, PlanestridersSashItem, PyroclastPendantItem, RelicBaubleItem, RingOfChordataItem, RingOfCorrectionItem, RingOfDexterousMotionItem, RingOfFarReachItem, RingOfLokiItem, RingOfMagnetizationItem, RingOfOdinItem, RingOfTheMantleItem, RingOfThorItem, SnowflakePendantItem, SojournersSashItem, SpectatorItem, TaintedBloodPendantItem, TectonicGirdleItem, ThirdEyeItem, TinyPlanetItem

public interface CosmeticAttachable
An Item that implements this interface can have cosmetic items attached to it. The item does not have to be a bauble, but it is the render is automatically handled by botania internally. Recipes to add and remove the cosmetic items will be handled internally, but the cosmetic item has to be set as a container item.
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.world.item.ItemStack
    getCosmeticItem(net.minecraft.world.item.ItemStack stack)
    Gets the cosmetic item stored in the stack passed in.
    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.
  • Method Details

    • getCosmeticItem

      net.minecraft.world.item.ItemStack getCosmeticItem(net.minecraft.world.item.ItemStack stack)
      Gets the cosmetic item stored in the stack passed in.
    • setCosmeticItem

      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.