Interface IResearchCost

All Known Implementing Classes:
ListItemCost, SimpleItemCost, TagItemCost

public interface IResearchCost
Cost item for researches.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Get the count for this cost.
    List<net.minecraft.world.item.Item>
    Get the list of items for this cost.
    default net.minecraft.network.chat.Component
    Get the translated text for this research cost.
    The type for this cost.
    net.minecraft.nbt.CompoundTag
    Write the research cost to nbt data.
  • Method Details

    • getType

      The type for this cost.
      Returns:
      the type.
    • getCount

      int getCount()
      Get the count for this cost.
      Returns:
      the count.
    • getTranslatedName

      default net.minecraft.network.chat.Component getTranslatedName()
      Get the translated text for this research cost.
      Returns:
      the translated text.
    • getItems

      List<net.minecraft.world.item.Item> getItems()
      Get the list of items for this cost.
      Returns:
      the list of items.
    • writeToNBT

      net.minecraft.nbt.CompoundTag writeToNBT()
      Write the research cost to nbt data.
      Returns:
      the nbt data.