Record Class ServerBoundRequestFileContentPacket

java.lang.Object
java.lang.Record
de.luckymcdev.foundryengine.common.network.packets.explorer.ServerBoundRequestFileContentPacket
All Implemented Interfaces:
AbstractPacket<ServerBoundRequestFileContentPacket>, net.minecraft.network.protocol.common.custom.CustomPacketPayload

public record ServerBoundRequestFileContentPacket(String relativePath) extends Record implements AbstractPacket<ServerBoundRequestFileContentPacket>
Sent by the client to open a specific remote file for viewing/editing. The server reads the file and responds with ClientBoundFileContentPacket. Only text files are supported; binary files are rejected server-side.
  • Field Details

  • Constructor Details

    • ServerBoundRequestFileContentPacket

      public ServerBoundRequestFileContentPacket(String relativePath)
      Creates an instance of a ServerBoundRequestFileContentPacket record class.
      Parameters:
      relativePath - the value for the relativePath record component
  • Method Details