Class GenericIngredientModifierType<STACK,TYPELESS_MODIFIER extends ITypelessIngredientModifier<? super STACK>>
java.lang.Object
com.petrolpark.core.recipe.ingredient.modifier.GenericIngredientModifierType<STACK,TYPELESS_MODIFIER>
- All Implemented Interfaces:
IIngredientModifierType<STACK>
public final class GenericIngredientModifierType<STACK,TYPELESS_MODIFIER extends ITypelessIngredientModifier<? super STACK>>
extends Object
implements IIngredientModifierType<STACK>
-
Constructor Summary
ConstructorsConstructorDescriptionGenericIngredientModifierType(com.mojang.serialization.MapCodec<TYPELESS_MODIFIER> untypedCodec, net.minecraft.network.codec.StreamCodec<? super net.minecraft.network.RegistryFriendlyByteBuf, TYPELESS_MODIFIER> untypedStreamCodec) -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.serialization.MapCodec<? extends IIngredientModifier<? super STACK>> codec()net.minecraft.network.codec.StreamCodec<? super net.minecraft.network.RegistryFriendlyByteBuf, ? extends IIngredientModifier<? super STACK>>
-
Constructor Details
-
GenericIngredientModifierType
public GenericIngredientModifierType(com.mojang.serialization.MapCodec<TYPELESS_MODIFIER> untypedCodec, net.minecraft.network.codec.StreamCodec<? super net.minecraft.network.RegistryFriendlyByteBuf, TYPELESS_MODIFIER> untypedStreamCodec)
-
-
Method Details
-
codec
- Specified by:
codecin interfaceIIngredientModifierType<STACK>
-
streamCodec
public net.minecraft.network.codec.StreamCodec<? super net.minecraft.network.RegistryFriendlyByteBuf,? extends IIngredientModifier<? super STACK>> streamCodec()- Specified by:
streamCodecin interfaceIIngredientModifierType<STACK>
-