Search in sources :

Example 1 with CSPacketWorktableCreativeToggle

use of com.codetaylor.mc.artisanworktables.modules.worktables.network.CSPacketWorktableCreativeToggle in project artisan-worktables by codetaylor.

the class GuiElementButtonCreative 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 CSPacketWorktableCreativeToggle(tileEntity.getPos()));
}
Also used : AWGuiContainerBase(com.codetaylor.mc.artisanworktables.modules.worktables.gui.AWGuiContainerBase) CSPacketWorktableCreativeToggle(com.codetaylor.mc.artisanworktables.modules.worktables.network.CSPacketWorktableCreativeToggle) TileEntityBase(com.codetaylor.mc.artisanworktables.modules.worktables.tile.spi.TileEntityBase)

Aggregations

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