Class PassAdvancedIngredient
java.lang.Object
com.petrolpark.core.recipe.ingredient.advanced.PassAdvancedIngredient
- All Implemented Interfaces:
IAdvancedIngredient<Object>,ITypelessAdvancedIngredient<Object>,Predicate<Object>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<PassAdvancedIngredient> static final PassAdvancedIngredientstatic final net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf, PassAdvancedIngredient> static final IAdvancedIngredientType<Object> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddToCounterDescription(Lang.IndentedTooltipBuilder description) voidaddToDescription(Lang.IndentedTooltipBuilder description) IAdvancedIngredientType<? super Object> getType()modifyCounterExamples(Stream<Object> counterExampleStacks) Modify an example stack so it does notfulfillthisIAdvancedIngredient.modifyExamples(Stream<Object> exampleStacks) Modify an example stack so itfulfillthisIAdvancedIngredient.booleanMethods 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.IAdvancedIngredient
simplifyMethods inherited from interface com.petrolpark.core.recipe.ingredient.advanced.ITypelessAdvancedIngredient
checkedCast, streamCounterExamples, streamExamples
-
Field Details
-
INSTANCE
-
CODEC
-
STREAM_CODEC
public static final net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf,PassAdvancedIngredient> STREAM_CODEC -
TYPE
-
-
Constructor Details
-
PassAdvancedIngredient
public PassAdvancedIngredient()
-
-
Method Details
-
test
-
modifyExamples
Description copied from interface:ITypelessAdvancedIngredientModify an example stack so itfulfillthisIAdvancedIngredient.- Specified by:
modifyExamplesin interfaceITypelessAdvancedIngredient<Object>- Parameters:
exampleStacks- May be modified- Returns:
- A stack fulfilling this Ingredient, possibly the same object reference, or
nullif that stack can never fulfill this Ingredient
-
modifyCounterExamples
Description copied from interface:ITypelessAdvancedIngredientModify an example stack so it does notfulfillthisIAdvancedIngredient.- Specified by:
modifyCounterExamplesin interfaceITypelessAdvancedIngredient<Object>- Parameters:
counterExampleStacks- May be modified- Returns:
- A stack not fulfilling this Ingredient, possibly the same object reference, or
nullif that stack always fulfills this Ingredient
-
addToDescription
- Specified by:
addToDescriptionin interfaceITypelessAdvancedIngredient<Object>
-
addToCounterDescription
- Specified by:
addToCounterDescriptionin interfaceITypelessAdvancedIngredient<Object>
-
getType
- Specified by:
getTypein interfaceIAdvancedIngredient<Object>
-