Search in sources :

Example 1 with GunTableScreenHandler

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);
    }
}
Also used : GunTableScreenHandler(mod.azure.doom.client.gui.GunTableScreenHandler) ScreenHandler(net.minecraft.screen.ScreenHandler) GunTableScreenHandler(mod.azure.doom.client.gui.GunTableScreenHandler)

Aggregations

GunTableScreenHandler (mod.azure.doom.client.gui.GunTableScreenHandler)1 ScreenHandler (net.minecraft.screen.ScreenHandler)1