Record Class KilnRecipe
java.lang.Object
java.lang.Record
io.github.pylonmc.pylon.recipes.KilnRecipe
- Record Components:
input1- the first input iteminput2- the second input itemoutputItem- the output item (null if no item output)outputFluid- the output fluid (null if no fluid output)outputFluidAmount- the amount of the output fluid (null if no fluid output)timeTicks- the recipe time in ticks
- All Implemented Interfaces:
io.github.pylonmc.rebar.recipe.RebarRecipe, net.kyori.adventure.key.Keyed, org.bukkit.Keyed
public record KilnRecipe(@NotNull org.bukkit.NamespacedKey key, io.github.pylonmc.rebar.recipe.RecipeInput.Item input1, io.github.pylonmc.rebar.recipe.RecipeInput.Item input2, org.bukkit.inventory.ItemStack outputItem, io.github.pylonmc.rebar.fluid.RebarFluid outputFluid, Double outputFluidAmount, int timeTicks, double temperature)
extends Record
implements io.github.pylonmc.rebar.recipe.RebarRecipe
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.github.pylonmc.rebar.recipe.RebarRecipe
io.github.pylonmc.rebar.recipe.RebarRecipe.Companion -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final io.github.pylonmc.rebar.recipe.RecipeType<KilnRecipe> Fields inherited from interface io.github.pylonmc.rebar.recipe.RebarRecipe
Companion -
Constructor Summary
ConstructorsConstructorDescriptionKilnRecipe(@NotNull org.bukkit.NamespacedKey key, io.github.pylonmc.rebar.recipe.RecipeInput.Item input1, io.github.pylonmc.rebar.recipe.RecipeInput.Item input2, org.bukkit.inventory.ItemStack outputItem, io.github.pylonmc.rebar.fluid.RebarFluid outputFluid, Double outputFluidAmount, int timeTicks, double temperature) Creates an instance of aKilnReciperecord 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.rebar.recipe.RecipeInput> @NotNull org.bukkit.NamespacedKeygetKey()@NotNull List<io.github.pylonmc.rebar.recipe.FluidOrItem> final inthashCode()Returns a hash code value for this object.io.github.pylonmc.rebar.recipe.RecipeInput.Iteminput1()Returns the value of theinput1record component.io.github.pylonmc.rebar.recipe.RecipeInput.Iteminput2()Returns the value of theinput2record component.@NotNull org.bukkit.NamespacedKeykey()Returns the value of thekeyrecord component.io.github.pylonmc.rebar.fluid.RebarFluidReturns the value of theoutputFluidrecord component.Returns the value of theoutputFluidAmountrecord component.org.bukkit.inventory.ItemStackReturns the value of theoutputItemrecord component.doubleReturns the value of thetemperaturerecord component.intReturns the value of thetimeTicksrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from interface io.github.pylonmc.rebar.recipe.RebarRecipe
isHidden, isInput, isInput, isOutput, isOutput
-
Field Details
-
RECIPE_TYPE
-
-
Constructor Details
-
KilnRecipe
public KilnRecipe(@NotNull @NotNull org.bukkit.NamespacedKey key, @NotNull io.github.pylonmc.rebar.recipe.RecipeInput.Item input1, @Nullable io.github.pylonmc.rebar.recipe.RecipeInput.Item input2, @Nullable org.bukkit.inventory.ItemStack outputItem, @Nullable io.github.pylonmc.rebar.fluid.RebarFluid outputFluid, @Nullable Double outputFluidAmount, int timeTicks, double temperature) Creates an instance of aKilnReciperecord class.- Parameters:
key- the value for thekeyrecord componentinput1- the value for theinput1record componentinput2- the value for theinput2record componentoutputItem- the value for theoutputItemrecord componentoutputFluid- the value for theoutputFluidrecord componentoutputFluidAmount- the value for theoutputFluidAmountrecord componenttimeTicks- the value for thetimeTicksrecord componenttemperature- the value for thetemperaturerecord component
-
-
Method Details
-
getKey
@NotNull public @NotNull org.bukkit.NamespacedKey getKey()- Specified by:
getKeyin interfaceorg.bukkit.Keyed
-
getInputs
- Specified by:
getInputsin interfaceio.github.pylonmc.rebar.recipe.RebarRecipe
-
getResults
- Specified by:
getResultsin interfaceio.github.pylonmc.rebar.recipe.RebarRecipe
-
display
@NotNull public @NotNull xyz.xenondevs.invui.gui.Gui display()- Specified by:
displayin interfaceio.github.pylonmc.rebar.recipe.RebarRecipe
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
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
-
input1
-
input2
-
outputItem
public org.bukkit.inventory.ItemStack outputItem()Returns the value of theoutputItemrecord component.- Returns:
- the value of the
outputItemrecord component
-
outputFluid
public io.github.pylonmc.rebar.fluid.RebarFluid outputFluid()Returns the value of theoutputFluidrecord component.- Returns:
- the value of the
outputFluidrecord component
-
outputFluidAmount
Returns the value of theoutputFluidAmountrecord component.- Returns:
- the value of the
outputFluidAmountrecord component
-
timeTicks
-
temperature
public double temperature()Returns the value of thetemperaturerecord component.- Returns:
- the value of the
temperaturerecord component
-