use of com.codetaylor.mc.artisanworktables.modules.worktables.gui.AWGuiContainerBase in project artisan-worktables by codetaylor.
the class GuiElementButtonClearAll method elementIsVisible.
@Override
public boolean elementIsVisible(int mouseX, int mouseY) {
AWGuiContainerBase gui = (AWGuiContainerBase) this.guiBase;
TileEntityBase tileEntity = gui.getTileEntity();
return tileEntity.isCreative();
}
use of com.codetaylor.mc.artisanworktables.modules.worktables.gui.AWGuiContainerBase in project artisan-worktables by codetaylor.
the class GuiElementButtonExportShapeless method elementIsVisible.
@Override
public boolean elementIsVisible(int mouseX, int mouseY) {
AWGuiContainerBase gui = (AWGuiContainerBase) this.guiBase;
TileEntityBase tileEntity = gui.getTileEntity();
return tileEntity.isCreative();
}
use of com.codetaylor.mc.artisanworktables.modules.worktables.gui.AWGuiContainerBase in project artisan-worktables by codetaylor.
the class GuiElementButtonLocked method elementIsVisible.
@Override
public boolean elementIsVisible(int mouseX, int mouseY) {
AWGuiContainerBase gui = (AWGuiContainerBase) this.guiBase;
TileEntityBase tileEntity = gui.getTileEntity();
return !tileEntity.isCreative();
}
use of com.codetaylor.mc.artisanworktables.modules.worktables.gui.AWGuiContainerBase in project artisan-worktables by codetaylor.
the class GuiElementButtonLocked 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();
ModuleWorktables.PACKET_SERVICE.sendToServer(new CSPacketWorktableLockedModeToggle(tileEntity.getPos()));
}
use of com.codetaylor.mc.artisanworktables.modules.worktables.gui.AWGuiContainerBase in project artisan-worktables by codetaylor.
the class GuiElementButtonLocked method tooltipTextGet.
@Override
public List<String> tooltipTextGet(List<String> tooltip) {
AWGuiContainerBase gui = (AWGuiContainerBase) this.guiBase;
TileEntityBase tileEntity = gui.getTileEntity();
if (tileEntity.isLocked()) {
tooltip.add(I18n.translateToLocal("gui.artisanworktables.tooltip.button.locked.enabled"));
} else {
tooltip.add(I18n.translateToLocal("gui.artisanworktables.tooltip.button.locked.disabled"));
}
return tooltip;
}
Aggregations