Record Class LegacyDialogue
java.lang.Object
java.lang.Record
com.pixelmonmod.pixelmon.api.dialogue.professor.legacy.LegacyDialogue
public record LegacyDialogue(List<LegacyChatPage> pages, RenderingHandler renderingHandler, boolean leftHandSide, int floatingUpTicks, Color textColor, Color backgroundColor, ResourceWithFallback icon, ResourceWithFallback watermark)
extends Record
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionLegacyDialogue(List<LegacyChatPage> pages, RenderingHandler renderingHandler, boolean leftHandSide, int floatingUpTicks, Color textColor, Color backgroundColor, ResourceWithFallback icon, ResourceWithFallback watermark) Creates an instance of aLegacyDialoguerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebackgroundColorrecord component.final booleanIndicates whether some other object is "equal to" this one.intReturns the value of thefloatingUpTicksrecord component.static LegacyDialoguefromProfessorDialogue(ProfessorDialogue professorDialogue) final inthashCode()Returns a hash code value for this object.icon()Returns the value of theiconrecord component.booleanReturns the value of theleftHandSiderecord component.pages()Returns the value of thepagesrecord component.Returns the value of therenderingHandlerrecord component.Returns the value of thetextColorrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thewatermarkrecord component.
-
Field Details
-
CODEC
-
-
Constructor Details
-
LegacyDialogue
public LegacyDialogue(List<LegacyChatPage> pages, RenderingHandler renderingHandler, boolean leftHandSide, int floatingUpTicks, Color textColor, Color backgroundColor, ResourceWithFallback icon, ResourceWithFallback watermark) Creates an instance of aLegacyDialoguerecord class.- Parameters:
pages- the value for thepagesrecord componentrenderingHandler- the value for therenderingHandlerrecord componentleftHandSide- the value for theleftHandSiderecord componentfloatingUpTicks- the value for thefloatingUpTicksrecord componenttextColor- the value for thetextColorrecord componentbackgroundColor- the value for thebackgroundColorrecord componenticon- the value for theiconrecord componentwatermark- the value for thewatermarkrecord component
-
-
Method Details
-
toProfessorDialogue
-
fromProfessorDialogue
-
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 '=='. -
pages
Returns the value of thepagesrecord component.- Returns:
- the value of the
pagesrecord component
-
renderingHandler
Returns the value of therenderingHandlerrecord component.- Returns:
- the value of the
renderingHandlerrecord component
-
leftHandSide
public boolean leftHandSide()Returns the value of theleftHandSiderecord component.- Returns:
- the value of the
leftHandSiderecord component
-
floatingUpTicks
public int floatingUpTicks()Returns the value of thefloatingUpTicksrecord component.- Returns:
- the value of the
floatingUpTicksrecord component
-
textColor
Returns the value of thetextColorrecord component.- Returns:
- the value of the
textColorrecord component
-
backgroundColor
Returns the value of thebackgroundColorrecord component.- Returns:
- the value of the
backgroundColorrecord component
-
icon
Returns the value of theiconrecord component.- Returns:
- the value of the
iconrecord component
-
watermark
Returns the value of thewatermarkrecord component.- Returns:
- the value of the
watermarkrecord component
-