Package net.createmod.catnip.net.base
Interface ClientboundPacketPayload
- All Superinterfaces:
BasePacketPayload,net.minecraft.network.protocol.common.custom.CustomPacketPayload
- All Known Implementing Classes:
ClientboundConfigPacket,ClientboundSimpleActionPacket
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.createmod.catnip.net.base.BasePacketPayload
BasePacketPayload.PacketTypeProviderNested 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 TypeMethodDescriptionvoidhandle(net.minecraft.client.player.LocalPlayer player) Called on the main client thread.default voidhandleInternal(net.minecraft.world.entity.player.Player player) Methods inherited from interface net.createmod.catnip.net.base.BasePacketPayload
getTypeProvider, typeMethods 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. -
handleInternal
default void handleInternal(net.minecraft.world.entity.player.Player player)
-