Interface PacketBase
- All Superinterfaces:
net.minecraft.network.protocol.common.custom.CustomPacketPayload
- All Known Implementing Classes:
ClientboundHorseDataSyncPacket,ClientboundOwnerSyncShowStatsPacket,ClientboundPlayWhistlePacket,ServerboundPressKeyPacket
public interface PacketBase
extends net.minecraft.network.protocol.common.custom.CustomPacketPayload
-
Nested Class Summary
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 TypeMethodDescriptionvoidhandle(net.minecraft.world.entity.player.Player player) Runs on the main thread of the receiving side.Methods inherited from interface net.minecraft.network.protocol.common.custom.CustomPacketPayload
type
-
Method Details
-
handle
void handle(net.minecraft.world.entity.player.Player player) Runs on the main thread of the receiving side.playeris the sender for serverbound packets and the local player for clientbound ones.
-