Class ProxyPackListener

java.lang.Object
de.themoep.resourcepacksplugin.sponge.listeners.ProxyPackListener
All Implemented Interfaces:
org.spongepowered.api.network.RawDataListener

public class ProxyPackListener extends Object implements org.spongepowered.api.network.RawDataListener
Created by Phoenix616 on 02.02.2016.
  • Constructor Details

  • Method Details

    • handlePayload

      public void handlePayload(org.spongepowered.api.network.ChannelBuf data, org.spongepowered.api.network.RemoteConnection connection, org.spongepowered.api.Platform.Type side)
      Specified by:
      handlePayload in interface org.spongepowered.api.network.RawDataListener
    • registerSubChannel

      public ProxyPackReaction registerSubChannel(String name, ProxyPackReaction reaction)
      Register a new sub channel with this listener on the channel "rp:plugin"
      Parameters:
      name - The name of the sub channel, case sensitive
      reaction - The reaction that should happen
      Returns:
      The previously registered Reaction or null