Interface CustomPacketPayload
- All Known Implementing Classes:
BeeDebugPayload
,BrainDebugPayload
,BrandPayload
,BreezeDebugPayload
,ChannelListManager.Register
,ChannelListManager.Unregister
,DiscardedPayload
,ForgePayload
,GameEventDebugPayload
,GameEventListenerDebugPayload
,GameTestAddMarkerDebugPayload
,GameTestClearMarkersDebugPayload
,GoalDebugPayload
,HiveDebugPayload
,NeighborUpdatesDebugPayload
,PathfindingDebugPayload
,PoiAddedDebugPayload
,PoiRemovedDebugPayload
,PoiTicketCountDebugPayload
,RaidsDebugPayload
,StructuresDebugPayload
,VillageSectionsDebugPayload
,WorldGenAttemptDebugPayload
public interface CustomPacketPayload
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
static final record
CustomPacketPayload.Type<T extends CustomPacketPayload>
static final record
CustomPacketPayload.TypeAndCodec<B extends FriendlyByteBuf,
T extends CustomPacketPayload> -
Method Summary
Modifier and TypeMethodDescriptionstatic <B extends io.netty.buffer.ByteBuf,
T extends CustomPacketPayload>
StreamCodec<B, T> codec
(StreamMemberEncoder<B, T> p_336135_, StreamDecoder<B, T> p_335771_) static <B extends FriendlyByteBuf>
StreamCodec<B, CustomPacketPayload> codec
(CustomPacketPayload.FallbackProvider<B> p_329573_, List<CustomPacketPayload.TypeAndCodec<? super B, ?>> p_333081_) static <T extends CustomPacketPayload>
CustomPacketPayload.Type<T> createType
(String p_331650_) CustomPacketPayload.Type
<? extends CustomPacketPayload> type()
-
Method Details
-
type
CustomPacketPayload.Type<? extends CustomPacketPayload> type() -
codec
static <B extends io.netty.buffer.ByteBuf,T extends CustomPacketPayload> StreamCodec<B,T> codec(StreamMemberEncoder<B, T> p_336135_, StreamDecoder<B, T> p_335771_) -
createType
-
codec
static <B extends FriendlyByteBuf> StreamCodec<B,CustomPacketPayload> codec(CustomPacketPayload.FallbackProvider<B> p_329573_, List<CustomPacketPayload.TypeAndCodec<? super B, ?>> p_333081_)
-