Class FWNet
java.lang.Object
nokunami.floral_warfare.common.network.FWNet
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <MSG> voidsendTo(net.minecraft.world.entity.player.Player player, MSG msg) static <MSG> voidsendToALL(MSG msg) static <MSG> voidsendToClient(net.minecraft.server.level.ServerPlayer player, MSG msg) static <MSG> voidsendToNear(MSG msg) static <MSG> voidsendToServer(MSG msg) static <MSG> voidsentToTrackingChunk(net.minecraft.world.level.chunk.LevelChunk chunk, MSG msg) static <MSG> voidsentToTrackingEntity(net.minecraft.world.entity.Entity entity, MSG msg) static <MSG> voidsentToTrackingEntityAndPlayer(net.minecraft.world.entity.Entity entity, MSG msg) static voidsetup()
-
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)
-