Uses of Interface
wtf.choco.alchema.crafting.CauldronIngredient
Package | Description |
---|---|
wtf.choco.alchema.api.event | |
wtf.choco.alchema.cauldron | |
wtf.choco.alchema.crafting | |
wtf.choco.alchema.util |
-
Uses of CauldronIngredient in wtf.choco.alchema.api.event
Methods in wtf.choco.alchema.api.event that return CauldronIngredient Modifier and Type Method Description @NotNull CauldronIngredient
CauldronIngredientAddEvent. getIngredient()
Get theCauldronIngredient
implementation to be added to the cauldron.Methods in wtf.choco.alchema.api.event with parameters of type CauldronIngredient Modifier and Type Method Description void
CauldronIngredientAddEvent. setIngredient(@NotNull CauldronIngredient ingredient)
Set theCauldronIngredient
implementation to be added to the cauldron.Constructors in wtf.choco.alchema.api.event with parameters of type CauldronIngredient Constructor Description CauldronIngredientAddEvent(@NotNull AlchemicalCauldron cauldron, @NotNull CauldronIngredient ingredient, @NotNull org.bukkit.entity.Item item)
Construct a newCauldronIngredientAddEvent
. -
Uses of CauldronIngredient in wtf.choco.alchema.cauldron
Methods in wtf.choco.alchema.cauldron that return types with arguments of type CauldronIngredient Modifier and Type Method Description @NotNull java.util.List<@NotNull CauldronIngredient>
AlchemicalCauldron. getIngredients()
Get the ingredients present in this cauldron.Methods in wtf.choco.alchema.cauldron with parameters of type CauldronIngredient Modifier and Type Method Description void
AlchemicalCauldron. addIngredient(@NotNull CauldronIngredient ingredient)
Add the ingredient to this cauldron. -
Uses of CauldronIngredient in wtf.choco.alchema.crafting
Classes in wtf.choco.alchema.crafting that implement CauldronIngredient Modifier and Type Class Description class
CauldronIngredientEntityEssence
ACauldronIngredient
implementation wrapped around anEntityEssenceData
.class
CauldronIngredientItemStack
ACauldronIngredient
implementation wrapped around anItemStack
.class
CauldronIngredientMaterial
ACauldronIngredient
implementation wrapped aroundMaterial
.Methods in wtf.choco.alchema.crafting that return CauldronIngredient Modifier and Type Method Description @NotNull CauldronIngredient
CauldronIngredient. adjustAmountBy(int amount)
Return a new cauldron ingredient with the amount changed by the specified amount.@NotNull CauldronIngredient
CauldronIngredientEntityEssence. adjustAmountBy(int amount)
@NotNull CauldronIngredient
CauldronIngredientItemStack. adjustAmountBy(int amount)
@NotNull CauldronIngredient
CauldronIngredientMaterial. adjustAmountBy(int amount)
@NotNull CauldronIngredient
CauldronIngredient. merge(@NotNull CauldronIngredient other)
Merge this ingredient with another ingredient.@NotNull CauldronIngredient
CauldronIngredientEntityEssence. merge(@NotNull CauldronIngredient other)
@NotNull CauldronIngredient
CauldronIngredientItemStack. merge(@NotNull CauldronIngredient other)
@NotNull CauldronIngredient
CauldronIngredientMaterial. merge(@NotNull CauldronIngredient other)
@Nullable CauldronIngredient
CauldronRecipeRegistry. parseIngredientType(@NotNull org.bukkit.NamespacedKey key, @NotNull com.google.gson.JsonObject object)
Parse aCauldronIngredient
with the ingredient type matching the providedNamespacedKey
from aJsonObject
.Methods in wtf.choco.alchema.crafting that return types with arguments of type CauldronIngredient Modifier and Type Method Description @NotNull java.util.List<@NotNull CauldronIngredient>
CauldronRecipe. getIngredients()
Get an unmodifiable set of all required ingredients.Methods in wtf.choco.alchema.crafting with parameters of type CauldronIngredient Modifier and Type Method Description CauldronRecipe.Builder
CauldronRecipe.Builder. addIngredient(@NotNull CauldronIngredient ingredient)
Add an ingredient to the recipe.boolean
CauldronRecipe. hasIngredient(@NotNull CauldronIngredient ingredient)
Check whether this recipe contains the specified ingredient.boolean
CauldronIngredient. isSimilar(@NotNull CauldronIngredient other)
Check whether this ingredient is similar to the provided ingredient.boolean
CauldronIngredientEntityEssence. isSimilar(@NotNull CauldronIngredient other)
boolean
CauldronIngredientItemStack. isSimilar(@NotNull CauldronIngredient other)
boolean
CauldronIngredientMaterial. isSimilar(@NotNull CauldronIngredient other)
@NotNull CauldronIngredient
CauldronIngredient. merge(@NotNull CauldronIngredient other)
Merge this ingredient with another ingredient.@NotNull CauldronIngredient
CauldronIngredientEntityEssence. merge(@NotNull CauldronIngredient other)
@NotNull CauldronIngredient
CauldronIngredientItemStack. merge(@NotNull CauldronIngredient other)
@NotNull CauldronIngredient
CauldronIngredientMaterial. merge(@NotNull CauldronIngredient other)
Method parameters in wtf.choco.alchema.crafting with type arguments of type CauldronIngredient Modifier and Type Method Description @Nullable CauldronRecipe
CauldronRecipeRegistry. getApplicableRecipe(@NotNull java.util.List<@NotNull CauldronIngredient> ingredients)
Get theCauldronRecipe
that applies given a set of ingredients.@Nullable CauldronRecipe
CauldronRecipeRegistry. getApplicableRecipe(@NotNull java.util.List<@NotNull CauldronIngredient> ingredients, boolean mostComplex)
Get theCauldronRecipe
that applies given a set of ingredients.@NotNull java.util.List<@NotNull CauldronRecipe>
CauldronRecipeRegistry. getApplicableRecipes(@NotNull java.util.List<@NotNull CauldronIngredient> ingredients)
Get a list ofCauldronRecipes
that apply given a set of ingredients sorted by their complexity (0th index = most complex, last index = least complex).int
CauldronRecipe. getYieldFromIngredients(@NotNull java.util.List<@NotNull CauldronIngredient> availableIngredients)
Get the expected yield (i.e.void
CauldronRecipeRegistry. registerIngredientType(@NotNull org.bukkit.NamespacedKey key, @NotNull java.util.function.Function<@NotNull com.google.gson.JsonObject,@NotNull ? extends CauldronIngredient> ingredientProvider)
Register a new type ofCauldronIngredient
.Constructors in wtf.choco.alchema.crafting with parameters of type CauldronIngredient Constructor Description CauldronRecipe(@NotNull org.bukkit.NamespacedKey key, @NotNull org.bukkit.inventory.ItemStack result, int experience, @NotNull CauldronIngredient ingredient)
Deprecated.this class will not be constructible in 1.2.0.CauldronRecipe(@NotNull org.bukkit.NamespacedKey key, @NotNull org.bukkit.inventory.ItemStack result, int experience, @NotNull CauldronIngredient... ingredients)
Deprecated.this class will not be constructible in 1.2.0.CauldronRecipe(@NotNull org.bukkit.NamespacedKey key, @NotNull org.bukkit.inventory.ItemStack result, @NotNull CauldronIngredient ingredient)
Deprecated.this class will not be constructible in 1.2.0.CauldronRecipe(@NotNull org.bukkit.NamespacedKey key, @NotNull org.bukkit.inventory.ItemStack result, @NotNull CauldronIngredient... ingredients)
Deprecated.this class will not be constructible in 1.2.0.Constructor parameters in wtf.choco.alchema.crafting with type arguments of type CauldronIngredient Constructor Description CauldronRecipe(@NotNull org.bukkit.NamespacedKey key, @NotNull org.bukkit.inventory.ItemStack result, int experience, @NotNull java.util.List<@NotNull CauldronIngredient> ingredients)
Deprecated.this class will not be constructible in 1.2.0.CauldronRecipe(@NotNull org.bukkit.NamespacedKey key, @NotNull org.bukkit.inventory.ItemStack result, @NotNull java.util.List<@NotNull CauldronIngredient> ingredients)
Deprecated.this class will not be constructible in 1.2.0. -
Uses of CauldronIngredient in wtf.choco.alchema.util
Methods in wtf.choco.alchema.util with parameters of type CauldronIngredient Modifier and Type Method Description static @NotNull CauldronIngredientAddEvent
AlchemaEventFactory. callCauldronIngredientAddEvent(@NotNull AlchemicalCauldron cauldron, @NotNull CauldronIngredient ingredient, @NotNull org.bukkit.entity.Item item)
Call and return theCauldronIngredientAddEvent
.