aboutsummaryrefslogtreecommitdiff
path: root/src/Java/binnie/extrabees/apiary/ComponentExtraBeeGUI.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/Java/binnie/extrabees/apiary/ComponentExtraBeeGUI.java')
-rw-r--r--src/Java/binnie/extrabees/apiary/ComponentExtraBeeGUI.java28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/Java/binnie/extrabees/apiary/ComponentExtraBeeGUI.java b/src/Java/binnie/extrabees/apiary/ComponentExtraBeeGUI.java
new file mode 100644
index 0000000000..db2527e14c
--- /dev/null
+++ b/src/Java/binnie/extrabees/apiary/ComponentExtraBeeGUI.java
@@ -0,0 +1,28 @@
+package binnie.extrabees.apiary;
+
+import binnie.core.machines.Machine;
+import binnie.core.machines.MachineComponent;
+import binnie.core.machines.component.IInteraction.RightClick;
+import binnie.extrabees.ExtraBees;
+import binnie.extrabees.core.ExtraBeeGUID;
+import binnie.extrabees.proxy.ExtraBeesProxy;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.world.World;
+
+public class ComponentExtraBeeGUI
+ extends MachineComponent
+ implements IInteraction.RightClick
+{
+ ExtraBeeGUID id;
+
+ public ComponentExtraBeeGUI(Machine machine, ExtraBeeGUID id)
+ {
+ super(machine);
+ this.id = id;
+ }
+
+ public void onRightClick(World world, EntityPlayer player, int x, int y, int z)
+ {
+ ExtraBees.proxy.openGui(this.id, player, x, y, z);
+ }
+}