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

    Modifier and Type
    Method
    Description
    default net.minecraft.item.Item
    Returns the associated item, or Items.AIR if the referenced item is invalid.
    net.minecraft.util.Identifier
    Returns the associated item identifier, or minecraft:air if the referenced identifier is invalid.
  • Method Details

    • getItemId

      net.minecraft.util.Identifier getItemId()
      Returns the associated item identifier, or minecraft:air if the referenced identifier is invalid.
      Returns:
      The associated item identifier, or minecraft:air if the referenced identifier is invalid.
      Since:
      2.0.0
    • getItem

      default net.minecraft.item.Item getItem()
      Returns the associated item, or Items.AIR if the referenced item is invalid.
      Returns:
      The associated item, or Items.AIR if the referenced item is invalid.
      Since:
      2.0.0