Create method that allows to change ValueObject value.

This commit is contained in:
BONNe 2019-01-17 22:38:45 +02:00
parent 2ae8a5d634
commit bd48e85fcc

View File

@ -4,7 +4,6 @@ package world.bentobox.challenges.panel;
import org.bukkit.Material;
import org.bukkit.World;
import org.bukkit.inventory.ItemStack;
import java.util.Collections;
import java.util.List;
@ -232,5 +231,15 @@ public abstract class CommonGUI
return new PanelItem(icon, name, description, false, clickHandler, false);
}
/**
* This method sets new value to ValueObject variable.
* @param value new Value of valueObject.
*/
public void setValue(Object value)
{
this.valueObject = value;
}
}