Search in sources :

Example 1 with ExchangeManagementScreen

use of com.almuradev.almura.feature.exchange.client.gui.ExchangeManagementScreen in project Almura by AlmuraDev.

the class ClientExchangeManager method handleExchangeRegistry.

/**
 * Handlers
 */
public void handleExchangeRegistry(final Set<Exchange> exchanges) {
    this.putExchanges(exchanges);
    final GuiScreen currentScreen = Minecraft.getMinecraft().currentScreen;
    if (currentScreen instanceof ExchangeManagementScreen) {
        ((ExchangeManagementScreen) currentScreen).refresh();
    }
}
Also used : ExchangeManagementScreen(com.almuradev.almura.feature.exchange.client.gui.ExchangeManagementScreen) GuiScreen(net.minecraft.client.gui.GuiScreen)

Aggregations

ExchangeManagementScreen (com.almuradev.almura.feature.exchange.client.gui.ExchangeManagementScreen)1 GuiScreen (net.minecraft.client.gui.GuiScreen)1