use of com.codetaylor.mc.artisanworktables.modules.worktables.gui.AWGuiContainerBase in project artisan-worktables by codetaylor.
the class GuiElementButtonOredictLink method elementClicked.
@Override
public void elementClicked(int mouseX, int mouseY, int mouseButton) {
super.elementClicked(mouseX, mouseY, mouseButton);
AWGuiContainerBase gui = (AWGuiContainerBase) this.guiBase;
TileEntityBase tileEntity = gui.getTileEntity();
tileEntity.setOredictLinked(!tileEntity.isOreDictLinked());
}
use of com.codetaylor.mc.artisanworktables.modules.worktables.gui.AWGuiContainerBase in project artisan-worktables by codetaylor.
the class GuiElementButtonOredictLink method tooltipTextGet.
@Override
public List<String> tooltipTextGet(List<String> tooltip) {
AWGuiContainerBase gui = (AWGuiContainerBase) this.guiBase;
TileEntityBase tileEntity = gui.getTileEntity();
if (tileEntity.isOreDictLinked()) {
tooltip.add(I18n.translateToLocal("gui.artisanworktables.tooltip.button.oredict.linked"));
} else {
tooltip.add(I18n.translateToLocal("gui.artisanworktables.tooltip.button.oredict.unlinked"));
}
return tooltip;
}
use of com.codetaylor.mc.artisanworktables.modules.worktables.gui.AWGuiContainerBase in project artisan-worktables by codetaylor.
the class GuiElementButtonLocked method isLocked.
public boolean isLocked() {
AWGuiContainerBase gui = (AWGuiContainerBase) this.guiBase;
TileEntityBase tileEntity = gui.getTileEntity();
return tileEntity.isLocked();
}
use of com.codetaylor.mc.artisanworktables.modules.worktables.gui.AWGuiContainerBase in project artisan-worktables by codetaylor.
the class GuiElementButtonClearAll method elementClicked.
@Override
public void elementClicked(int mouseX, int mouseY, int mouseButton) {
super.elementClicked(mouseX, mouseY, mouseButton);
AWGuiContainerBase gui = (AWGuiContainerBase) this.guiBase;
TileEntityBase tileEntity = gui.getTileEntity();
tileEntity.oreDictMap.clearMap();
ModuleWorktables.PACKET_SERVICE.sendToServer(new CSPacketWorktableClear(tileEntity.getPos(), CSPacketWorktableClear.CLEAR_ALL));
}
use of com.codetaylor.mc.artisanworktables.modules.worktables.gui.AWGuiContainerBase in project artisan-worktables by codetaylor.
the class GuiElementButtonExportShaped method elementIsVisible.
@Override
public boolean elementIsVisible(int mouseX, int mouseY) {
AWGuiContainerBase gui = (AWGuiContainerBase) this.guiBase;
TileEntityBase tileEntity = gui.getTileEntity();
return tileEntity.isCreative();
}
Aggregations