Package net.minecraft.client.realms.dto
Record Class WorldTemplate
java.lang.Object
java.lang.Record
net.minecraft.client.realms.dto.WorldTemplate
- Record Components:
id-name-version--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/WorldTemplateintermediary net/minecraft/class_4890official fzmnamed idintermediary comp_5039official anamed nameintermediary comp_5040official bnamed versionintermediary comp_5041official cnamed authorintermediary comp_5042official dnamed linkintermediary comp_5043official enamed imageintermediary comp_5044official fnamed trailerintermediary comp_5045official gnamed recommendedPlayersintermediary comp_5046official hnamed typeintermediary comp_5047official i
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringThe field for theauthorrecord component.private final StringThe field for theidrecord component.The field for theimagerecord component.private final StringThe field for thelinkrecord component.private static final Loggerprivate final StringThe field for thenamerecord component.private final StringThe field for therecommendedPlayersrecord component.private final StringThe field for thetrailerrecord component.private final WorldTemplate.WorldTemplateTypeThe field for thetyperecord component.private final StringThe field for theversionrecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthor()Returns the value of theauthorrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.image()Returns the value of theimagerecord component.link()Returns the value of thelinkrecord component.name()Returns the value of thenamerecord component.static @Nullable WorldTemplateparse(JsonObject node) Returns the value of therecommendedPlayersrecord component.final StringtoString()Returns a string representation of this record class.trailer()Returns the value of thetrailerrecord component.type()Returns the value of thetyperecord component.version()Returns the value of theversionrecord component.
-
Field Details
-
id
The field for theidrecord component. -
name
The field for thenamerecord component. -
version
The field for theversionrecord component. -
author
The field for theauthorrecord component. -
link
The field for thelinkrecord component. -
image
The field for theimagerecord component. -
trailer
The field for thetrailerrecord component. -
recommendedPlayers
The field for therecommendedPlayersrecord component. -
type
The field for thetyperecord component. -
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGERLnet/minecraft/client/realms/dto/WorldTemplate;LOGGER:Lorg/slf4j/Logger;intermediary field_22675Lnet/minecraft/class_4890;field_22675:Lorg/slf4j/Logger;official jLfzm;j:Lorg/slf4j/Logger;
-
-
Constructor Details
-
WorldTemplate
public WorldTemplate(String id, String name, String version, String author, String link, @Nullable @Nullable String image, String trailer, String recommendedPlayers, WorldTemplate.WorldTemplateType type) Creates an instance of aWorldTemplaterecord class.- Parameters:
id- the value for theidrecord componentname- the value for thenamerecord componentversion- the value for theversionrecord componentauthor- the value for theauthorrecord componentlink- the value for thelinkrecord componentimage- the value for theimagerecord componenttrailer- the value for thetrailerrecord componentrecommendedPlayers- the value for therecommendedPlayersrecord componenttype- the value for thetyperecord component
-
-
Method Details
-
parse
- Mappings:
Namespace Name Mixin selector named parseLnet/minecraft/client/realms/dto/WorldTemplate;parse(Lcom/google/gson/JsonObject;)Lnet/minecraft/client/realms/dto/WorldTemplate;intermediary method_25096Lnet/minecraft/class_4890;method_25096(Lcom/google/gson/JsonObject;)Lnet/minecraft/class_4890;official aLfzm;a(Lcom/google/gson/JsonObject;)Lfzm;
-
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. -
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. -
equals
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 withObjects::equals(Object,Object). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
author
Returns the value of theauthorrecord component.- Returns:
- the value of the
authorrecord component
-
link
Returns the value of thelinkrecord component.- Returns:
- the value of the
linkrecord component
-
image
Returns the value of theimagerecord component.- Returns:
- the value of the
imagerecord component
-
trailer
Returns the value of thetrailerrecord component.- Returns:
- the value of the
trailerrecord component
-
recommendedPlayers
Returns the value of therecommendedPlayersrecord component.- Returns:
- the value of the
recommendedPlayersrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-