Package guideme
Record Class GuidePage
java.lang.Object
java.lang.Record
guideme.GuidePage
public record GuidePage(String sourcePack, net.minecraft.resources.ResourceLocation id, LytDocument document)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionGuidePage(String sourcePack, net.minecraft.resources.ResourceLocation id, LytDocument document) Creates an instance of aGuidePagerecord class. -
Method Summary
Modifier and TypeMethodDescriptiondocument()Returns the value of thedocumentrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.net.minecraft.resources.ResourceLocationid()Returns the value of theidrecord component.Returns the value of thesourcePackrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GuidePage
public GuidePage(String sourcePack, net.minecraft.resources.ResourceLocation id, LytDocument document) Creates an instance of aGuidePagerecord class.- Parameters:
sourcePack- the value for thesourcePackrecord componentid- the value for theidrecord componentdocument- the value for thedocumentrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
sourcePack
Returns the value of thesourcePackrecord component.- Returns:
- the value of the
sourcePackrecord component
-
id
public net.minecraft.resources.ResourceLocation id()Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
document
Returns the value of thedocumentrecord component.- Returns:
- the value of the
documentrecord component
-