Package vazkii.botania.common.crafting
Class AnyOfStateIngredient
java.lang.Object
vazkii.botania.common.crafting.AnyOfStateIngredient
- All Implemented Interfaces:
Predicate<net.minecraft.world.level.block.state.BlockState>,StateIngredient
Specifies a state ingredient with one or more sub-ingredients.
Valid states must match at least one of the specified ingredients.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanList<net.minecraft.world.level.block.state.BlockState> List<net.minecraft.world.item.ItemStack> com.google.common.collect.ImmutableList<StateIngredient> getType()inthashCode()net.minecraft.world.level.block.state.BlockStatepick(net.minecraft.util.RandomSource random) Stream<net.minecraft.world.level.block.state.BlockState> booleantest(net.minecraft.world.level.block.state.BlockState state) toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface vazkii.botania.api.recipe.StateIngredient
descriptionTooltip
-
Constructor Details
-
AnyOfStateIngredient
-
-
Method Details
-
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
-
pick
public net.minecraft.world.level.block.state.BlockState pick(net.minecraft.util.RandomSource random) - Specified by:
pickin interfaceStateIngredient
-
getType
- Specified by:
getTypein interfaceStateIngredient
-
getDisplayedStacks
- Specified by:
getDisplayedStacksin interfaceStateIngredient
-
getDisplayed
- Specified by:
getDisplayedin interfaceStateIngredient
-
streamBlockStates
- Specified by:
streamBlockStatesin interfaceStateIngredient
-
getIngredients
-
toString
-
equals
-
hashCode
public int hashCode()
-