Class BlockIngredient.BlockTagIngredient
java.lang.Object
com.petrolpark.core.recipe.ingredient.BlockIngredient.BlockTagIngredient
- All Implemented Interfaces:
BlockIngredient<BlockIngredient.BlockTagIngredient>
- Enclosing interface:
BlockIngredient<T extends BlockIngredient<T>>
public static class BlockIngredient.BlockTagIngredient
extends Object
implements BlockIngredient<BlockIngredient.BlockTagIngredient>
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface com.petrolpark.core.recipe.ingredient.BlockIngredient
BlockIngredient.BlockIngredientType<T extends BlockIngredient<T>>, BlockIngredient.BlockTagIngredient, BlockIngredient.ImpossibleBlockIngredient, BlockIngredient.IntersectionBlockIngredient, BlockIngredient.Registry, BlockIngredient.SetBlockIngredient<T extends BlockIngredient<T>>, BlockIngredient.UnionBlockIngredient -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> static final BlockIngredient.BlockTagIngredient.TypeFields inherited from interface com.petrolpark.core.recipe.ingredient.BlockIngredient
IMPOSSIBLE -
Constructor Summary
ConstructorsConstructorDescriptionBlockTagIngredient(net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> tag) -
Method Summary
-
Field Details
-
TYPE
-
tag
public final net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> tag
-
-
Constructor Details
-
BlockTagIngredient
public BlockTagIngredient(net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> tag)
-
-
Method Details
-
getType
- Specified by:
getTypein interfaceBlockIngredient<BlockIngredient.BlockTagIngredient>
-
isValid
public boolean isValid(net.minecraft.world.level.block.state.BlockState state) - Specified by:
isValidin interfaceBlockIngredient<BlockIngredient.BlockTagIngredient>
-
getDisplayedItemStacks
public net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack> getDisplayedItemStacks()- Specified by:
getDisplayedItemStacksin interfaceBlockIngredient<BlockIngredient.BlockTagIngredient>- Returns:
- An empty List if there is not a reasonably low number of possible Item Stacks
-
write
public void write(net.minecraft.network.FriendlyByteBuf buffer) - Specified by:
writein interfaceBlockIngredient<BlockIngredient.BlockTagIngredient>
-