Package hiiragi283.lib.recipe.result
Class HTChancedItemResult
-
- All Implemented Interfaces:
-
hiiragi283.lib.resource.HTIdLike
@JvmRecord() public final class HTChancedItemResult extends Record implements HTIdLike
-
-
Field Summary
Fields Modifier and Type Field Description public final static Codec<HTChancedItemResult>CODECpublic final static StreamCodec<RegistryFriendlyByteBuf, HTChancedItemResult>STREAM_CODECprivate final HTItemResultbaseprivate final Fractionchanceprivate final Stringnamespaceprivate final Stringpath
-
Constructor Summary
Constructors Constructor Description HTChancedItemResult(HTItemResult base, Fraction chance)
-
Method Summary
Modifier and Type Method Description final HTItemResultgetBase()final FractiongetChance()StringgetNamespace()StringgetPath()final Either<ErrorText, ItemStack>create(Boolean preview)final ItemStackcreateOrEmpty()IdentifiergetId()保持しているIDを返します。 -
-
Constructor Detail
-
HTChancedItemResult
HTChancedItemResult(HTItemResult base, Fraction chance)
-
-
Method Detail
-
getBase
final HTItemResult getBase()
-
getChance
final Fraction getChance()
-
getNamespace
String getNamespace()
-
createOrEmpty
final ItemStack createOrEmpty()
-
getId
Identifier getId()
保持しているIDを返します。
-
-
-
-