Package org.getspout.spoutapi.packet.standard

Examples of org.getspout.spoutapi.packet.standard.MCPacket


  public static boolean canSend(Player player, Packet packet, MCCraftPacket[] packetWrappers, int packetId) {
    AtomicReference<PacketListener[]> listenerReference = (AtomicReference<PacketListener[]>) listeners[packetId];
    PacketListener[] listenerArray = listenerReference.get();
    if (listenerArray != null) {
      MCPacket wrapper = wrapPacket(packet, packetWrappers, packetId);
      for (PacketListener listener : listenerArray) {
        if (!listener.checkPacket(player, wrapper)) {
          return false;
        }
      }
View Full Code Here

TOP

Related Classes of org.getspout.spoutapi.packet.standard.MCPacket

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.