Setting up a class to handle Materials as GameOptions
This commit is contained in:
parent
05ede7910e
commit
f7575360db
@ -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;
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user