Package com.minecolonies.api.research
Interface IResearchCost
- All Known Implementing Classes:
ListItemCost,SimpleItemCost,TagItemCost
public interface IResearchCost
Cost item for researches.
-
Method Summary
Modifier and TypeMethodDescriptionintgetCount()Get the count for this cost.List<net.minecraft.world.item.Item>getItems()Get the list of items for this cost.default net.minecraft.network.chat.ComponentGet the translated text for this research cost.getType()The type for this cost.net.minecraft.nbt.CompoundTagWrite the research cost to nbt data.
-
Method Details
-
getType
ModResearchCosts.ResearchCostEntry 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.
-