Class HTIngredientHolder.Single

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final Ingredient ingredient
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Ingredient getIngredient()
      final Ingredient orEmpty() 保持しているIngredientを返します。
      Unit plusAssign(Ingredient ingredient) 指定したingredientを追加します。
      • Methods inherited from class hiiragi283.core.api.data.holder.HTIngredientHolder

        addItem, addItems, addMaterialTag, addMaterialTags, addTag, addTags, addToolTags
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • HTIngredientHolder.Single

        HTIngredientHolder.Single()
    • Method Detail

      • orEmpty

         final Ingredient orEmpty()

        保持しているIngredientを返します。

        Returns:

        値が初期化されていない場合はIngredient.EMPTY