File tree Expand file tree Collapse file tree
common/src/main/java/net/blay09/mods/cookingforblockheads/client Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -28,11 +28,11 @@ public class CookingForBlockheadsClient {
2828
2929 public static void initialize () {
3030 BalmClient .blockEntityRenderers (CookingForBlockheads .MOD_ID , ModRenderers ::initialize );
31+ BalmClient .menuScreens (CookingForBlockheads .MOD_ID , ModMenuScreens ::initialize );
3132 ModRenderers .initialize (BalmClient .getRenderers ());
32- ModScreens .initialize (BalmClient .getScreens ());
3333 ModModels .initialize (BalmClient .getModels ());
3434
35- Balm .getEvents ().onEvent (ItemTooltipEvent .class , event -> {
35+ Balm .events ().onEvent (ItemTooltipEvent .class , event -> {
3636 if (!(Minecraft .getInstance ().screen instanceof KitchenScreen screen )) {
3737 return ;
3838 }
Original file line number Diff line number Diff line change 44import net .blay09 .mods .cookingforblockheads .client .gui .screen .*;
55import net .blay09 .mods .cookingforblockheads .menu .ModMenus ;
66
7- public class ModScreens {
7+ public class ModMenuScreens {
88 public static void initialize (BalmMenuScreenRegistrar screens ) {
99 screens .register (ModMenus .spiceRack , SpiceRackScreen ::new );
1010 screens .register (ModMenus .oven , OvenScreen ::new );
Original file line number Diff line number Diff line change 11package net .blay09 .mods .cookingforblockheads .client ;
22
33import net .blay09 .mods .balm .api .client .rendering .BalmRenderers ;
4- import net .blay09 .mods .balm .client .renderer .blockentity .BalmBlockEntityRendererFactory ;
4+ import net .blay09 .mods .balm .client .renderer .blockentity .BalmBlockEntityRendererRegistrar ;
55import net .blay09 .mods .cookingforblockheads .block .ModBlocks ;
66import net .blay09 .mods .cookingforblockheads .block .entity .ModBlockEntities ;
77import net .blay09 .mods .cookingforblockheads .client .render .*;
1212
1313public class ModRenderers {
1414
15- public static void initialize (BalmBlockEntityRendererFactory blockEntityRenderers ) {
15+ public static void initialize (BalmBlockEntityRendererRegistrar blockEntityRenderers ) {
1616 blockEntityRenderers .register (ModBlockEntities .toolRack , ToolRackRenderer ::new );
1717 blockEntityRenderers .register (ModBlockEntities .milkJar , MilkJarRenderer ::new );
1818 blockEntityRenderers .register (ModBlockEntities .cowJar , CowJarRenderer ::new );
You can’t perform that action at this time.
0 commit comments