Class GenericAdvancedIngredientType<STACK,TYPELESS_INGREDIENT extends ITypelessAdvancedIngredient<? super STACK>>
java.lang.Object
com.petrolpark.core.recipe.ingredient.advanced.GenericAdvancedIngredientType<STACK,TYPELESS_INGREDIENT>
- All Implemented Interfaces:
IAdvancedIngredientType<STACK>
public final class GenericAdvancedIngredientType<STACK,TYPELESS_INGREDIENT extends ITypelessAdvancedIngredient<? super STACK>>
extends Object
implements IAdvancedIngredientType<STACK>
-
Constructor Summary
ConstructorsConstructorDescriptionGenericAdvancedIngredientType(com.mojang.serialization.MapCodec<TYPELESS_INGREDIENT> untypedCodec, net.minecraft.network.codec.StreamCodec<? super net.minecraft.network.RegistryFriendlyByteBuf, TYPELESS_INGREDIENT> untypedStreamCodec) -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.serialization.MapCodec<? extends IAdvancedIngredient<? super STACK>> codec()create(TYPELESS_INGREDIENT ingredient) net.minecraft.network.codec.StreamCodec<? super net.minecraft.network.RegistryFriendlyByteBuf, ? extends IAdvancedIngredient<? super STACK>> Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.petrolpark.core.recipe.ingredient.advanced.IAdvancedIngredientType
streamApplicableIngredients
-
Constructor Details
-
GenericAdvancedIngredientType
public GenericAdvancedIngredientType(com.mojang.serialization.MapCodec<TYPELESS_INGREDIENT> untypedCodec, net.minecraft.network.codec.StreamCodec<? super net.minecraft.network.RegistryFriendlyByteBuf, TYPELESS_INGREDIENT> untypedStreamCodec)
-
-
Method Details
-
codec
- Specified by:
codecin interfaceIAdvancedIngredientType<STACK>
-
streamCodec
public net.minecraft.network.codec.StreamCodec<? super net.minecraft.network.RegistryFriendlyByteBuf,? extends IAdvancedIngredient<? super STACK>> streamCodec()- Specified by:
streamCodecin interfaceIAdvancedIngredientType<STACK>
-
create
public TypeAttachedAdvancedIngredient<STACK,TYPELESS_INGREDIENT> create(TYPELESS_INGREDIENT ingredient)
-