Code example for ScheduledFuture

Methods: cancel

		return tryPickUp(pet.getOwner());
	public synchronized void unprotect() 
		if (_task != null)
		_isProtected = false;
		_owner = null;
		_task = null;
	public synchronized void protect(L2PcInstance player)
		_isProtected = true;
		if ((_owner = player) == null)
			throw new NullPointerException("Trying to protect dropped item to null owner");
Stop searching for code, let great code find you!  Add Codota to your java IDE