Record Class CutsceneLength
java.lang.Object
java.lang.Record
net.thewinnt.cutscenes.time.CutsceneLength
-
Constructor Summary
ConstructorsConstructorDescriptionCutsceneLength(double length, TimeManager manager) Creates an instance of aCutsceneLengthrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.static CutsceneLengthfromJson(com.google.gson.JsonElement json) static CutsceneLengthfromNetwork(net.minecraft.network.FriendlyByteBuf buf) final inthashCode()Returns a hash code value for this object.doublelength()Returns the value of thelengthrecord component.manager()Returns the value of themanagerrecord component.voidtoNetwork(net.minecraft.network.FriendlyByteBuf buf) final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CutsceneLength
Creates an instance of aCutsceneLengthrecord class.- Parameters:
length- the value for thelengthrecord componentmanager- the value for themanagerrecord component
-
-
Method Details
-
toNetwork
public void toNetwork(net.minecraft.network.FriendlyByteBuf buf) -
fromNetwork
-
fromJson
-
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. -
length
public double length()Returns the value of thelengthrecord component.- Returns:
- the value of the
lengthrecord component
-
manager
Returns the value of themanagerrecord component.- Returns:
- the value of the
managerrecord component
-