Record Class KilnRecipe

java.lang.Object
java.lang.Record
io.github.pylonmc.pylon.recipes.KilnRecipe
Record Components:
input1 - the first input item
input2 - the second input item
outputItem - 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

    Fields
    Modifier and Type
    Field
    Description
    static final io.github.pylonmc.rebar.recipe.RecipeType<KilnRecipe>
     

    Fields inherited from interface io.github.pylonmc.rebar.recipe.RebarRecipe

    Companion
  • Constructor Summary

    Constructors
    Constructor
    Description
    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)
    Creates an instance of a KilnRecipe record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull xyz.xenondevs.invui.gui.Gui
     
    final boolean
    Indicates whether some other object is "equal to" this one.
    @NotNull List<io.github.pylonmc.rebar.recipe.RecipeInput>
     
    @NotNull org.bukkit.NamespacedKey
     
    @NotNull List<io.github.pylonmc.rebar.recipe.FluidOrItem>
     
    final int
    Returns a hash code value for this object.
    io.github.pylonmc.rebar.recipe.RecipeInput.Item
    Returns the value of the input1 record component.
    io.github.pylonmc.rebar.recipe.RecipeInput.Item
    Returns the value of the input2 record component.
    @NotNull org.bukkit.NamespacedKey
    key()
    Returns the value of the key record component.
    io.github.pylonmc.rebar.fluid.RebarFluid
    Returns the value of the outputFluid record component.
    Returns the value of the outputFluidAmount record component.
    org.bukkit.inventory.ItemStack
    Returns the value of the outputItem record component.
    double
    Returns the value of the temperature record component.
    int
    Returns the value of the timeTicks record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface io.github.pylonmc.rebar.recipe.RebarRecipe

    isHidden, isInput, isInput, isOutput, isOutput
  • Field Details

    • RECIPE_TYPE

      public static final io.github.pylonmc.rebar.recipe.RecipeType<KilnRecipe> 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 a KilnRecipe record class.
      Parameters:
      key - the value for the key record component
      input1 - the value for the input1 record component
      input2 - the value for the input2 record component
      outputItem - the value for the outputItem record component
      outputFluid - the value for the outputFluid record component
      outputFluidAmount - the value for the outputFluidAmount record component
      timeTicks - the value for the timeTicks record component
      temperature - the value for the temperature record component
  • Method Details

    • getKey

      @NotNull public @NotNull org.bukkit.NamespacedKey getKey()
      Specified by:
      getKey in interface org.bukkit.Keyed
    • getInputs

      @NotNull public @NotNull List<io.github.pylonmc.rebar.recipe.RecipeInput> getInputs()
      Specified by:
      getInputs in interface io.github.pylonmc.rebar.recipe.RebarRecipe
    • getResults

      @NotNull public @NotNull List<io.github.pylonmc.rebar.recipe.FluidOrItem> getResults()
      Specified by:
      getResults in interface io.github.pylonmc.rebar.recipe.RebarRecipe
    • display

      @NotNull public @NotNull xyz.xenondevs.invui.gui.Gui display()
      Specified by:
      display in interface io.github.pylonmc.rebar.recipe.RebarRecipe
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • key

      @NotNull public @NotNull org.bukkit.NamespacedKey key()
      Returns the value of the key record component.
      Specified by:
      key in interface net.kyori.adventure.key.Keyed
      Specified by:
      key in interface org.bukkit.Keyed
      Returns:
      the value of the key record component
    • input1

      @NotNull public io.github.pylonmc.rebar.recipe.RecipeInput.Item input1()
      Returns the value of the input1 record component.
      Returns:
      the value of the input1 record component
    • input2

      public io.github.pylonmc.rebar.recipe.RecipeInput.Item input2()
      Returns the value of the input2 record component.
      Returns:
      the value of the input2 record component
    • outputItem

      public org.bukkit.inventory.ItemStack outputItem()
      Returns the value of the outputItem record component.
      Returns:
      the value of the outputItem record component
    • outputFluid

      public io.github.pylonmc.rebar.fluid.RebarFluid outputFluid()
      Returns the value of the outputFluid record component.
      Returns:
      the value of the outputFluid record component
    • outputFluidAmount

      public Double outputFluidAmount()
      Returns the value of the outputFluidAmount record component.
      Returns:
      the value of the outputFluidAmount record component
    • timeTicks

      public int timeTicks()
      Returns the value of the timeTicks record component.
      Returns:
      the value of the timeTicks record component
    • temperature

      public double temperature()
      Returns the value of the temperature record component.
      Returns:
      the value of the temperature record component