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 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 extends Object,CTX extends Object>, mods.thecomputerizer.theimpossiblelibrary.api.network.message.MessageWrapperAPI.ServerLogin<PLAYER extends Object,CTX extends Object>
  • 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_4(io.netty.buffer.ByteBuf buf)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static net.minecraft.network.protocol.PacketFlow
    getClassFlow(Class<?> msgCls)
     
    static net.minecraft.resources.ResourceLocation
    getClassID(Class<?> msgCls)
     
    static <M extends MessageWrapper1_20_4<?>>
    M
    getPayloadInstance(io.netty.buffer.ByteBuf buf, Object dir)
     
    static <M extends MessageWrapper1_20_4<?>>
    M
     
    static <B extends io.netty.buffer.ByteBuf, CTX, M extends MessageWrapper1_20_4<CTX>>
    Function<B,M>
     
    final void
    write(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, 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

    id
  • Field Details

  • Constructor Details

    • MessageWrapper1_20_4

      protected MessageWrapper1_20_4()
    • MessageWrapper1_20_4

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

    • getPayloadInstance

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

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

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

      public static net.minecraft.resources.ResourceLocation getClassID(Class<?> msgCls)
    • streamDecoder

      public static <B extends io.netty.buffer.ByteBuf, CTX, M extends MessageWrapper1_20_4<CTX>> Function<B,M> streamDecoder(Object dir)
    • write

      public final void write(net.minecraft.network.FriendlyByteBuf buf)
      Specified by:
      write in interface net.minecraft.network.protocol.common.custom.CustomPacketPayload