Class PrototypedIngredientAlternativesList.Serializer
java.lang.Object
org.cyclops.commoncapabilities.api.capability.recipehandler.PrototypedIngredientAlternativesList.Serializer
- All Implemented Interfaces:
IPrototypedIngredientAlternatives.ISerializer<PrototypedIngredientAlternativesList<?,
?>>
- Enclosing class:
PrototypedIngredientAlternativesList<T,
M>
public static class PrototypedIngredientAlternativesList.Serializer
extends Object
implements IPrototypedIngredientAlternatives.ISerializer<PrototypedIngredientAlternativesList<?,?>>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T,
M> PrototypedIngredientAlternativesList <?, ?> deserialize
(net.minecraft.core.HolderLookup.Provider lookupProvider, IngredientComponent<T, M> ingredientComponent, net.minecraft.nbt.Tag tag) byte
getId()
<T,
M> net.minecraft.nbt.Tag serialize
(net.minecraft.core.HolderLookup.Provider lookupProvider, IngredientComponent<T, M> ingredientComponent, PrototypedIngredientAlternativesList<?, ?> alternatives)
-
Constructor Details
-
Serializer
public Serializer()
-
-
Method Details
-
getId
public byte getId()- Specified by:
getId
in interfaceIPrototypedIngredientAlternatives.ISerializer<PrototypedIngredientAlternativesList<?,
?>>
-
serialize
public <T,M> net.minecraft.nbt.Tag serialize(net.minecraft.core.HolderLookup.Provider lookupProvider, IngredientComponent<T, M> ingredientComponent, PrototypedIngredientAlternativesList<?, ?> alternatives) - Specified by:
serialize
in interfaceIPrototypedIngredientAlternatives.ISerializer<PrototypedIngredientAlternativesList<?,
?>>
-
deserialize
public <T,M> PrototypedIngredientAlternativesList<?,?> deserialize(net.minecraft.core.HolderLookup.Provider lookupProvider, IngredientComponent<T, M> ingredientComponent, net.minecraft.nbt.Tag tag) - Specified by:
deserialize
in interfaceIPrototypedIngredientAlternatives.ISerializer<PrototypedIngredientAlternativesList<?,
?>>
-