Class EitherIngredient
java.lang.Object
net.darkhax.bookshelf.common.impl.data.ingredient.EitherIngredient
- All Implemented Interfaces:
IngredientLogic<EitherIngredient>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<EitherIngredient> static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, EitherIngredient> -
Constructor Summary
ConstructorsConstructorDescriptionEitherIngredient(List<net.minecraft.world.item.crafting.Ingredient> ingredients) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.darkhax.bookshelf.common.api.data.ingredient.IngredientLogic
getAllMatchingStacks, requiresTesting
-
Field Details
-
CODEC
-
STREAM
public static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf,EitherIngredient> STREAM
-
-
Constructor Details
-
EitherIngredient
-
-
Method Details
-
test
public boolean test(net.minecraft.world.item.ItemStack stack) - Specified by:
testin interfaceIngredientLogic<EitherIngredient>
-