Package dev.jaxydog.astral.utility
Interface CurrencyHelper.ItemRepresentable
- All Known Implementing Classes:
CurrencyHelper.Reward,CurrencyHelper.Skeleton,CurrencyHelper.Unit
- Enclosing interface:
CurrencyHelper
public static sealed interface CurrencyHelper.ItemRepresentable
permits CurrencyHelper.Unit, CurrencyHelper.Reward, CurrencyHelper.Skeleton
A type that has an associated item representation.
- Since:
- 2.0.0
-
Method Summary
-
Method Details
-
getItemId
net.minecraft.util.Identifier getItemId()Returns the associated item identifier, orminecraft:airif the referenced identifier is invalid.- Returns:
- The associated item identifier, or
minecraft:airif the referenced identifier is invalid. - Since:
- 2.0.0
-
getItem
default net.minecraft.item.Item getItem()Returns the associated item, orItems.AIRif the referenced item is invalid.- Returns:
- The associated item, or
Items.AIRif the referenced item is invalid. - Since:
- 2.0.0
-