Search in sources :

Example 1 with StoreManagementScreen

use of com.almuradev.almura.feature.store.client.gui.StoreManagementScreen in project Almura by AlmuraDev.

the class ClientStoreManager method handleStoreRegistry.

public void handleStoreRegistry(@Nullable final Set<Store> stores) {
    this.putStores(stores);
    final GuiScreen currentScreen = Minecraft.getMinecraft().currentScreen;
    if (currentScreen instanceof StoreManagementScreen) {
        ((StoreManagementScreen) currentScreen).refresh();
    }
}
Also used : StoreManagementScreen(com.almuradev.almura.feature.store.client.gui.StoreManagementScreen) GuiScreen(net.minecraft.client.gui.GuiScreen)

Aggregations

StoreManagementScreen (com.almuradev.almura.feature.store.client.gui.StoreManagementScreen)1 GuiScreen (net.minecraft.client.gui.GuiScreen)1