Class Network1_12_2

java.lang.Object
mods.thecomputerizer.theimpossiblelibrary.legacy.v12.m2.network.Network1_12_2
All Implemented Interfaces:
mods.thecomputerizer.theimpossiblelibrary.api.network.NetworkAPI<net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper, net.minecraftforge.fml.relauncher.Side>

public class Network1_12_2 extends Object implements mods.thecomputerizer.theimpossiblelibrary.api.network.NetworkAPI<net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper, net.minecraftforge.fml.relauncher.Side>
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraftforge.fml.relauncher.Side
     
    net.minecraftforge.fml.relauncher.Side
     
    net.minecraftforge.fml.relauncher.Side
     
    net.minecraftforge.fml.relauncher.Side
     
    net.minecraftforge.fml.relauncher.Side
     
    getNameFromDir(net.minecraftforge.fml.relauncher.Side side)
     
    net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper
     
    net.minecraftforge.fml.relauncher.Side
    getOppositeDir(net.minecraftforge.fml.relauncher.Side side)
     
    boolean
    isDirLogin(net.minecraftforge.fml.relauncher.Side d)
     
    boolean
    isDirToClient(net.minecraftforge.fml.relauncher.Side side)
     
    mods.thecomputerizer.theimpossiblelibrary.api.resource.ResourceLocationAPI<?>
    readResourceLocation(io.netty.buffer.ByteBuf buf)
     
    mods.thecomputerizer.theimpossiblelibrary.api.tag.CompoundTagAPI<?>
    readTag(io.netty.buffer.ByteBuf buf)
     
    void
    registerMessage(mods.thecomputerizer.theimpossiblelibrary.api.network.message.MessageDirectionInfo<net.minecraftforge.fml.relauncher.Side> dir, int id)
     
    <P, M extends mods.thecomputerizer.theimpossiblelibrary.api.network.message.MessageWrapperAPI<?,?>>
    void
    sendToPlayer(M message, P player)
     
    <M extends mods.thecomputerizer.theimpossiblelibrary.api.network.message.MessageWrapperAPI<?,?>>
    void
    sendToServer(M message)
     
    <CTX> mods.thecomputerizer.theimpossiblelibrary.api.network.message.MessageWrapperAPI<?,CTX>
    wrapMessage(net.minecraftforge.fml.relauncher.Side side, mods.thecomputerizer.theimpossiblelibrary.api.network.message.MessageAPI<CTX> message)
     
    <CTX> mods.thecomputerizer.theimpossiblelibrary.api.network.message.MessageWrapperAPI<?,CTX>
    wrapMessages(net.minecraftforge.fml.relauncher.Side side, Collection<mods.thecomputerizer.theimpossiblelibrary.api.network.message.MessageAPI<CTX>> messages)
     
    <CTX> mods.thecomputerizer.theimpossiblelibrary.api.network.message.MessageWrapperAPI<?,CTX>
    wrapMessages(net.minecraftforge.fml.relauncher.Side side, mods.thecomputerizer.theimpossiblelibrary.api.network.message.MessageAPI<CTX>... messages)
     
    void
    writeTag(io.netty.buffer.ByteBuf buf, mods.thecomputerizer.theimpossiblelibrary.api.tag.CompoundTagAPI<?> tag)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Network1_12_2

      public Network1_12_2()
  • Method Details

    • getDirFromName

      public net.minecraftforge.fml.relauncher.Side getDirFromName(String name)
      Specified by:
      getDirFromName in interface mods.thecomputerizer.theimpossiblelibrary.api.network.NetworkAPI<net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper, net.minecraftforge.fml.relauncher.Side>
    • getNameFromDir

      public String getNameFromDir(net.minecraftforge.fml.relauncher.Side side)
      Specified by:
      getNameFromDir in interface mods.thecomputerizer.theimpossiblelibrary.api.network.NetworkAPI<net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper, net.minecraftforge.fml.relauncher.Side>
    • getDirToClient

      public net.minecraftforge.fml.relauncher.Side getDirToClient()
      Specified by:
      getDirToClient in interface mods.thecomputerizer.theimpossiblelibrary.api.network.NetworkAPI<net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper, net.minecraftforge.fml.relauncher.Side>
    • getDirToClientLogin

      public net.minecraftforge.fml.relauncher.Side getDirToClientLogin()
      Specified by:
      getDirToClientLogin in interface mods.thecomputerizer.theimpossiblelibrary.api.network.NetworkAPI<net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper, net.minecraftforge.fml.relauncher.Side>
    • getDirToServer

      public net.minecraftforge.fml.relauncher.Side getDirToServer()
      Specified by:
      getDirToServer in interface mods.thecomputerizer.theimpossiblelibrary.api.network.NetworkAPI<net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper, net.minecraftforge.fml.relauncher.Side>
    • getDirToServerLogin

      public net.minecraftforge.fml.relauncher.Side getDirToServerLogin()
      Specified by:
      getDirToServerLogin in interface mods.thecomputerizer.theimpossiblelibrary.api.network.NetworkAPI<net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper, net.minecraftforge.fml.relauncher.Side>
    • getOppositeDir

      public net.minecraftforge.fml.relauncher.Side getOppositeDir(net.minecraftforge.fml.relauncher.Side side)
      Specified by:
      getOppositeDir in interface mods.thecomputerizer.theimpossiblelibrary.api.network.NetworkAPI<net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper, net.minecraftforge.fml.relauncher.Side>
    • wrapMessage

      public <CTX> mods.thecomputerizer.theimpossiblelibrary.api.network.message.MessageWrapperAPI<?,CTX> wrapMessage(net.minecraftforge.fml.relauncher.Side side, mods.thecomputerizer.theimpossiblelibrary.api.network.message.MessageAPI<CTX> message)
      Specified by:
      wrapMessage in interface mods.thecomputerizer.theimpossiblelibrary.api.network.NetworkAPI<net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper, net.minecraftforge.fml.relauncher.Side>
    • wrapMessages

      public <CTX> mods.thecomputerizer.theimpossiblelibrary.api.network.message.MessageWrapperAPI<?,CTX> wrapMessages(net.minecraftforge.fml.relauncher.Side side, mods.thecomputerizer.theimpossiblelibrary.api.network.message.MessageAPI<CTX>... messages)
      Specified by:
      wrapMessages in interface mods.thecomputerizer.theimpossiblelibrary.api.network.NetworkAPI<net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper, net.minecraftforge.fml.relauncher.Side>
    • wrapMessages

      public <CTX> mods.thecomputerizer.theimpossiblelibrary.api.network.message.MessageWrapperAPI<?,CTX> wrapMessages(net.minecraftforge.fml.relauncher.Side side, Collection<mods.thecomputerizer.theimpossiblelibrary.api.network.message.MessageAPI<CTX>> messages)
      Specified by:
      wrapMessages in interface mods.thecomputerizer.theimpossiblelibrary.api.network.NetworkAPI<net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper, net.minecraftforge.fml.relauncher.Side>
    • getNetwork

      public net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper getNetwork()
      Specified by:
      getNetwork in interface mods.thecomputerizer.theimpossiblelibrary.api.network.NetworkAPI<net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper, net.minecraftforge.fml.relauncher.Side>
    • isDirToClient

      public boolean isDirToClient(net.minecraftforge.fml.relauncher.Side side)
      Specified by:
      isDirToClient in interface mods.thecomputerizer.theimpossiblelibrary.api.network.NetworkAPI<net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper, net.minecraftforge.fml.relauncher.Side>
    • isDirLogin

      public boolean isDirLogin(net.minecraftforge.fml.relauncher.Side d)
      Specified by:
      isDirLogin in interface mods.thecomputerizer.theimpossiblelibrary.api.network.NetworkAPI<net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper, net.minecraftforge.fml.relauncher.Side>
    • readResourceLocation

      public mods.thecomputerizer.theimpossiblelibrary.api.resource.ResourceLocationAPI<?> readResourceLocation(io.netty.buffer.ByteBuf buf)
      Specified by:
      readResourceLocation in interface mods.thecomputerizer.theimpossiblelibrary.api.network.NetworkAPI<net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper, net.minecraftforge.fml.relauncher.Side>
    • readTag

      public mods.thecomputerizer.theimpossiblelibrary.api.tag.CompoundTagAPI<?> readTag(io.netty.buffer.ByteBuf buf)
      Specified by:
      readTag in interface mods.thecomputerizer.theimpossiblelibrary.api.network.NetworkAPI<net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper, net.minecraftforge.fml.relauncher.Side>
    • registerMessage

      public void registerMessage(mods.thecomputerizer.theimpossiblelibrary.api.network.message.MessageDirectionInfo<net.minecraftforge.fml.relauncher.Side> dir, int id)
      Specified by:
      registerMessage in interface mods.thecomputerizer.theimpossiblelibrary.api.network.NetworkAPI<net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper, net.minecraftforge.fml.relauncher.Side>
    • sendToPlayer

      public <P, M extends mods.thecomputerizer.theimpossiblelibrary.api.network.message.MessageWrapperAPI<?,?>> void sendToPlayer(M message, P player)
      Specified by:
      sendToPlayer in interface mods.thecomputerizer.theimpossiblelibrary.api.network.NetworkAPI<net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper, net.minecraftforge.fml.relauncher.Side>
    • sendToServer

      public <M extends mods.thecomputerizer.theimpossiblelibrary.api.network.message.MessageWrapperAPI<?,?>> void sendToServer(M message)
      Specified by:
      sendToServer in interface mods.thecomputerizer.theimpossiblelibrary.api.network.NetworkAPI<net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper, net.minecraftforge.fml.relauncher.Side>
    • writeTag

      public void writeTag(io.netty.buffer.ByteBuf buf, mods.thecomputerizer.theimpossiblelibrary.api.tag.CompoundTagAPI<?> tag)
      Specified by:
      writeTag in interface mods.thecomputerizer.theimpossiblelibrary.api.network.NetworkAPI<net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper, net.minecraftforge.fml.relauncher.Side>