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
ConstructorDescriptionFrontmatterNavigation
(String title, @Nullable net.minecraft.resources.ResourceLocation parent, int position, @Nullable net.minecraft.resources.ResourceLocation iconItemId, @Nullable Map<?, ?> iconComponents) Creates an instance of aFrontmatterNavigation
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.@Nullable Map
<?, ?> Returns the value of theiconComponents
record component.@Nullable net.minecraft.resources.ResourceLocation
Returns the value of theiconItemId
record component.@Nullable net.minecraft.resources.ResourceLocation
parent()
Returns the value of theparent
record component.int
position()
Returns the value of theposition
record component.title()
Returns the value of thetitle
record component.final String
toString()
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 aFrontmatterNavigation
record class.- Parameters:
title
- the value for thetitle
record componentparent
- the value for theparent
record componentposition
- the value for theposition
record componenticonItemId
- the value for theiconItemId
record componenticonComponents
- the value for theiconComponents
record 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 thetitle
record component.- Returns:
- the value of the
title
record component
-
parent
@Nullable public @Nullable net.minecraft.resources.ResourceLocation parent()Returns the value of theparent
record component.- Returns:
- the value of the
parent
record component
-
position
public int position()Returns the value of theposition
record component.- Returns:
- the value of the
position
record component
-
iconItemId
@Nullable public @Nullable net.minecraft.resources.ResourceLocation iconItemId()Returns the value of theiconItemId
record component.- Returns:
- the value of the
iconItemId
record component
-
iconComponents
Returns the value of theiconComponents
record component.- Returns:
- the value of the
iconComponents
record component
-