Class IngredientAny
java.lang.Object
net.minecraft.world.item.crafting.Ingredient
com.blamejared.crafttweaker.api.ingredient.type.IngredientAny
- All Implemented Interfaces:
IngredientSingleton<IIngredientAny>,Predicate<net.minecraft.world.item.ItemStack>
@ParametersAreNonnullByDefault
public class IngredientAny
extends net.minecraft.world.item.crafting.Ingredient
implements IngredientSingleton<IIngredientAny>
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.item.crafting.Ingredient
net.minecraft.world.item.crafting.Ingredient.ItemValue, net.minecraft.world.item.crafting.Ingredient.TagValue, net.minecraft.world.item.crafting.Ingredient.Value -
Field Summary
FieldsFields inherited from class net.minecraft.world.item.crafting.Ingredient
EMPTY -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.item.ItemStack[]getItems()net.minecraftforge.common.crafting.IIngredientSerializer<? extends net.minecraft.world.item.crafting.Ingredient>booleanisSimple()booleantest(net.minecraft.world.item.ItemStack stack) com.google.gson.JsonElementtoJson()Methods inherited from class net.minecraft.world.item.crafting.Ingredient
checkInvalidation, fromJson, fromJson, fromNetwork, fromValues, getStackingIds, invalidate, invalidateAll, isEmpty, isVanilla, markValid, merge, of, of, of, of, of, toNetwork, valueFromJson
-
Field Details
-
INSTANCE
-
-
Method Details
-
getItems
public net.minecraft.world.item.ItemStack[] getItems()- Overrides:
getItemsin classnet.minecraft.world.item.crafting.Ingredient
-
test
public boolean test(@Nullable net.minecraft.world.item.ItemStack stack) -
toJson
public com.google.gson.JsonElement toJson()- Overrides:
toJsonin classnet.minecraft.world.item.crafting.Ingredient
-
isSimple
public boolean isSimple()- Overrides:
isSimplein classnet.minecraft.world.item.crafting.Ingredient
-
getSerializer
public net.minecraftforge.common.crafting.IIngredientSerializer<? extends net.minecraft.world.item.crafting.Ingredient> getSerializer()- Overrides:
getSerializerin classnet.minecraft.world.item.crafting.Ingredient
-
getInstance
- Specified by:
getInstancein interfaceIngredientSingleton<IIngredientAny>
-