Record Class FrontmatterNavigation
java.lang.Object
java.lang.Record
guideme.compiler.FrontmatterNavigation
public record FrontmatterNavigation(String title, @Nullable net.minecraft.resources.Identifier parent, int position, @Nullable net.minecraft.resources.Identifier iconItemId, @Nullable Map<?,?> iconComponents)
extends Record
Inserts a page into the navigation tree. Null parent means top-level category.
-
Constructor Summary
ConstructorsConstructorDescriptionFrontmatterNavigation(String title, @Nullable net.minecraft.resources.Identifier parent, int position, @Nullable net.minecraft.resources.Identifier iconItemId, @Nullable Map<?, ?> iconComponents) Creates an instance of aFrontmatterNavigationrecord 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.@Nullable Map<?, ?> Returns the value of theiconComponentsrecord component.@Nullable net.minecraft.resources.IdentifierReturns the value of theiconItemIdrecord component.@Nullable net.minecraft.resources.Identifierparent()Returns the value of theparentrecord component.intposition()Returns the value of thepositionrecord component.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
FrontmatterNavigation
public FrontmatterNavigation(String title, @Nullable @Nullable net.minecraft.resources.Identifier parent, int position, @Nullable @Nullable net.minecraft.resources.Identifier iconItemId, @Nullable @Nullable Map<?, ?> iconComponents) Creates an instance of aFrontmatterNavigationrecord class.- Parameters:
title- the value for thetitlerecord componentparent- the value for theparentrecord componentposition- the value for thepositionrecord componenticonItemId- the value for theiconItemIdrecord componenticonComponents- the value for theiconComponentsrecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
parent
@Nullable public @Nullable net.minecraft.resources.Identifier parent()Returns the value of theparentrecord component.- Returns:
- the value of the
parentrecord component
-
position
public int position()Returns the value of thepositionrecord component.- Returns:
- the value of the
positionrecord component
-
iconItemId
@Nullable public @Nullable net.minecraft.resources.Identifier iconItemId()Returns the value of theiconItemIdrecord component.- Returns:
- the value of the
iconItemIdrecord component
-
iconComponents
Returns the value of theiconComponentsrecord component.- Returns:
- the value of the
iconComponentsrecord component
-