Record Class MinecraftServer.ServerResourcePackProperties

java.lang.Object
java.lang.Record
net.minecraft.server.MinecraftServer.ServerResourcePackProperties
Record Components:
id -
url -
hash -
isRequired -
prompt -
Enclosing class:
MinecraftServer

public static record MinecraftServer.ServerResourcePackProperties(UUID id, String url, String hash, boolean isRequired, @Nullable Text prompt) extends Record
Mappings:
Namespace Name
official net/minecraft/server/MinecraftServer$b
intermediary net/minecraft/server/MinecraftServer$class_7460
named net/minecraft/server/MinecraftServer$ServerResourcePackProperties
official a
intermediary comp_2156
named id
official b
intermediary comp_784
named url
official c
intermediary comp_785
named hash
official d
intermediary comp_786
named isRequired
official e
intermediary comp_787
named prompt
  • Field Details

    • id

      private final UUID id
      The field for the id record component.
    • url

      private final String url
      The field for the url record component.
    • hash

      private final String hash
      The field for the hash record component.
    • isRequired

      private final boolean isRequired
      The field for the isRequired record component.
    • prompt

      @Nullable private final @Nullable Text prompt
      The field for the prompt record component.
  • Constructor Details

  • Method Details

    • 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 object)
      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:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • id

      public UUID id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • url

      public String url()
      Returns the value of the url record component.
      Returns:
      the value of the url record component
    • hash

      public String hash()
      Returns the value of the hash record component.
      Returns:
      the value of the hash record component
    • isRequired

      public boolean isRequired()
      Returns the value of the isRequired record component.
      Returns:
      the value of the isRequired record component
    • prompt

      @Nullable public @Nullable Text prompt()
      Returns the value of the prompt record component.
      Returns:
      the value of the prompt record component