Package guideme.compiler
Record Class FrontmatterNavigation
java.lang.Object
java.lang.Record
guideme.compiler.FrontmatterNavigation
public record FrontmatterNavigation(String title, @Nullable net.minecraft.resources.ResourceLocation parent, int position, @Nullable net.minecraft.resources.ResourceLocation 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.ResourceLocation parent, int position, @Nullable net.minecraft.resources.ResourceLocation 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.ResourceLocationReturns the value of theiconItemIdrecord component.@Nullable net.minecraft.resources.ResourceLocationparent()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.ResourceLocation parent, int position, @Nullable @Nullable net.minecraft.resources.ResourceLocation 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
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 '=='. -
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
parent
@Nullable public @Nullable net.minecraft.resources.ResourceLocation 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.ResourceLocation 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
-