Search in sources :

Example 1 with CSPacketWorktableLockedModeToggle

use of com.codetaylor.mc.artisanworktables.modules.worktables.network.CSPacketWorktableLockedModeToggle 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()));
}
Also used : AWGuiContainerBase(com.codetaylor.mc.artisanworktables.modules.worktables.gui.AWGuiContainerBase) CSPacketWorktableLockedModeToggle(com.codetaylor.mc.artisanworktables.modules.worktables.network.CSPacketWorktableLockedModeToggle) TileEntityBase(com.codetaylor.mc.artisanworktables.modules.worktables.tile.spi.TileEntityBase)

Aggregations

AWGuiContainerBase (com.codetaylor.mc.artisanworktables.modules.worktables.gui.AWGuiContainerBase)1 CSPacketWorktableLockedModeToggle (com.codetaylor.mc.artisanworktables.modules.worktables.network.CSPacketWorktableLockedModeToggle)1 TileEntityBase (com.codetaylor.mc.artisanworktables.modules.worktables.tile.spi.TileEntityBase)1