Package net.minecraft.client.realms.dto
Record Class WorldTemplatePaginatedList
java.lang.Object
java.lang.Record
net.minecraft.client.realms.dto.WorldTemplatePaginatedList
- Record Components:
templates-page-size-total-
@Environment(CLIENT)
public record WorldTemplatePaginatedList(List<WorldTemplate> templates, int page, int size, int total)
extends Record
- Mappings:
Namespace Name named net/minecraft/client/realms/dto/WorldTemplatePaginatedListintermediary net/minecraft/class_4891official fznnamed templatesintermediary comp_5048official anamed pageintermediary comp_5049official bnamed sizeintermediary comp_5050official cnamed totalintermediary comp_5051official d
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Loggerprivate final intThe field for thepagerecord component.private final intThe field for thesizerecord component.private final List<WorldTemplate> The field for thetemplatesrecord component.private final intThe field for thetotalrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionWorldTemplatePaginatedList(int size) WorldTemplatePaginatedList(List<WorldTemplate> templates, int page, int size, int total) Creates an instance of aWorldTemplatePaginatedListrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanintpage()Returns the value of thepagerecord component.static WorldTemplatePaginatedListintsize()Returns the value of thesizerecord component.Returns the value of thetemplatesrecord component.final StringtoString()Returns a string representation of this record class.inttotal()Returns the value of thetotalrecord component.
-
Field Details
-
templates
The field for thetemplatesrecord component. -
page
private final int pageThe field for thepagerecord component. -
size
private final int sizeThe field for thesizerecord component. -
total
private final int totalThe field for thetotalrecord component. -
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGERLnet/minecraft/client/realms/dto/WorldTemplatePaginatedList;LOGGER:Lorg/slf4j/Logger;intermediary field_22680Lnet/minecraft/class_4891;field_22680:Lorg/slf4j/Logger;official eLfzn;e:Lorg/slf4j/Logger;
-
-
Constructor Details
-
WorldTemplatePaginatedList
public WorldTemplatePaginatedList(int size) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/client/realms/dto/WorldTemplatePaginatedList;<init>(I)Vintermediary <init>Lnet/minecraft/class_4891;<init>(I)Vofficial <init>Lfzn;<init>(I)V
-
WorldTemplatePaginatedList
Creates an instance of aWorldTemplatePaginatedListrecord class.
-
-
Method Details
-
isLastPage
public boolean isLastPage()- Mappings:
Namespace Name Mixin selector named isLastPageLnet/minecraft/client/realms/dto/WorldTemplatePaginatedList;isLastPage()Zintermediary method_35688Lnet/minecraft/class_4891;method_35688()Zofficial aLfzn;a()Z
-
parse
- Mappings:
Namespace Name Mixin selector named parseLnet/minecraft/client/realms/dto/WorldTemplatePaginatedList;parse(Ljava/lang/String;)Lnet/minecraft/client/realms/dto/WorldTemplatePaginatedList;intermediary method_25097Lnet/minecraft/class_4891;method_25097(Ljava/lang/String;)Lnet/minecraft/class_4891;official aLfzn;a(Ljava/lang/String;)Lfzn;
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
templates
Returns the value of thetemplatesrecord component.- Returns:
- the value of the
templatesrecord component
-
page
public int page()Returns the value of thepagerecord component.- Returns:
- the value of the
pagerecord component
-
size
public int size()Returns the value of thesizerecord component.- Returns:
- the value of the
sizerecord component
-
total
public int total()Returns the value of thetotalrecord component.- Returns:
- the value of the
totalrecord component
-