From f7575360db8db96b757f18300bdd2466f0a22bd0 Mon Sep 17 00:00:00 2001 From: Joseph Prezioso Jr Date: Fri, 25 Mar 2016 16:42:39 -0400 Subject: [PATCH] Setting up a class to handle Materials as GameOptions --- .../game/arcade/game/GameOptionItem.java | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/GameOptionItem.java diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/GameOptionItem.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/GameOptionItem.java new file mode 100644 index 000000000..ea006b058 --- /dev/null +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/GameOptionItem.java @@ -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; + } + +}