Class FabricClientContext

java.lang.Object
net.tearpelato.craftcorelib.network.FabricClientContext
All Implemented Interfaces:
NetworkContext

public class FabricClientContext extends Object implements NetworkContext
  • Constructor Details

    • FabricClientContext

      public FabricClientContext(net.fabricmc.fabric.api.client.networking.v1.ClientPlayNetworking.Context ctx)
  • Method Details

    • enqueue

      public void enqueue(Runnable task)
      Specified by:
      enqueue in interface NetworkContext
    • isServer

      public boolean isServer()
      Specified by:
      isServer in interface NetworkContext
    • serverPlayer

      @Nullable public @Nullable net.minecraft.server.level.ServerPlayer serverPlayer()
      Specified by:
      serverPlayer in interface NetworkContext
    • reply

      public void reply(net.minecraft.network.protocol.common.custom.CustomPacketPayload payload)
      Specified by:
      reply in interface NetworkContext