Record Class ServerBoundExplorerPacket
java.lang.Object
java.lang.Record
de.luckymcdev.foundryengine.common.network.packets.explorer.ServerBoundExplorerPacket
- All Implemented Interfaces:
AbstractPacket<ServerBoundExplorerPacket>, net.minecraft.network.protocol.common.custom.CustomPacketPayload
public record ServerBoundExplorerPacket(ServerBoundExplorerPacket.Action action, String path, String payload)
extends Record
implements AbstractPacket<ServerBoundExplorerPacket>
-
Nested Class Summary
Nested ClassesNested 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
FieldsModifier and TypeFieldDescriptionstatic final AbstractPacket.Definition<ServerBoundExplorerPacket> Fields inherited from interface AbstractPacket
GENEROUS_NBT_CODEC, MAX_FILE_CONTENT_LENGTH, MAX_LIST_ELEMENT_COUNT, MAX_MODULE_COUNT, MAX_STRING_LENGTH -
Constructor Summary
ConstructorsConstructorDescriptionServerBoundExplorerPacket(ServerBoundExplorerPacket.Action action, String path, String payload) Creates an instance of aServerBoundExplorerPacketrecord class. -
Method Summary
Modifier and TypeMethodDescriptionaction()Returns the value of theactionrecord component.final booleanIndicates whether some other object is "equal to" this one.net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, ServerBoundExplorerPacket> getCodec()net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<ServerBoundExplorerPacket> getType()voidhandleServer(net.neoforged.neoforge.network.handling.IPayloadContext ctx) final inthashCode()Returns a hash code value for this object.path()Returns the value of thepathrecord component.payload()Returns the value of thepayloadrecord component.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
-
ServerBoundExplorerPacket
public ServerBoundExplorerPacket(ServerBoundExplorerPacket.Action action, String path, String payload) Creates an instance of aServerBoundExplorerPacketrecord class.- Parameters:
action- the value for theactionrecord componentpath- the value for thepathrecord componentpayload- the value for thepayloadrecord component
-
-
Method Details
-
getType
public net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<ServerBoundExplorerPacket> getType()- Specified by:
getTypein interfaceAbstractPacket<ServerBoundExplorerPacket>
-
getBoundTo
- Specified by:
getBoundToin interfaceAbstractPacket<ServerBoundExplorerPacket>
-
getCodec
public net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, ServerBoundExplorerPacket> getCodec()- Specified by:
getCodecin interfaceAbstractPacket<ServerBoundExplorerPacket>
-
handleServer
public void handleServer(net.neoforged.neoforge.network.handling.IPayloadContext ctx) - Specified by:
handleServerin interfaceAbstractPacket<ServerBoundExplorerPacket>
-
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). -
action
Returns the value of theactionrecord component.- Returns:
- the value of the
actionrecord component
-
path
Returns the value of thepathrecord component.- Returns:
- the value of the
pathrecord component
-
payload
Returns the value of thepayloadrecord component.- Returns:
- the value of the
payloadrecord component
-