Package net.thewinnt.cutscenes.time
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
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 '=='. -
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
-