use of logisticspipes.asm.ClientSideOnlyMethodContent in project LogisticsPipes by RS485.
the class CPipeCleanupStatus method processPacket.
@Override
@ClientSideOnlyMethodContent
public void processPacket(EntityPlayer player) {
final ModuleCrafter module = this.getLogisticsModule(player, ModuleCrafter.class);
if (module == null) {
return;
}
module.cleanupModeIsExclude = mode;
if (Minecraft.getMinecraft().currentScreen instanceof GuiCraftingPipe) {
((GuiCraftingPipe) Minecraft.getMinecraft().currentScreen).onCleanupModeChange();
}
}
use of logisticspipes.asm.ClientSideOnlyMethodContent in project LogisticsPipes by RS485.
the class MostLikelyRecipeComponentsResponse method processPacket.
@Override
@ClientSideOnlyMethodContent
public void processPacket(EntityPlayer player) {
GuiScreen firstGui = Minecraft.getMinecraft().currentScreen;
LogisticsBaseGuiScreen gui;
if (firstGui instanceof GuiLogisticsCraftingTable) {
gui = (GuiLogisticsCraftingTable) firstGui;
} else if (firstGui instanceof GuiRequestTable) {
gui = (GuiRequestTable) firstGui;
} else {
return;
}
GuiRecipeImport importGui = null;
SubGuiScreen sub = gui.getSubGui();
while (sub != null) {
if (sub instanceof GuiRecipeImport) {
importGui = (GuiRecipeImport) sub;
break;
}
sub = sub.getSubGui();
}
if (importGui == null)
return;
importGui.handleProposePacket(response);
}
Aggregations