use of net.minecraft.screen.AbstractFurnaceScreenHandler in project Polymorph by TheIllusiveC4.
the class PolymorphClientMod method onInitializeClient.
@Override
public void onInitializeClient() {
PolymorphClientNetwork.setup();
ClientEventsListener.setup();
PolymorphApi.client().registerWidget(handledScreen -> {
ScreenHandler screenHandler = handledScreen.getScreenHandler();
if (screenHandler instanceof SmithingScreenHandler) {
return new PlayerRecipesWidget(handledScreen, screenHandler.slots.get(2));
} else if (screenHandler instanceof AbstractFurnaceScreenHandler) {
return new FurnaceRecipesWidget(handledScreen);
}
return null;
});
PolymorphIntegrations.clientSetup();
}
Aggregations