Record Class FrameType

java.lang.Object
java.lang.Record
net.darkhax.pokeframes.common.impl.FrameType

public record FrameType(String frameId, net.minecraft.network.chat.Component displayName, net.minecraft.network.chat.Component externalName, net.minecraft.network.chat.Component idName, GameType game) extends Record
  • Field Details

  • Constructor Details

    • FrameType

      public FrameType(String frameId, net.minecraft.network.chat.Component displayName, net.minecraft.network.chat.Component externalName, net.minecraft.network.chat.Component idName, GameType game)
      Creates an instance of a FrameType record class.
      Parameters:
      frameId - the value for the frameId record component
      displayName - the value for the displayName record component
      externalName - the value for the externalName record component
      idName - the value for the idName record component
      game - the value for the game record component
  • Method Details

    • types

      public static List<FrameType> types()
    • 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.
    • frameId

      public String frameId()
      Returns the value of the frameId record component.
      Returns:
      the value of the frameId record component
    • displayName

      public net.minecraft.network.chat.Component displayName()
      Returns the value of the displayName record component.
      Returns:
      the value of the displayName record component
    • externalName

      public net.minecraft.network.chat.Component externalName()
      Returns the value of the externalName record component.
      Returns:
      the value of the externalName record component
    • idName

      public net.minecraft.network.chat.Component idName()
      Returns the value of the idName record component.
      Returns:
      the value of the idName record component
    • game

      public GameType game()
      Returns the value of the game record component.
      Returns:
      the value of the game record component