Class MessageWrapper1_20_4<CTX>
java.lang.Object
mods.thecomputerizer.theimpossiblelibrary.api.network.message.MessageWrapperAPI<net.minecraft.server.level.ServerPlayer,CTX>
mods.thecomputerizer.theimpossiblelibrary.shared.v20.m4.network.MessageWrapper1_20_4<CTX>
- All Implemented Interfaces:
mods.thecomputerizer.theimpossiblelibrary.api.core.CoreStateAccessor,net.minecraft.network.protocol.common.custom.CustomPacketPayload
- Direct Known Subclasses:
MessageWrapper1_20_4.Client,MessageWrapper1_20_4.Server
public abstract class MessageWrapper1_20_4<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 extends Object,CTX extends Object>, mods.thecomputerizer.theimpossiblelibrary.api.network.message.MessageWrapperAPI.ServerLogin<PLAYER extends Object, CTX extends Object> -
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_20_4(io.netty.buffer.ByteBuf buf) -
Method Summary
Modifier and TypeMethodDescriptionstatic net.minecraft.network.protocol.PacketFlowgetClassFlow(Class<?> msgCls) static net.minecraft.resources.ResourceLocationgetClassID(Class<?> msgCls) static <M extends MessageWrapper1_20_4<?>>
MgetPayloadInstance(io.netty.buffer.ByteBuf buf, Object dir) static <M extends MessageWrapper1_20_4<?>>
MgetPayloadInstance(Object dir) static <B extends io.netty.buffer.ByteBuf,CTX, M extends MessageWrapper1_20_4<CTX>>
Function<B,M> streamDecoder(Object dir) final voidwrite(net.minecraft.network.FriendlyByteBuf buf) 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
id
-
Field Details
-
TYPE_BASE
- See Also:
-
-
Constructor Details
-
MessageWrapper1_20_4
protected MessageWrapper1_20_4() -
MessageWrapper1_20_4
protected MessageWrapper1_20_4(io.netty.buffer.ByteBuf buf)
-
-
Method Details
-
getPayloadInstance
-
getPayloadInstance
public static <M extends MessageWrapper1_20_4<?>> M getPayloadInstance(io.netty.buffer.ByteBuf buf, Object dir) -
getClassFlow
-
getClassID
-
streamDecoder
public static <B extends io.netty.buffer.ByteBuf,CTX, Function<B,M extends MessageWrapper1_20_4<CTX>> M> streamDecoder(Object dir) -
write
public final void write(net.minecraft.network.FriendlyByteBuf buf) - Specified by:
writein interfacenet.minecraft.network.protocol.common.custom.CustomPacketPayload
-