Record Class GeyserSmithingRecipe

java.lang.Object
java.lang.Record
org.geysermc.geyser.inventory.recipe.GeyserSmithingRecipe
All Implemented Interfaces:
GeyserRecipe

public record GeyserSmithingRecipe(org.geysermc.mcprotocollib.protocol.data.game.recipe.display.slot.SlotDisplay template, org.geysermc.mcprotocollib.protocol.data.game.recipe.display.slot.SlotDisplay base, org.geysermc.mcprotocollib.protocol.data.game.recipe.display.slot.SlotDisplay addition, org.geysermc.mcprotocollib.protocol.data.game.recipe.display.slot.SlotDisplay result) extends Record implements GeyserRecipe
  • Constructor Summary

    Constructors
    Constructor
    Description
    GeyserSmithingRecipe(org.geysermc.mcprotocollib.protocol.data.game.recipe.display.slot.SlotDisplay template, org.geysermc.mcprotocollib.protocol.data.game.recipe.display.slot.SlotDisplay base, org.geysermc.mcprotocollib.protocol.data.game.recipe.display.slot.SlotDisplay addition, org.geysermc.mcprotocollib.protocol.data.game.recipe.display.slot.SlotDisplay result)
    Creates an instance of a GeyserSmithingRecipe record class.
    GeyserSmithingRecipe(org.geysermc.mcprotocollib.protocol.data.game.recipe.display.SmithingRecipeDisplay display)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.geysermc.mcprotocollib.protocol.data.game.recipe.display.slot.SlotDisplay
    Returns the value of the addition record component.
    org.geysermc.mcprotocollib.protocol.data.game.recipe.display.slot.SlotDisplay
    Returns the value of the base record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    boolean
    Whether the recipe is flexible or not in which items can be placed where.
    org.geysermc.mcprotocollib.protocol.data.game.recipe.display.slot.SlotDisplay
    Returns the value of the result record component.
    org.geysermc.mcprotocollib.protocol.data.game.recipe.display.slot.SlotDisplay
    Returns the value of the template record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

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

    • GeyserSmithingRecipe

      public GeyserSmithingRecipe(org.geysermc.mcprotocollib.protocol.data.game.recipe.display.SmithingRecipeDisplay display)
    • GeyserSmithingRecipe

      public GeyserSmithingRecipe(org.geysermc.mcprotocollib.protocol.data.game.recipe.display.slot.SlotDisplay template, org.geysermc.mcprotocollib.protocol.data.game.recipe.display.slot.SlotDisplay base, org.geysermc.mcprotocollib.protocol.data.game.recipe.display.slot.SlotDisplay addition, org.geysermc.mcprotocollib.protocol.data.game.recipe.display.slot.SlotDisplay result)
      Creates an instance of a GeyserSmithingRecipe record class.
      Parameters:
      template - the value for the template record component
      base - the value for the base record component
      addition - the value for the addition record component
      result - the value for the result record component
  • Method Details

    • isShaped

      public boolean isShaped()
      Description copied from interface: GeyserRecipe
      Whether the recipe is flexible or not in which items can be placed where.
      Specified by:
      isShaped in interface GeyserRecipe
    • 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • template

      public org.geysermc.mcprotocollib.protocol.data.game.recipe.display.slot.SlotDisplay template()
      Returns the value of the template record component.
      Returns:
      the value of the template record component
    • base

      public org.geysermc.mcprotocollib.protocol.data.game.recipe.display.slot.SlotDisplay base()
      Returns the value of the base record component.
      Returns:
      the value of the base record component
    • addition

      public org.geysermc.mcprotocollib.protocol.data.game.recipe.display.slot.SlotDisplay addition()
      Returns the value of the addition record component.
      Returns:
      the value of the addition record component
    • result

      public org.geysermc.mcprotocollib.protocol.data.game.recipe.display.slot.SlotDisplay result()
      Returns the value of the result record component.
      Specified by:
      result in interface GeyserRecipe
      Returns:
      the value of the result record component