Class MessageWrapper1_20_6<CTX>

java.lang.Object
mods.thecomputerizer.theimpossiblelibrary.api.network.message.MessageWrapperAPI<net.minecraft.server.level.ServerPlayer,CTX>
mods.thecomputerizer.theimpossiblelibrary.shared.v20.m6.network.MessageWrapper1_20_6<CTX>
All Implemented Interfaces:
mods.thecomputerizer.theimpossiblelibrary.api.core.CoreStateAccessor, net.minecraft.network.protocol.common.custom.CustomPacketPayload
Direct Known Subclasses:
MessageWrapper1_20_6.Client, MessageWrapper1_20_6.Server

public abstract class MessageWrapper1_20_6<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 Classes
    Modifier and Type
    Class
    Description
    static final class 
     
    static final class 
     

    Nested 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

    Fields
    Modifier and Type
    Field
    Description
    protected static final String
     

    Fields inherited from class mods.thecomputerizer.theimpossiblelibrary.api.network.message.MessageWrapperAPI

    info

    Fields 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

    Constructors
    Modifier
    Constructor
    Description
    protected
     
    protected
    MessageWrapper1_20_6(io.netty.buffer.ByteBuf buf)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static net.minecraft.network.protocol.PacketFlow
    getClassFlow(Class<?> msgCls)
     
    static <CTX, M extends MessageWrapper1_20_6<CTX>>
    net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<M>
    getClassType(Class<?> msgCls)
     
    static <M extends MessageWrapper1_20_6<?>>
    M
    getPayloadInstance(io.netty.buffer.ByteBuf buf, Object dir)
     
    static <M extends MessageWrapper1_20_6<?>>
    M
     
    static <B extends io.netty.buffer.ByteBuf, CTX, M extends MessageWrapper1_20_6<CTX>>
    net.minecraft.network.codec.StreamCodec<B,M>
     

    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, setPlayers

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

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

    type
  • Field Details

  • Constructor Details

    • MessageWrapper1_20_6

      protected MessageWrapper1_20_6()
    • MessageWrapper1_20_6

      protected MessageWrapper1_20_6(io.netty.buffer.ByteBuf buf)
  • Method Details

    • getPayloadInstance

      public static <M extends MessageWrapper1_20_6<?>> M getPayloadInstance(Object dir)
    • getPayloadInstance

      public static <M extends MessageWrapper1_20_6<?>> M getPayloadInstance(io.netty.buffer.ByteBuf buf, Object dir)
    • getClassFlow

      public static net.minecraft.network.protocol.PacketFlow getClassFlow(Class<?> msgCls)
    • getClassType

      public static <CTX, M extends MessageWrapper1_20_6<CTX>> net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<M> getClassType(Class<?> msgCls)
    • streamCodec

      public static <B extends io.netty.buffer.ByteBuf, CTX, M extends MessageWrapper1_20_6<CTX>> net.minecraft.network.codec.StreamCodec<B,M> streamCodec(Object dir)