Class StateIngredientTag
java.lang.Object
at.petrak.hexcasting.common.recipe.ingredient.StateIngredientBlocks
at.petrak.hexcasting.common.recipe.ingredient.StateIngredientTag
- All Implemented Interfaces:
StateIngredient,Predicate<net.minecraft.world.level.block.state.BlockState>
- Direct Known Subclasses:
StateIngredientTagExcluding
-
Field Summary
Fields inherited from class at.petrak.hexcasting.common.recipe.ingredient.StateIngredientBlocks
blocks -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanprotected List<net.minecraft.world.level.block.Block>List<net.minecraft.world.level.block.state.BlockState>List<net.minecraft.world.item.ItemStack>net.minecraft.resources.ResourceLocationgetTagId()inthashCode()net.minecraft.world.level.block.state.BlockStateStream<net.minecraft.world.level.block.Block>resolve()com.google.gson.JsonObjectbooleantest(net.minecraft.world.level.block.state.BlockState state) toString()Methods inherited from class at.petrak.hexcasting.common.recipe.ingredient.StateIngredientBlocks
writeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface at.petrak.hexcasting.common.recipe.ingredient.StateIngredient
descriptionTooltip
-
Constructor Details
-
StateIngredientTag
public StateIngredientTag(net.minecraft.resources.ResourceLocation tag)
-
-
Method Details
-
resolve
-
test
public boolean test(net.minecraft.world.level.block.state.BlockState state) - Specified by:
testin interfacePredicate<net.minecraft.world.level.block.state.BlockState>- Specified by:
testin interfaceStateIngredient- Overrides:
testin classStateIngredientBlocks
-
pick
- Specified by:
pickin interfaceStateIngredient- Overrides:
pickin classStateIngredientBlocks
-
serialize
public com.google.gson.JsonObject serialize()- Specified by:
serializein interfaceStateIngredient- Overrides:
serializein classStateIngredientBlocks
-
getDisplayedStacks
- Specified by:
getDisplayedStacksin interfaceStateIngredient- Overrides:
getDisplayedStacksin classStateIngredientBlocks
-
getBlocks
- Overrides:
getBlocksin classStateIngredientBlocks
-
getDisplayed
- Specified by:
getDisplayedin interfaceStateIngredient- Overrides:
getDisplayedin classStateIngredientBlocks
-
getTagId
public net.minecraft.resources.ResourceLocation getTagId() -
equals
- Overrides:
equalsin classStateIngredientBlocks
-
hashCode
public int hashCode()- Overrides:
hashCodein classStateIngredientBlocks
-
toString
- Overrides:
toStringin classStateIngredientBlocks
-