Class HTItemResult
-
- All Implemented Interfaces:
-
hiiragi283.core.api.recipe.result.HTRecipeResult,hiiragi283.core.api.resource.HTIdLike,hiiragi283.core.api.resource.SupplierWithId,java.util.function.Supplier
@JvmRecord() public final class HTItemResult extends Record implements HTRecipeResult<ItemStack>
-
-
Constructor Summary
Constructors Constructor Description HTItemResult(Ior<HTItemResourceType, HolderSet<Item>> content, Integer count, Fraction chance)
-
Method Summary
Modifier and Type Method Description final IntegergetCount()final FractiongetChance()StringgetNamespace()StringgetPath()final ItemStackgetOrEmpty()final ItemStackgetOrEmpty(Boolean preview)HTTextResult<ItemStack>get()final HTTextResult<ItemStack>get(Boolean preview)ResourceLocationgetId()保持しているIDを返します。 final static UnitcheckTagHolderSet(HolderSet<Item> holderSet)final static HTItemResultcreate(ItemLike item, Integer count, Fraction chance)final static HTItemResultcreate(ItemStack stack, Fraction chance)final static HTItemResultcreate(HolderSet<Item> holderSet, Integer count, Fraction chance)-
-
Constructor Detail
-
HTItemResult
HTItemResult(Ior<HTItemResourceType, HolderSet<Item>> content, Integer count, Fraction chance)
-
-
Method Detail
-
getChance
final Fraction getChance()
-
getNamespace
String getNamespace()
-
getOrEmpty
final ItemStack getOrEmpty()
-
getOrEmpty
final ItemStack getOrEmpty(Boolean preview)
-
get
HTTextResult<ItemStack> get()
-
get
final HTTextResult<ItemStack> get(Boolean preview)
-
getId
ResourceLocation getId()
保持しているIDを返します。
-
checkTagHolderSet
final static Unit checkTagHolderSet(HolderSet<Item> holderSet)
-
create
final static HTItemResult create(ItemLike item, Integer count, Fraction chance)
-
create
final static HTItemResult create(ItemStack stack, Fraction chance)
-
create
final static HTItemResult create(HolderSet<Item> holderSet, Integer count, Fraction chance)
-
-
-
-