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>

public class LootDataProviderRecipe extends DataRecipe
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 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

      public static final com.mojang.serialization.MapCodec<LootDataProviderRecipe> 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

      public LootDataProviderRecipe(com.google.common.collect.ArrayListMultimap<LootType,TableInfo> data)
  • 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

      public com.google.common.collect.ArrayListMultimap<LootType,TableInfo> getData()