Record Class ClientBoundExplorerPacket
java.lang.Object
java.lang.Record
de.luckymcdev.foundryengine.common.network.packets.explorer.ClientBoundExplorerPacket
- All Implemented Interfaces:
AbstractPacket<ClientBoundExplorerPacket>, net.minecraft.network.protocol.common.custom.CustomPacketPayload
public record ClientBoundExplorerPacket(ClientBoundExplorerPacket.Action action, String path, String payload, List<ClientBoundExplorerPacket.RemoteEntry> entries, List<String> resourceIds)
extends Record
implements AbstractPacket<ClientBoundExplorerPacket>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic final recordNested 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 Consumer<ClientBoundExplorerPacket> static final AbstractPacket.Definition<ClientBoundExplorerPacket> static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, ClientBoundExplorerPacket.RemoteEntry> Fields inherited from interface AbstractPacket
GENEROUS_NBT_CODEC, MAX_FILE_CONTENT_LENGTH, MAX_LIST_ELEMENT_COUNT, MAX_MODULE_COUNT, MAX_STRING_LENGTH -
Constructor Summary
ConstructorsConstructorDescriptionClientBoundExplorerPacket(ClientBoundExplorerPacket.Action action, String path, String payload, List<ClientBoundExplorerPacket.RemoteEntry> entries, List<String> resourceIds) Creates an instance of aClientBoundExplorerPacketrecord class. -
Method Summary
Modifier and TypeMethodDescriptionaction()Returns the value of theactionrecord component.entries()Returns the value of theentriesrecord component.final booleanIndicates whether some other object is "equal to" this one.net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, ClientBoundExplorerPacket> getCodec()net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<ClientBoundExplorerPacket> getType()voidhandleClient(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.Returns the value of theresourceIdsrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from interface AbstractPacket
handleServer, typeMethods inherited from interface net.minecraft.network.protocol.common.custom.CustomPacketPayload
toVanillaClientbound, toVanillaServerbound
-
Field Details
-
REMOTE_ENTRY_CODEC
public static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, ClientBoundExplorerPacket.RemoteEntry> REMOTE_ENTRY_CODEC -
DEFINITION
-
CLIENT_HANDLER
-
-
Constructor Details
-
ClientBoundExplorerPacket
public ClientBoundExplorerPacket(ClientBoundExplorerPacket.Action action, String path, String payload, List<ClientBoundExplorerPacket.RemoteEntry> entries, List<String> resourceIds) Creates an instance of aClientBoundExplorerPacketrecord class.- Parameters:
action- the value for theactionrecord componentpath- the value for thepathrecord componentpayload- the value for thepayloadrecord componententries- the value for theentriesrecord componentresourceIds- the value for theresourceIdsrecord component
-
-
Method Details
-
getType
public net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<ClientBoundExplorerPacket> getType()- Specified by:
getTypein interfaceAbstractPacket<ClientBoundExplorerPacket>
-
getBoundTo
- Specified by:
getBoundToin interfaceAbstractPacket<ClientBoundExplorerPacket>
-
getCodec
public net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, ClientBoundExplorerPacket> getCodec()- Specified by:
getCodecin interfaceAbstractPacket<ClientBoundExplorerPacket>
-
handleClient
public void handleClient(net.neoforged.neoforge.network.handling.IPayloadContext ctx) - Specified by:
handleClientin interfaceAbstractPacket<ClientBoundExplorerPacket>
-
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
-
entries
Returns the value of theentriesrecord component.- Returns:
- the value of the
entriesrecord component
-
resourceIds
-