aboutsummaryrefslogtreecommitdiff
path: root/src/Java/binnie/craftgui/extratrees/kitchen/ControlSlotGlassware.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/Java/binnie/craftgui/extratrees/kitchen/ControlSlotGlassware.java')
-rw-r--r--src/Java/binnie/craftgui/extratrees/kitchen/ControlSlotGlassware.java35
1 files changed, 35 insertions, 0 deletions
diff --git a/src/Java/binnie/craftgui/extratrees/kitchen/ControlSlotGlassware.java b/src/Java/binnie/craftgui/extratrees/kitchen/ControlSlotGlassware.java
new file mode 100644
index 0000000000..fa7cd3df84
--- /dev/null
+++ b/src/Java/binnie/craftgui/extratrees/kitchen/ControlSlotGlassware.java
@@ -0,0 +1,35 @@
+package binnie.craftgui.extratrees.kitchen;
+
+import binnie.craftgui.controls.core.IControlValue;
+import binnie.craftgui.core.IWidget;
+import binnie.craftgui.minecraft.control.ControlSlotBase;
+import binnie.extratrees.alcohol.Glassware;
+import net.minecraft.item.ItemStack;
+
+public class ControlSlotGlassware
+ extends ControlSlotBase
+ implements IControlValue<Glassware>
+{
+ Glassware glassware;
+
+ public ControlSlotGlassware(IWidget parent, int x, int y, Glassware glassware)
+ {
+ super(parent, x, y);
+ this.glassware = glassware;
+ }
+
+ public Glassware getValue()
+ {
+ return this.glassware;
+ }
+
+ public void setValue(Glassware value)
+ {
+ this.glassware = value;
+ }
+
+ public ItemStack getItemStack()
+ {
+ return this.glassware.get(1);
+ }
+}