Record Class Cutscene.Marker
java.lang.Object
java.lang.Record
net.ixdarklord.coolcatcanvas.api.cutscene.Cutscene.Marker
- Enclosing class:
Cutscene
public static record Cutscene.Marker(float time, net.minecraft.resources.Identifier id)
extends Record
A named moment: when the cutscene passes it, the client fires
CutsceneEvents.MARKER with its id, for a
sound, an effect, a camera shake, anything that should land on a beat.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMarker(float time, net.minecraft.resources.Identifier id) Creates an instance of aMarkerrecord class. -
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.net.minecraft.resources.Identifierid()Returns the value of theidrecord component.floattime()Returns the value of thetimerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
CODEC
-
-
Constructor Details
-
Marker
public Marker(float time, net.minecraft.resources.Identifier id) Creates an instance of aMarkerrecord class.- Parameters:
time- the value for thetimerecord componentid- the value for theidrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
time
public float time()Returns the value of thetimerecord component.- Returns:
- the value of the
timerecord component
-
id
public net.minecraft.resources.Identifier id()Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-