java.lang.Object
nokunami.floral_warfare.common.network.FWNet

public class FWNet extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static net.minecraftforge.network.simple.SimpleChannel
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static <MSG> void
    sendTo(net.minecraft.world.entity.player.Player player, MSG msg)
     
    static <MSG> void
    sendToALL(MSG msg)
     
    static <MSG> void
    sendToClient(net.minecraft.server.level.ServerPlayer player, MSG msg)
     
    static <MSG> void
    sendToNear(MSG msg)
     
    static <MSG> void
    sendToServer(MSG msg)
     
    static <MSG> void
    sentToTrackingChunk(net.minecraft.world.level.chunk.LevelChunk chunk, MSG msg)
     
    static <MSG> void
    sentToTrackingEntity(net.minecraft.world.entity.Entity entity, MSG msg)
     
    static <MSG> void
    sentToTrackingEntityAndPlayer(net.minecraft.world.entity.Entity entity, MSG msg)
     
    static void
     

    Methods inherited from class java.lang.Object

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

    • INSTANCE

      public static net.minecraftforge.network.simple.SimpleChannel INSTANCE
  • Constructor Details

    • FWNet

      public FWNet()
  • Method Details

    • setup

      public static void setup()
    • sendTo

      public static <MSG> void sendTo(net.minecraft.world.entity.player.Player player, MSG msg)
    • sendToServer

      public static <MSG> void sendToServer(MSG msg)
    • sentToTrackingChunk

      public static <MSG> void sentToTrackingChunk(net.minecraft.world.level.chunk.LevelChunk chunk, MSG msg)
    • sentToTrackingEntity

      public static <MSG> void sentToTrackingEntity(net.minecraft.world.entity.Entity entity, MSG msg)
    • sentToTrackingEntityAndPlayer

      public static <MSG> void sentToTrackingEntityAndPlayer(net.minecraft.world.entity.Entity entity, MSG msg)
    • sendToALL

      public static <MSG> void sendToALL(MSG msg)
    • sendToNear

      public static <MSG> void sendToNear(MSG msg)
    • sendToClient

      public static <MSG> void sendToClient(net.minecraft.server.level.ServerPlayer player, MSG msg)