Class HTItemResult.SimpleEntry
-
- All Implemented Interfaces:
-
hiiragi283.core.api.recipe.result.HTItemResult.Entry,hiiragi283.core.api.resource.HTIdLike,hiiragi283.core.api.resource.SupplierWithId,java.util.function.Supplier
@JvmRecord() public final class HTItemResult.SimpleEntry extends Record implements HTItemResult.Entry
-
-
Field Summary
Fields Modifier and Type Field Description public final static MapCodec<HTItemResult.SimpleEntry>CODECpublic final static StreamCodec<RegistryFriendlyByteBuf, HTItemResult.SimpleEntry>STREAM_CODECpublic final static HTItemResult.EntryType<HTItemResult.SimpleEntry>TYPEprivate final ItemStackstackprivate final Stringnamespaceprivate final Stringpath
-
Constructor Summary
Constructors Constructor Description HTItemResult.SimpleEntry(ItemStack stack)
-
Method Summary
Modifier and Type Method Description final ItemStackgetStack()StringgetNamespace()StringgetPath()HTItemResult.EntryType<?>type()HTTextResult<ItemStack>get()ResourceLocationgetId()保持しているIDを返します。 -
-
Method Detail
-
getStack
final ItemStack getStack()
-
getNamespace
String getNamespace()
-
type
HTItemResult.EntryType<?> type()
-
get
HTTextResult<ItemStack> get()
-
getId
ResourceLocation getId()
保持しているIDを返します。
-
-
-
-