Package com.hrznstudio.titanium.api
Class IItemStackQuery.IngredientQuery
java.lang.Object
com.hrznstudio.titanium.api.IItemStackQuery.IngredientQuery
- All Implemented Interfaces:
IItemStackQuery,IItemStackQuery.IItemStackQueryRecipe,Predicate<net.minecraft.world.item.ItemStack>
- Enclosing interface:
- IItemStackQuery
public static class IItemStackQuery.IngredientQuery
extends Object
implements IItemStackQuery.IItemStackQueryRecipe
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.hrznstudio.titanium.api.IItemStackQuery
IItemStackQuery.IItemStackNBTQuery, IItemStackQuery.IItemStackQueryRecipe, IItemStackQuery.IngredientQuery, IItemStackQuery.ItemQuery, IItemStackQuery.ItemStackQuery -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected net.minecraft.world.item.crafting.IngredientFields inherited from interface com.hrznstudio.titanium.api.IItemStackQuery
ANYTHING, NOTHING -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.item.crafting.Ingredientnet.minecraft.world.item.ItemStack[]booleanmatches(net.minecraft.world.item.ItemStack itemStack) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.hrznstudio.titanium.api.IItemStackQuery
test, toSlotFilter, toSlotFilter, toSlotFilter, toSlotFilter
-
Field Details
-
ingredient
protected net.minecraft.world.item.crafting.Ingredient ingredient
-
-
Constructor Details
-
IngredientQuery
public IngredientQuery(net.minecraft.world.item.crafting.Ingredient ingredient)
-
-
Method Details
-
getMatchingStacks
public net.minecraft.world.item.ItemStack[] getMatchingStacks()- Specified by:
getMatchingStacksin interfaceIItemStackQuery.IItemStackQueryRecipe
-
getIngredient
public net.minecraft.world.item.crafting.Ingredient getIngredient() -
matches
public boolean matches(net.minecraft.world.item.ItemStack itemStack) - Specified by:
matchesin interfaceIItemStackQuery
-