Interface BasePacketPayload

All Superinterfaces:
net.minecraft.network.protocol.common.custom.CustomPacketPayload
All Known Subinterfaces:
ClientboundPacketPayload, ServerboundPacketPayload
All Known Implementing Classes:
ClientboundConfigPacket, ClientboundSimpleActionPacket, ServerboundConfigPacket

public sealed interface BasePacketPayload extends net.minecraft.network.protocol.common.custom.CustomPacketPayload permits ClientboundPacketPayload, ServerboundPacketPayload
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
     

    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
     
    default @NotNull net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<? extends net.minecraft.network.protocol.common.custom.CustomPacketPayload>
     

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

    toVanillaClientbound, toVanillaServerbound
  • Method Details

    • getTypeProvider

    • type

      @NonExtendable @NotNull default @NotNull net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<? extends net.minecraft.network.protocol.common.custom.CustomPacketPayload> type()
      Specified by:
      type in interface net.minecraft.network.protocol.common.custom.CustomPacketPayload