Setting up a class to handle Materials as GameOptions

This commit is contained in:
Joseph Prezioso Jr 2016-03-25 16:42:39 -04:00
parent 05ede7910e
commit f7575360db

View File

@ -0,0 +1,28 @@
package nautilus.game.arcade.game;
import org.bukkit.Material;
import org.bukkit.material.MaterialData;
public class GameOptionItem extends GameOption {
private MaterialData _optionMaterialData;
//GameOptionItem will be the parent class of any materials/tools/etc. that may need to be created as GameOptions
@SuppressWarnings("deprecation")
public GameOptionItem(MaterialData _optMat, String optName, String optDesc) {
super(optName, optDesc);
// TODO Auto-generated constructor stub
_optionMaterialData = _optMat;
}
public MaterialData GetOption()
{
return _optionMaterialData;
}
public void setOption(MaterialData _optMatData)
{
_optionMaterialData = _optMatData;
}
}