Class MessageWrapperFabric

java.lang.Object
mods.thecomputerizer.theimpossiblelibrary.api.network.message.MessageWrapperAPI<net.minecraft.server.level.ServerPlayer, net.fabricmc.fabric.api.networking.v1.PacketSender>
mods.thecomputerizer.theimpossiblelibrary.fabric.network.MessageWrapperFabric

public class MessageWrapperFabric extends mods.thecomputerizer.theimpossiblelibrary.api.network.message.MessageWrapperAPI<net.minecraft.server.level.ServerPlayer, net.fabricmc.fabric.api.networking.v1.PacketSender>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final net.minecraft.resources.ResourceLocation
     
    protected static final net.minecraft.resources.ResourceLocation
     
    protected static final net.minecraft.resources.ResourceLocation
     
    protected static final String
     
    protected static final net.minecraft.resources.ResourceLocation
     
    protected static final net.minecraft.resources.ResourceLocation
     
    protected final net.minecraft.resources.ResourceLocation
     

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

    info
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    MessageWrapperFabric(net.minecraft.resources.ResourceLocation registryName)
     
    protected
    MessageWrapperFabric(net.minecraft.resources.ResourceLocation registryName, io.netty.buffer.ByteBuf buf)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    getInstance(io.netty.buffer.ByteBuf buf)
     
    getInstance(mods.thecomputerizer.theimpossiblelibrary.api.network.NetworkAPI<?,?> network, Object dir)
     
    getInstance(mods.thecomputerizer.theimpossiblelibrary.api.network.NetworkAPI<?,?> network, Object dir, io.netty.buffer.ByteBuf buf)
     
    static net.minecraft.resources.ResourceLocation
    getRegistryName(boolean client, boolean login)
     
    protected static boolean
    isClient(mods.thecomputerizer.theimpossiblelibrary.api.network.NetworkAPI<?,?> network, Object dir)
     
    protected static boolean
    isLogin(mods.thecomputerizer.theimpossiblelibrary.api.network.NetworkAPI<?,?> network, Object dir)
     

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

    decode, encode, handle, 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
  • Field Details

    • ID_PATH

      protected static final String ID_PATH
      See Also:
    • ID

      public static final net.minecraft.resources.ResourceLocation ID
    • ID_CLIENT_LOGIN

      protected static final net.minecraft.resources.ResourceLocation ID_CLIENT_LOGIN
    • ID_CLIENT_PLAY

      protected static final net.minecraft.resources.ResourceLocation ID_CLIENT_PLAY
    • ID_SERVER_LOGIN

      protected static final net.minecraft.resources.ResourceLocation ID_SERVER_LOGIN
    • ID_SERVER_PLAY

      protected static final net.minecraft.resources.ResourceLocation ID_SERVER_PLAY
    • registryName

      protected final net.minecraft.resources.ResourceLocation registryName
  • Constructor Details

    • MessageWrapperFabric

      protected MessageWrapperFabric(net.minecraft.resources.ResourceLocation registryName)
    • MessageWrapperFabric

      protected MessageWrapperFabric(net.minecraft.resources.ResourceLocation registryName, io.netty.buffer.ByteBuf buf)
  • Method Details

    • getInstance

      public static MessageWrapperFabric getInstance()
    • getInstance

      public static MessageWrapperFabric getInstance(io.netty.buffer.ByteBuf buf)
    • getInstance

      public static MessageWrapperFabric getInstance(mods.thecomputerizer.theimpossiblelibrary.api.network.NetworkAPI<?,?> network, Object dir)
    • getInstance

      public static MessageWrapperFabric getInstance(mods.thecomputerizer.theimpossiblelibrary.api.network.NetworkAPI<?,?> network, Object dir, io.netty.buffer.ByteBuf buf)
    • isClient

      protected static boolean isClient(mods.thecomputerizer.theimpossiblelibrary.api.network.NetworkAPI<?,?> network, Object dir)
    • isLogin

      protected static boolean isLogin(mods.thecomputerizer.theimpossiblelibrary.api.network.NetworkAPI<?,?> network, Object dir)
    • getRegistryName

      public static net.minecraft.resources.ResourceLocation getRegistryName(boolean client, boolean login)