Class LootDataProviderRecipe
java.lang.Object
net.darkhax.simplelootviewer.common.lib.DataRecipe
net.darkhax.simplelootviewer.common.impl.data.LootDataProviderRecipe
- All Implemented Interfaces:
net.minecraft.world.item.crafting.Recipe<EmptyRecipeContext>
A built-in recipe type to handle syncing all the data to clients. While this can be done in other ways, using a
recipe ensures the data is reloadable, synced to the client, and made available before has loaded plugins.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<LootDataProviderRecipe> static final net.minecraft.world.item.crafting.RecipeSerializer<LootDataProviderRecipe> static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, LootDataProviderRecipe> static final Supplier<net.minecraft.world.item.crafting.RecipeType<LootDataProviderRecipe>> static final net.minecraft.resources.ResourceLocationFields inherited from interface net.minecraft.world.item.crafting.Recipe
STREAM_CODEC -
Constructor Summary
ConstructorsConstructorDescriptionLootDataProviderRecipe(com.google.common.collect.ArrayListMultimap<LootType, TableInfo> data) -
Method Summary
Methods inherited from class net.darkhax.simplelootviewer.common.lib.DataRecipe
assemble, canCraftInDimensions, getResultItem, isSpecial, matches, showNotificationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.item.crafting.Recipe
getGroup, getIngredients, getRemainingItems, getToastSymbol, isIncomplete
-
Field Details
-
TYPE_ID
public static final net.minecraft.resources.ResourceLocation TYPE_ID -
TYPE
public static final Supplier<net.minecraft.world.item.crafting.RecipeType<LootDataProviderRecipe>> TYPE -
CODEC
-
STREAM
public static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf,LootDataProviderRecipe> STREAM -
SERIALIZER
public static final net.minecraft.world.item.crafting.RecipeSerializer<LootDataProviderRecipe> SERIALIZER
-
-
Constructor Details
-
LootDataProviderRecipe
-
-
Method Details
-
getSerializer
@NotNull public @NotNull net.minecraft.world.item.crafting.RecipeSerializer<?> getSerializer() -
getType
@NotNull public @NotNull net.minecraft.world.item.crafting.RecipeType<?> getType() -
getData
-