mirror of
https://github.com/BentoBoxWorld/Challenges.git
synced 2024-11-13 06:05:46 +01:00
Create method that allows to change ValueObject value.
This commit is contained in:
parent
2ae8a5d634
commit
bd48e85fcc
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user