aboutsummaryrefslogtreecommitdiff
path: root/src/Java/binnie/craftgui/extratrees/kitchen/ControlSlotGlassware.java
blob: fa7cd3df843bb6efeb4911c95e66aca9e90fe837 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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);
  }
}