Record Class RecipeStage

java.lang.Object
java.lang.Record
com.github.darksoulq.ner.model.RecipeStage

public record RecipeStage(Map<Integer,List<org.bukkit.inventory.ItemStack>> slots, Map<org.bukkit.inventory.ItemStack,String> probabilities, List<PagedSection> pagedSections, com.github.darksoulq.abyssallib.server.resource.asset.Font.TextureGlyph texture, int offset) extends Record
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    RecipeStage(Map<Integer,List<org.bukkit.inventory.ItemStack>> slots, Map<org.bukkit.inventory.ItemStack,String> probabilities, List<PagedSection> pagedSections, com.github.darksoulq.abyssallib.server.resource.asset.Font.TextureGlyph texture, int offset)
    Creates an instance of a RecipeStage record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    builder(com.github.darksoulq.abyssallib.server.resource.asset.Font.TextureGlyph texture, int offset)
     
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    int
    Returns the value of the offset record component.
    Returns the value of the pagedSections record component.
    Map<org.bukkit.inventory.ItemStack,String>
    Returns the value of the probabilities record component.
    Map<Integer,List<org.bukkit.inventory.ItemStack>>
    Returns the value of the slots record component.
    com.github.darksoulq.abyssallib.server.resource.asset.Font.TextureGlyph
    Returns the value of the texture record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • RecipeStage

      public RecipeStage(Map<Integer,List<org.bukkit.inventory.ItemStack>> slots, Map<org.bukkit.inventory.ItemStack,String> probabilities, List<PagedSection> pagedSections, com.github.darksoulq.abyssallib.server.resource.asset.Font.TextureGlyph texture, int offset)
      Creates an instance of a RecipeStage record class.
      Parameters:
      slots - the value for the slots record component
      probabilities - the value for the probabilities record component
      pagedSections - the value for the pagedSections record component
      texture - the value for the texture record component
      offset - the value for the offset record component
  • Method Details

    • builder

      public static RecipeStage.Builder builder(com.github.darksoulq.abyssallib.server.resource.asset.Font.TextureGlyph texture, int offset)
    • 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 '=='.
      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.
    • slots

      public Map<Integer,List<org.bukkit.inventory.ItemStack>> slots()
      Returns the value of the slots record component.
      Returns:
      the value of the slots record component
    • probabilities

      public Map<org.bukkit.inventory.ItemStack,String> probabilities()
      Returns the value of the probabilities record component.
      Returns:
      the value of the probabilities record component
    • pagedSections

      public List<PagedSection> pagedSections()
      Returns the value of the pagedSections record component.
      Returns:
      the value of the pagedSections record component
    • texture

      public com.github.darksoulq.abyssallib.server.resource.asset.Font.TextureGlyph texture()
      Returns the value of the texture record component.
      Returns:
      the value of the texture record component
    • offset

      public int offset()
      Returns the value of the offset record component.
      Returns:
      the value of the offset record component