Record Class WorldTemplate

java.lang.Object
java.lang.Record
net.minecraft.client.realms.dto.WorldTemplate
Record Components:
id -
name -
version -
author -
link -
image -
trailer -
recommendedPlayers -
type -

@Environment(CLIENT) public record WorldTemplate(String id, String name, String version, String author, String link, @Nullable String image, String trailer, String recommendedPlayers, WorldTemplate.WorldTemplateType type) extends Record
Mappings:
Namespace Name
named net/minecraft/client/realms/dto/WorldTemplate
intermediary net/minecraft/class_4890
official fzm
named id
intermediary comp_5039
official a
named name
intermediary comp_5040
official b
named version
intermediary comp_5041
official c
named author
intermediary comp_5042
official d
named link
intermediary comp_5043
official e
named image
intermediary comp_5044
official f
named trailer
intermediary comp_5045
official g
named recommendedPlayers
intermediary comp_5046
official h
named type
intermediary comp_5047
official i
  • Field Details

    • id

      private final String id
      The field for the id record component.
    • name

      private final String name
      The field for the name record component.
    • version

      private final String version
      The field for the version record component.
    • author

      private final String author
      The field for the author record component.
    • image

      @Nullable private final @Nullable String image
      The field for the image record component.
    • trailer

      private final String trailer
      The field for the trailer record component.
    • recommendedPlayers

      private final String recommendedPlayers
      The field for the recommendedPlayers record component.
    • type

      private final WorldTemplate.WorldTemplateType type
      The field for the type record component.
    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      named LOGGER Lnet/minecraft/client/realms/dto/WorldTemplate;LOGGER:Lorg/slf4j/Logger;
      intermediary field_22675 Lnet/minecraft/class_4890;field_22675:Lorg/slf4j/Logger;
      official j Lfzm;j:Lorg/slf4j/Logger;
  • Constructor Details

  • Method Details

    • parse

      @Nullable public static @Nullable WorldTemplate parse(JsonObject node)
      Mappings:
      Namespace Name Mixin selector
      named parse Lnet/minecraft/client/realms/dto/WorldTemplate;parse(Lcom/google/gson/JsonObject;)Lnet/minecraft/client/realms/dto/WorldTemplate;
      intermediary method_25096 Lnet/minecraft/class_4890;method_25096(Lcom/google/gson/JsonObject;)Lnet/minecraft/class_4890;
      official a Lfzm;a(Lcom/google/gson/JsonObject;)Lfzm;
    • 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. All components in this record class are compared with Objects::equals(Object,Object).
      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 String id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • version

      public String version()
      Returns the value of the version record component.
      Returns:
      the value of the version record component
    • author

      public String author()
      Returns the value of the author record component.
      Returns:
      the value of the author record component
    • link

      public String link()
      Returns the value of the link record component.
      Returns:
      the value of the link record component
    • image

      @Nullable public @Nullable String image()
      Returns the value of the image record component.
      Returns:
      the value of the image record component
    • trailer

      public String trailer()
      Returns the value of the trailer record component.
      Returns:
      the value of the trailer record component
    • recommendedPlayers

      public String recommendedPlayers()
      Returns the value of the recommendedPlayers record component.
      Returns:
      the value of the recommendedPlayers record component
    • type

      Returns the value of the type record component.
      Returns:
      the value of the type record component