Record Class LinearizeCutscenePacket
java.lang.Object
java.lang.Record
de.luckymcdev.foundryengine.common.network.packets.editor.LinearizeCutscenePacket
- All Implemented Interfaces:
AbstractPacket<LinearizeCutscenePacket>, net.minecraft.network.protocol.common.custom.CustomPacketPayload
public record LinearizeCutscenePacket(String cutsceneName)
extends Record
implements AbstractPacket<LinearizeCutscenePacket>
-
Nested Class Summary
Nested classes/interfaces inherited from interface AbstractPacket
AbstractPacket.Definition<T>Nested classes/interfaces inherited from interface net.minecraft.network.protocol.common.custom.CustomPacketPayload
net.minecraft.network.protocol.common.custom.CustomPacketPayload.FallbackProvider<B>, net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<T>, net.minecraft.network.protocol.common.custom.CustomPacketPayload.TypeAndCodec<B,T> -
Field Summary
FieldsFields inherited from interface AbstractPacket
GENEROUS_NBT_CODEC, MAX_FILE_CONTENT_LENGTH, MAX_LIST_ELEMENT_COUNT, MAX_MODULE_COUNT, MAX_STRING_LENGTH -
Constructor Summary
ConstructorsConstructorDescriptionLinearizeCutscenePacket(String cutsceneName) Creates an instance of aLinearizeCutscenePacketrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecutsceneNamerecord component.final booleanIndicates whether some other object is "equal to" this one.net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, LinearizeCutscenePacket> getCodec()net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<LinearizeCutscenePacket> getType()voidhandleServer(net.neoforged.neoforge.network.handling.IPayloadContext ctx) final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.Methods inherited from interface AbstractPacket
handleClient, typeMethods inherited from interface net.minecraft.network.protocol.common.custom.CustomPacketPayload
toVanillaClientbound, toVanillaServerbound
-
Field Details
-
DEFINITION
-
-
Constructor Details
-
LinearizeCutscenePacket
Creates an instance of aLinearizeCutscenePacketrecord class.- Parameters:
cutsceneName- the value for thecutsceneNamerecord component
-
-
Method Details
-
getType
public net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<LinearizeCutscenePacket> getType()- Specified by:
getTypein interfaceAbstractPacket<LinearizeCutscenePacket>
-
getBoundTo
- Specified by:
getBoundToin interfaceAbstractPacket<LinearizeCutscenePacket>
-
getCodec
public net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, LinearizeCutscenePacket> getCodec()- Specified by:
getCodecin interfaceAbstractPacket<LinearizeCutscenePacket>
-
handleServer
public void handleServer(net.neoforged.neoforge.network.handling.IPayloadContext ctx) - Specified by:
handleServerin interfaceAbstractPacket<LinearizeCutscenePacket>
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
cutsceneName
Returns the value of thecutsceneNamerecord component.- Returns:
- the value of the
cutsceneNamerecord component
-