net.acomputerdog.BlazeLoader.event
Interface NetworkEventHandler

All Superinterfaces:
BLMod, com.mumfrey.liteloader.modconfig.Exposable, com.mumfrey.liteloader.api.Listener, com.mumfrey.liteloader.LiteMod

public interface NetworkEventHandler
extends BLMod

Interface for mods that handle network events


Nested Class Summary
static class NetworkEventHandler.PacketEventArgs
          Contains args for a packet event
 
Method Summary
 void eventClientRecieveCustomPayload(net.minecraft.client.network.NetHandlerPlayClient handler, NetworkEventHandler.PacketEventArgs args)
          Triggered when the client recieves a Custom packet sent in the name of this mod
 void eventServerRecieveCustomPayload(net.minecraft.network.NetHandlerPlayServer handler, NetworkEventHandler.PacketEventArgs args)
          Triggered when the server recieves a Custom packet sent in the name of this mod
 
Methods inherited from interface net.acomputerdog.BlazeLoader.mod.BLMod
getModDescription, getModId, getName, getNewerVersion, getVersion, isCompatibleWithEnvironment
 
Methods inherited from interface com.mumfrey.liteloader.LiteMod
init, upgradeSettings
 

Method Detail

eventClientRecieveCustomPayload

void eventClientRecieveCustomPayload(net.minecraft.client.network.NetHandlerPlayClient handler,
                                     NetworkEventHandler.PacketEventArgs args)
Triggered when the client recieves a Custom packet sent in the name of this mod

Parameters:
args - Packet arguments

eventServerRecieveCustomPayload

void eventServerRecieveCustomPayload(net.minecraft.network.NetHandlerPlayServer handler,
                                     NetworkEventHandler.PacketEventArgs args)
Triggered when the server recieves a Custom packet sent in the name of this mod

Parameters:
args - Packet arguments