Record Class MixingPotRecipe
java.lang.Object
java.lang.Record
io.github.pylonmc.pylon.base.recipes.MixingPotRecipe
- Record Components:
inputItems- the items needed inside the mixing pot (max. 7) (respects item amount)inputFluid- the fluid that must be in the mixing pot alreadyoutput- the item or fluid that will be outputrequiresEnrichedFire- whether enriched fire must be placed below to do this recipe
- All Implemented Interfaces:
io.github.pylonmc.pylon.core.recipe.PylonRecipe,net.kyori.adventure.key.Keyed,org.bukkit.Keyed
public record MixingPotRecipe(@NotNull org.bukkit.NamespacedKey key, @NotNull List<io.github.pylonmc.pylon.core.recipe.RecipeInput.Item> inputItems, io.github.pylonmc.pylon.core.recipe.RecipeInput.Fluid inputFluid, @NotNull io.github.pylonmc.pylon.core.recipe.FluidOrItem output, boolean requiresEnrichedFire)
extends Record
implements io.github.pylonmc.pylon.core.recipe.PylonRecipe
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final io.github.pylonmc.pylon.core.recipe.RecipeType<MixingPotRecipe> -
Constructor Summary
ConstructorsConstructorDescriptionMixingPotRecipe(@NotNull org.bukkit.NamespacedKey key, @NotNull List<io.github.pylonmc.pylon.core.recipe.RecipeInput.Item> inputItems, io.github.pylonmc.pylon.core.recipe.RecipeInput.Fluid inputFluid, @NotNull io.github.pylonmc.pylon.core.recipe.FluidOrItem output, boolean requiresEnrichedFire) Creates an instance of aMixingPotReciperecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull xyz.xenondevs.invui.gui.Guidisplay()final booleanIndicates whether some other object is "equal to" this one.@NotNull List<io.github.pylonmc.pylon.core.recipe.RecipeInput> @NotNull org.bukkit.NamespacedKeygetKey()@NotNull List<io.github.pylonmc.pylon.core.recipe.FluidOrItem> final inthashCode()Returns a hash code value for this object.io.github.pylonmc.pylon.core.recipe.RecipeInput.FluidReturns the value of theinputFluidrecord component.@NotNull List<io.github.pylonmc.pylon.core.recipe.RecipeInput.Item> Returns the value of theinputItemsrecord component.@NotNull org.bukkit.NamespacedKeykey()Returns the value of thekeyrecord component.booleanmatches(List<org.bukkit.inventory.ItemStack> inputItems, boolean isEnrichedFire, io.github.pylonmc.pylon.core.fluid.PylonFluid fluid, double fluidAmount) @NotNull io.github.pylonmc.pylon.core.recipe.FluidOrItemoutput()Returns the value of theoutputrecord component.booleanReturns the value of therequiresEnrichedFirerecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.github.pylonmc.pylon.core.recipe.PylonRecipe
isHidden, isInput, isInput, isOutput, isOutput
-
Field Details
-
RECIPE_TYPE
-
-
Constructor Details
-
MixingPotRecipe
public MixingPotRecipe(@NotNull @NotNull org.bukkit.NamespacedKey key, @NotNull @NotNull List<io.github.pylonmc.pylon.core.recipe.RecipeInput.Item> inputItems, @NotNull io.github.pylonmc.pylon.core.recipe.RecipeInput.Fluid inputFluid, @NotNull @NotNull io.github.pylonmc.pylon.core.recipe.FluidOrItem output, boolean requiresEnrichedFire) Creates an instance of aMixingPotReciperecord class.- Parameters:
key- the value for thekeyrecord componentinputItems- the value for theinputItemsrecord componentinputFluid- the value for theinputFluidrecord componentoutput- the value for theoutputrecord componentrequiresEnrichedFire- the value for therequiresEnrichedFirerecord component
-
-
Method Details
-
getKey
@NotNull public @NotNull org.bukkit.NamespacedKey getKey()- Specified by:
getKeyin interfaceorg.bukkit.Keyed
-
matches
public boolean matches(List<org.bukkit.inventory.ItemStack> inputItems, boolean isEnrichedFire, io.github.pylonmc.pylon.core.fluid.PylonFluid fluid, double fluidAmount) -
getInputs
- Specified by:
getInputsin interfaceio.github.pylonmc.pylon.core.recipe.PylonRecipe
-
getResults
- Specified by:
getResultsin interfaceio.github.pylonmc.pylon.core.recipe.PylonRecipe
-
display
@NotNull public @NotNull xyz.xenondevs.invui.gui.Gui display()- Specified by:
displayin interfaceio.github.pylonmc.pylon.core.recipe.PylonRecipe
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
key
@NotNull public @NotNull org.bukkit.NamespacedKey key()Returns the value of thekeyrecord component.- Specified by:
keyin interfacenet.kyori.adventure.key.Keyed- Specified by:
keyin interfaceorg.bukkit.Keyed- Returns:
- the value of the
keyrecord component
-
inputItems
Returns the value of theinputItemsrecord component.- Returns:
- the value of the
inputItemsrecord component
-
inputFluid
@NotNull public io.github.pylonmc.pylon.core.recipe.RecipeInput.Fluid inputFluid()Returns the value of theinputFluidrecord component.- Returns:
- the value of the
inputFluidrecord component
-
output
@NotNull public @NotNull io.github.pylonmc.pylon.core.recipe.FluidOrItem output()Returns the value of theoutputrecord component.- Returns:
- the value of the
outputrecord component
-
requiresEnrichedFire
public boolean requiresEnrichedFire()Returns the value of therequiresEnrichedFirerecord component.- Returns:
- the value of the
requiresEnrichedFirerecord component
-