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 aLegacyDialogue
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebackgroundColor
record component.final boolean
Indicates whether some other object is "equal to" this one.int
Returns the value of thefloatingUpTicks
record component.static LegacyDialogue
fromProfessorDialogue
(ProfessorDialogue professorDialogue) final int
hashCode()
Returns a hash code value for this object.icon()
Returns the value of theicon
record component.boolean
Returns the value of theleftHandSide
record component.pages()
Returns the value of thepages
record component.Returns the value of therenderingHandler
record component.Returns the value of thetextColor
record component.final String
toString()
Returns a string representation of this record class.Returns the value of thewatermark
record 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 aLegacyDialogue
record class.- Parameters:
pages
- the value for thepages
record componentrenderingHandler
- the value for therenderingHandler
record componentleftHandSide
- the value for theleftHandSide
record componentfloatingUpTicks
- the value for thefloatingUpTicks
record componenttextColor
- the value for thetextColor
record componentbackgroundColor
- the value for thebackgroundColor
record componenticon
- the value for theicon
record componentwatermark
- the value for thewatermark
record 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 thepages
record component.- Returns:
- the value of the
pages
record component
-
renderingHandler
Returns the value of therenderingHandler
record component.- Returns:
- the value of the
renderingHandler
record component
-
leftHandSide
public boolean leftHandSide()Returns the value of theleftHandSide
record component.- Returns:
- the value of the
leftHandSide
record component
-
floatingUpTicks
public int floatingUpTicks()Returns the value of thefloatingUpTicks
record component.- Returns:
- the value of the
floatingUpTicks
record component
-
textColor
Returns the value of thetextColor
record component.- Returns:
- the value of the
textColor
record component
-
backgroundColor
Returns the value of thebackgroundColor
record component.- Returns:
- the value of the
backgroundColor
record component
-
icon
Returns the value of theicon
record component.- Returns:
- the value of the
icon
record component
-
watermark
Returns the value of thewatermark
record component.- Returns:
- the value of the
watermark
record component
-