Interface ClientboundPacketPayload

All Superinterfaces:
BasePacketPayload, net.minecraft.network.protocol.common.custom.CustomPacketPayload
All Known Implementing Classes:
ClientboundConfigPacket, ClientboundSimpleActionPacket

public non-sealed interface ClientboundPacketPayload extends BasePacketPayload
  • Nested Class Summary

    Nested classes/interfaces inherited from interface net.createmod.catnip.net.base.BasePacketPayload

    BasePacketPayload.PacketTypeProvider

    Nested classes/interfaces inherited from interface net.minecraft.network.protocol.common.custom.CustomPacketPayload

    net.minecraft.network.protocol.common.custom.CustomPacketPayload.FallbackProvider<B extends net.minecraft.network.FriendlyByteBuf>, net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<T extends net.minecraft.network.protocol.common.custom.CustomPacketPayload>, net.minecraft.network.protocol.common.custom.CustomPacketPayload.TypeAndCodec<B extends net.minecraft.network.FriendlyByteBuf,T extends net.minecraft.network.protocol.common.custom.CustomPacketPayload>
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    handle(net.minecraft.client.player.LocalPlayer player)
    Called on the main client thread.

    Methods inherited from interface net.createmod.catnip.net.base.BasePacketPayload

    getTypeProvider, type

    Methods inherited from interface net.minecraft.network.protocol.common.custom.CustomPacketPayload

    toVanillaClientbound, toVanillaServerbound
  • Method Details

    • handle

      void handle(net.minecraft.client.player.LocalPlayer player)
      Called on the main client thread. Make sure that implementations are also annotated, or else servers may crash.