Class MessageWrapper1_21<CTX>
java.lang.Object
mods.thecomputerizer.theimpossiblelibrary.api.network.message.MessageWrapperAPI<net.minecraft.server.level.ServerPlayer,CTX>
mods.thecomputerizer.theimpossiblelibrary.shared.v21.network.MessageWrapper1_21<CTX>
- All Implemented Interfaces:
mods.thecomputerizer.theimpossiblelibrary.api.core.CoreStateAccessor,net.minecraft.network.protocol.common.custom.CustomPacketPayload
- Direct Known Subclasses:
MessageWrapper1_21.Client,MessageWrapper1_21.Server
public abstract class MessageWrapper1_21<CTX>
extends mods.thecomputerizer.theimpossiblelibrary.api.network.message.MessageWrapperAPI<net.minecraft.server.level.ServerPlayer,CTX>
implements net.minecraft.network.protocol.common.custom.CustomPacketPayload
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final classNested classes/interfaces inherited from class mods.thecomputerizer.theimpossiblelibrary.api.network.message.MessageWrapperAPI
mods.thecomputerizer.theimpossiblelibrary.api.network.message.MessageWrapperAPI.ClientLogin<PLAYER,CTX>, mods.thecomputerizer.theimpossiblelibrary.api.network.message.MessageWrapperAPI.ServerLogin<PLAYER, CTX> 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> -
Field Summary
FieldsFields inherited from class mods.thecomputerizer.theimpossiblelibrary.api.network.message.MessageWrapperAPI
infoFields inherited from interface mods.thecomputerizer.theimpossiblelibrary.api.core.CoreStateAccessor
BOOLEAN_VALUES, FABRIC, FORGE, FORGE_OR_NEOFORGE, GAME_VERSION, JAVA_17, JAVA_21, JAVA_8, JAVA_MODULES, JAVA_VERSION, JAVA_VERSION_ASM, LEGACY, MOD_LOADER, NAMED_ENV, NEOFORGE, SRG_ENV, V12, V16, V16_OR_EARLIER, V16_OR_LATER, V18, V18_OR_EARLIER, V18_OR_LATER, V19, V19_2_OR_EARLIER, V19_4_OR_LATER, V19_OR_EARLIER, V19_OR_LATER, V20, V20_4_OR_EARLIER, V20_6_OR_LATER, V20_OR_EARLIER, V20_OR_LATER, V21, V21_OR_LATER -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedMessageWrapper1_21(io.netty.buffer.ByteBuf buf) -
Method Summary
Modifier and TypeMethodDescriptionstatic net.minecraft.network.protocol.PacketFlowgetClassFlow(Class<?> msgCls) static <CTX,M extends MessageWrapper1_21<CTX>>
net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<M> getClassType(Class<?> msgCls) static <M extends MessageWrapper1_21<?>>
MgetPayloadInstance(io.netty.buffer.ByteBuf buf, Object dir) static <M extends MessageWrapper1_21<?>>
MgetPayloadInstance(Object dir) static <B extends io.netty.buffer.ByteBuf,CTX, M extends MessageWrapper1_21<CTX>>
net.minecraft.network.codec.StreamCodec<B, M> streamCodec(Object dir) Methods inherited from class mods.thecomputerizer.theimpossiblelibrary.api.network.message.MessageWrapperAPI
classToDir, decode, decodeMessage, decodeMessage, decoder, decoder, dirName, disableDebug, enableDebug, encode, encoder, getClass, getClass, getDir, getInstance, getInstance, getInstance, getInstance, getMissingDecoders, getOppositeDir, getOrInitMissingDecoders, handle, handler, handler, initMissingDecoderCollection, innerDecoder, markFoundMissingDecoder, markMissingDecoder, send, setMessage, setMessages, setMessages, setPlayer, setPlayers, setPlayersMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.network.protocol.common.custom.CustomPacketPayload
type
-
Field Details
-
TYPE_BASE
- See Also:
-
-
Constructor Details
-
MessageWrapper1_21
protected MessageWrapper1_21() -
MessageWrapper1_21
protected MessageWrapper1_21(io.netty.buffer.ByteBuf buf)
-
-
Method Details
-
getPayloadInstance
-
getPayloadInstance
public static <M extends MessageWrapper1_21<?>> M getPayloadInstance(io.netty.buffer.ByteBuf buf, Object dir) -
getClassFlow
-
getClassType
public static <CTX,M extends MessageWrapper1_21<CTX>> net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<M> getClassType(Class<?> msgCls) -
streamCodec
public static <B extends io.netty.buffer.ByteBuf,CTX, net.minecraft.network.codec.StreamCodec<B,M extends MessageWrapper1_21<CTX>> M> streamCodec(Object dir)
-