Record Class GuidePageChange
java.lang.Object
java.lang.Record
guideme.GuidePageChange
public record GuidePageChange(@Nullable String language, net.minecraft.resources.Identifier pageId, @Nullable ParsedGuidePage oldPage, @Nullable ParsedGuidePage newPage)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionGuidePageChange(@Nullable String language, net.minecraft.resources.Identifier pageId, @Nullable ParsedGuidePage oldPage, @Nullable ParsedGuidePage newPage) Creates an instance of aGuidePageChangerecord class.GuidePageChange(net.minecraft.resources.Identifier pageId, @Nullable ParsedGuidePage oldPage, @Nullable ParsedGuidePage newPage) Deprecated, for removal: This API element is subject to removal in a future version. -
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 Stringlanguage()Returns the value of thelanguagerecord component.@Nullable ParsedGuidePagenewPage()Returns the value of thenewPagerecord component.@Nullable ParsedGuidePageoldPage()Returns the value of theoldPagerecord component.net.minecraft.resources.IdentifierpageId()Returns the value of thepageIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GuidePageChange
@Deprecated(forRemoval=true) public GuidePageChange(net.minecraft.resources.Identifier pageId, @Nullable @Nullable ParsedGuidePage oldPage, @Nullable @Nullable ParsedGuidePage newPage) Deprecated, for removal: This API element is subject to removal in a future version. -
GuidePageChange
public GuidePageChange(@Nullable @Nullable String language, net.minecraft.resources.Identifier pageId, @Nullable @Nullable ParsedGuidePage oldPage, @Nullable @Nullable ParsedGuidePage newPage) Creates an instance of aGuidePageChangerecord class.- Parameters:
language- the value for thelanguagerecord componentpageId- the value for thepageIdrecord componentoldPage- the value for theoldPagerecord componentnewPage- the value for thenewPagerecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
language
Returns the value of thelanguagerecord component.- Returns:
- the value of the
languagerecord component
-
pageId
public net.minecraft.resources.Identifier pageId()Returns the value of thepageIdrecord component.- Returns:
- the value of the
pageIdrecord component
-
oldPage
Returns the value of theoldPagerecord component.- Returns:
- the value of the
oldPagerecord component
-
newPage
Returns the value of thenewPagerecord component.- Returns:
- the value of the
newPagerecord component
-