Class StorageContainerUpgradeRecipeSerializer<T extends Enum<T> & StorageVariant & net.minecraft.util.StringRepresentable>
java.lang.Object
com.refinedmods.refinedstorage.common.storage.StorageContainerUpgradeRecipeSerializer<T>
- All Implemented Interfaces:
net.minecraft.world.item.crafting.RecipeSerializer<StorageContainerUpgradeRecipe<T>>
public class StorageContainerUpgradeRecipeSerializer<T extends Enum<T> & StorageVariant & net.minecraft.util.StringRepresentable>
extends Object
implements net.minecraft.world.item.crafting.RecipeSerializer<StorageContainerUpgradeRecipe<T>>
-
Field Summary
Fields inherited from interface net.minecraft.world.item.crafting.RecipeSerializer
ARMOR_DYE, BANNER_DUPLICATE, BLASTING_RECIPE, BOOK_CLONING, CAMPFIRE_COOKING_RECIPE, DECORATED_POT_RECIPE, FIREWORK_ROCKET, FIREWORK_STAR, FIREWORK_STAR_FADE, MAP_CLONING, MAP_EXTENDING, REPAIR_ITEM, SHAPED_RECIPE, SHAPELESS_RECIPE, SHIELD_DECORATION, SHULKER_BOX_COLORING, SMELTING_RECIPE, SMITHING_TRANSFORM, SMITHING_TRIM, SMOKING_RECIPE, STONECUTTER, SUSPICIOUS_STEW, TIPPED_ARROW
-
Constructor Summary
ConstructorDescriptionStorageContainerUpgradeRecipeSerializer
(T[] variants, Function<T, StorageContainerUpgradeRecipe<T>> instanceFactory) -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.serialization.MapCodec
<StorageContainerUpgradeRecipe<T>> codec()
net.minecraft.network.codec.StreamCodec
<net.minecraft.network.RegistryFriendlyByteBuf, StorageContainerUpgradeRecipe<T>>
-
Constructor Details
-
StorageContainerUpgradeRecipeSerializer
public StorageContainerUpgradeRecipeSerializer(T[] variants, Function<T, StorageContainerUpgradeRecipe<T>> instanceFactory)
-
-
Method Details
-
codec
- Specified by:
codec
in interfacenet.minecraft.world.item.crafting.RecipeSerializer<T extends Enum<T> & StorageVariant & net.minecraft.util.StringRepresentable>
-
streamCodec
public net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf,StorageContainerUpgradeRecipe<T>> streamCodec()- Specified by:
streamCodec
in interfacenet.minecraft.world.item.crafting.RecipeSerializer<T extends Enum<T> & StorageVariant & net.minecraft.util.StringRepresentable>
-