use of com.codetaylor.mc.artisanworktables.modules.worktables.network.CSPacketWorktableClear 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));
}
Aggregations