forked from AE2-UEL/AE2FluidCraft-Rework
-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #28 from asdflj/dev
add fluid terminal
- Loading branch information
Showing
31 changed files
with
2,274 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 55 additions & 0 deletions
55
src/main/java/com/glodblock/github/client/gui/GuiBaseFluidTerminal.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
package com.glodblock.github.client.gui; | ||
|
||
import appeng.api.storage.ITerminalHost; | ||
import appeng.container.slot.AppEngSlot; | ||
import com.glodblock.github.client.gui.container.FCBaseFluidMonitorContain; | ||
import com.glodblock.github.inventory.InventoryHandler; | ||
import com.glodblock.github.inventory.gui.GuiType; | ||
import net.minecraft.client.gui.GuiButton; | ||
import net.minecraft.entity.player.EntityPlayer; | ||
import net.minecraft.entity.player.InventoryPlayer; | ||
|
||
|
||
public class GuiBaseFluidTerminal extends GuiFCBaseFluidMonitor { | ||
protected EntityPlayer player; | ||
|
||
public GuiBaseFluidTerminal(InventoryPlayer inventoryPlayer, ITerminalHost te, FCBaseFluidMonitorContain c) { | ||
super(inventoryPlayer, te, new FCBaseFluidMonitorContain(inventoryPlayer, te)); | ||
player = inventoryPlayer.player; | ||
} | ||
|
||
@Override | ||
protected String getBackground() { | ||
return "gui/terminal.png"; | ||
} | ||
|
||
@Override | ||
protected void repositionSlot(final AppEngSlot s) { | ||
if (s.isPlayerSide()) { | ||
s.yDisplayPosition = s.getY() + this.ySize - 78 - 5; | ||
} else { | ||
s.yDisplayPosition = s.getY() + this.ySize - 78 - 3; | ||
} | ||
} | ||
|
||
@Override | ||
public void drawFG(final int offsetX, final int offsetY, final int mouseX, final int mouseY) { | ||
super.drawFG(offsetX, offsetY, mouseX, mouseY); | ||
} | ||
|
||
@Override | ||
@SuppressWarnings("unchecked") | ||
public void initGui() { | ||
super.initGui(); | ||
} | ||
|
||
@Override | ||
protected void actionPerformed(final GuiButton btn) { | ||
if (btn == craftingStatusBtn) { | ||
InventoryHandler.switchGui(GuiType.FLUID_PAT_TERM_CRAFTING_STATUS); | ||
} else { | ||
super.actionPerformed(btn); | ||
} | ||
} | ||
|
||
} |
Oops, something went wrong.