Code example for Collection

Methods: remove

0
		Collection listenersForPacket = (Collection)packetListeners.get(Integer.valueOf(packetID));
		if (listenersForPacket == null) {
			return; 
		} 
 
		listenersForPacket.remove(listenersForPacket);
	} 
 
	public boolean onOutgoingPacket(Player ply, int packetID, Packet packet) {
		System.err.println("onOutgoingPacket not overridden.");
		removePacketListener(true, packetID, this);
 
		return true; 
	} 
 
	public boolean onIncomingPacket(Player ply, int packetID, Packet packet) {
		System.err.println("onIncomingPacket not overridden.");
		removePacketListener(false, packetID, this);
 
		return true; 
	}