Record Class Cutscene.Subtitle
java.lang.Object
java.lang.Record
net.ixdarklord.coolcatcanvas.api.cutscene.Cutscene.Subtitle
- Record Components:
start- when it appears, in ticks from the cutscene's startduration- how long it stays
- Enclosing class:
Cutscene
public static record Cutscene.Subtitle(float start, float duration, net.minecraft.network.chat.Component text)
extends Record
A line of text shown at the foot of the screen for a while.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSubtitle(float start, float duration, net.minecraft.network.chat.Component text) Creates an instance of aSubtitlerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfloatduration()Returns the value of thedurationrecord component.floatend()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.floatstart()Returns the value of thestartrecord component.net.minecraft.network.chat.Componenttext()Returns the value of thetextrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
CODEC
-
-
Constructor Details
-
Subtitle
-
-
Method Details
-
end
public float end() -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
start
-
duration
-
text
public net.minecraft.network.chat.Component text()Returns the value of thetextrecord component.- Returns:
- the value of the
textrecord component
-