Package guideme
Record Class GuidePageChange
java.lang.Object
java.lang.Record
guideme.GuidePageChange
public record GuidePageChange(net.minecraft.resources.ResourceLocation pageId, @Nullable ParsedGuidePage oldPage, @Nullable ParsedGuidePage newPage)
extends Record
-
Constructor Summary
ConstructorDescriptionGuidePageChange
(net.minecraft.resources.ResourceLocation pageId, @Nullable ParsedGuidePage oldPage, @Nullable ParsedGuidePage newPage) Creates an instance of aGuidePageChange
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 ParsedGuidePage
newPage()
Returns the value of thenewPage
record component.@Nullable ParsedGuidePage
oldPage()
Returns the value of theoldPage
record component.net.minecraft.resources.ResourceLocation
pageId()
Returns the value of thepageId
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
GuidePageChange
public GuidePageChange(net.minecraft.resources.ResourceLocation pageId, @Nullable @Nullable ParsedGuidePage oldPage, @Nullable @Nullable ParsedGuidePage newPage) Creates an instance of aGuidePageChange
record class.- Parameters:
pageId
- the value for thepageId
record componentoldPage
- the value for theoldPage
record componentnewPage
- the value for thenewPage
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. All components in this record class are compared withObjects::equals(Object,Object)
. -
pageId
public net.minecraft.resources.ResourceLocation pageId()Returns the value of thepageId
record component.- Returns:
- the value of the
pageId
record component
-
oldPage
Returns the value of theoldPage
record component.- Returns:
- the value of the
oldPage
record component
-
newPage
Returns the value of thenewPage
record component.- Returns:
- the value of the
newPage
record component
-