Package vazkii.botania.common.crafting
Class AllOfExcludingStateIngredient
java.lang.Object
vazkii.botania.common.crafting.AllOfExcludingStateIngredient
- All Implemented Interfaces:
Predicate<net.minecraft.world.level.block.state.BlockState>,StateIngredient
A dual-purpose state ingredient variant.
Valid states must match all the specified ingredients, but none of the exclusions.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionAllOfExcludingStateIngredient(Collection<StateIngredient> ingredients, Collection<StateIngredient> exclusions) -
Method Summary
Modifier and TypeMethodDescriptionbooleanList<net.minecraft.world.level.block.state.BlockState> List<net.minecraft.world.item.ItemStack> com.google.common.collect.ImmutableList<StateIngredient> 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
-
AllOfExcludingStateIngredient
public AllOfExcludingStateIngredient(Collection<StateIngredient> ingredients, Collection<StateIngredient> exclusions)
-
-
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
-
getExclusions
-
toString
-
equals
-
hashCode
public int hashCode()
-