Interface ItemAttribute

All Known Implementing Classes:
AstralSorceryAmuletAttribute, AstralSorceryAttunementAttribute, AstralSorceryCrystalAttribute, AstralSorceryPerkGemAttribute, BookAuthorAttribute, BookCopyAttribute, ColorAttribute, EnchantAttribute, FluidContentsAttribute, ItemAttribute.AddedBy, ItemAttribute.InItemGroup, ItemAttribute.InTag, ItemAttribute.StandardTraits, ItemNameAttribute, ShulkerFillLevelAttribute

public interface ItemAttribute
  • Field Details

  • Method Details

    • register

      static ItemAttribute register(ItemAttribute attributeType)
    • appliesTo

      default boolean appliesTo(net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.Level world)
    • appliesTo

      boolean appliesTo(net.minecraft.world.item.ItemStack stack)
    • listAttributesOf

      default List<ItemAttribute> listAttributesOf(net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.Level world)
    • listAttributesOf

      List<ItemAttribute> listAttributesOf(net.minecraft.world.item.ItemStack stack)
    • getTranslationKey

      String getTranslationKey()
    • writeNBT

      void writeNBT(net.minecraft.nbt.CompoundTag nbt)
    • readNBT

      ItemAttribute readNBT(net.minecraft.nbt.CompoundTag nbt)
    • serializeNBT

      default void serializeNBT(net.minecraft.nbt.CompoundTag nbt)
    • fromNBT

      static ItemAttribute fromNBT(net.minecraft.nbt.CompoundTag nbt)
    • getTranslationParameters

      default Object[] getTranslationParameters()
    • canRead

      default boolean canRead(net.minecraft.nbt.CompoundTag nbt)
    • getNBTKey

      default String getNBTKey()
    • format

      default net.minecraft.network.chat.TranslatableComponent format(boolean inverted)