Skip to content

Commit

Permalink
feat: Update Forge to 1.21
Browse files Browse the repository at this point in the history
  • Loading branch information
BlayTheNinth committed Jun 14, 2024
1 parent 2adf8fa commit 6e4bee1
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
@Mod.EventBusSubscriber(modid = CookingForBlockheads.MOD_ID)
public class CapabilityBinder {

private static final ResourceLocation itemProviderResourceKey = new ResourceLocation(CookingForBlockheads.MOD_ID, "kitchen_item_provider");
private static final ResourceLocation itemProviderResourceKey = ResourceLocation.fromNamespaceAndPath(CookingForBlockheads.MOD_ID, "kitchen_item_provider");

@SubscribeEvent
public static void attachTileEntityCapabilities(AttachCapabilitiesEvent<BlockEntity> event) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public static class ProbeInfoProvider implements IProbeInfoProvider {

@Override
public ResourceLocation getID() {
return new ResourceLocation(CookingForBlockheads.MOD_ID, CookingForBlockheads.MOD_ID);
return ResourceLocation.fromNamespaceAndPath(CookingForBlockheads.MOD_ID, CookingForBlockheads.MOD_ID);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@

public class CowJarRecipeCategory implements IRecipeCategory<CowJarRecipe> {

private static final ResourceLocation texture = new ResourceLocation(CookingForBlockheads.MOD_ID, "textures/gui/jei_cow_jar.png");
private static final ResourceLocation texture = ResourceLocation.fromNamespaceAndPath(CookingForBlockheads.MOD_ID, "textures/gui/jei_cow_jar.png");

public static final RecipeType<CowJarRecipe> TYPE = RecipeType.create(CookingForBlockheads.MOD_ID, "cow_jar", CowJarRecipe.class);
public static final ResourceLocation UID = new ResourceLocation("cookingforblockheads", "cow_jar");
public static final ResourceLocation UID = ResourceLocation.fromNamespaceAndPath("cookingforblockheads", "cow_jar");
private final IDrawableStatic background;
private final IDrawable icon;
private final IDrawableStatic overlay;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public List<Rect2i> getGuiExtraAreas(KitchenScreen containerScreen) {

@Override
public ResourceLocation getPluginUid() {
return new ResourceLocation("cookingforblockheads", "jei");
return ResourceLocation.fromNamespaceAndPath("cookingforblockheads", "jei");
}

@Override
Expand Down

0 comments on commit 6e4bee1

Please sign in to comment.