use of mod.azure.doom.client.gui.GunTableScreenHandler in project MCDoom by AzureDoom.
the class C2SMessageSelectCraft method handle.
public void handle(ServerPlayerEntity player, int index) {
ScreenHandler container = player.currentScreenHandler;
if (container instanceof GunTableScreenHandler) {
GunTableScreenHandler gunTableScreenHandler = (GunTableScreenHandler) container;
gunTableScreenHandler.setRecipeIndex(index);
gunTableScreenHandler.switchTo(index);
}
}
Aggregations