Class BlockTagIngredient
java.lang.Object
net.darkhax.bookshelf.common.impl.data.ingredient.BlockTagIngredient
- All Implemented Interfaces:
IngredientLogic<BlockTagIngredient>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<BlockTagIngredient> static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, BlockTagIngredient> -
Constructor Summary
ConstructorsConstructorDescriptionBlockTagIngredient(List<net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block>> blockTags) -
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
requiresTesting
-
Field Details
-
CODEC
-
STREAM
public static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf,BlockTagIngredient> STREAM
-
-
Constructor Details
-
BlockTagIngredient
public BlockTagIngredient(List<net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block>> blockTags)
-
-
Method Details
-
getAllMatchingStacks
- Specified by:
getAllMatchingStacksin interfaceIngredientLogic<BlockTagIngredient>
-
test
public boolean test(net.minecraft.world.item.ItemStack stack) - Specified by:
testin interfaceIngredientLogic<BlockTagIngredient>
-