|
61 | 61 |
|
62 | 62 | public class JeiMiniaturizationCraftingCategory implements IRecipeCategory<MiniaturizationRecipe> { |
63 | 63 |
|
64 | | - public static final ResourceLocation UID = ResourceLocation.fromNamespaceAndPath(CompactCrafting.MOD_ID, "miniaturization"); |
| 64 | + public static final ResourceLocation UID = CompactCrafting.modRL("miniaturization"); |
65 | 65 | public static final RecipeType<MiniaturizationRecipe> RECIPE_TYPE = new RecipeType<>(UID, MiniaturizationRecipe.class); |
66 | 66 |
|
67 | 67 | private final IDrawable icon; |
@@ -108,7 +108,7 @@ public JeiMiniaturizationCraftingCategory(IGuiHelper guiHelper) { |
108 | 108 | this.background = guiHelper.createBlankDrawable(width, height); |
109 | 109 | this.slotDrawable = guiHelper.getSlotDrawable(); |
110 | 110 | this.icon = guiHelper.createDrawableIngredient(VanillaTypes.ITEM_STACK, new ItemStack(CCBlocks.FIELD_PROJECTOR_BLOCK.get())); |
111 | | - this.arrowOutputs = guiHelper.createDrawable(ResourceLocation.fromNamespaceAndPath(CompactCrafting.MOD_ID, "textures/gui/jei-arrow-outputs.png"), 0, 0, 24, 19); |
| 111 | + this.arrowOutputs = guiHelper.createDrawable(CompactCrafting.modRL("textures/gui/jei-arrow-outputs.png"), 0, 0, 24, 19); |
112 | 112 |
|
113 | 113 | this.blocks = Minecraft.getInstance().getBlockRenderer(); |
114 | 114 | this.previewLevel = null; |
@@ -315,12 +315,12 @@ public void draw(MiniaturizationRecipe recipe, IRecipeSlotsView slots, GuiGraphi |
315 | 315 | Window mainWindow = Minecraft.getInstance().getWindow(); |
316 | 316 |
|
317 | 317 | drawScaledTexture(guiGraphics, |
318 | | - ResourceLocation.fromNamespaceAndPath(CompactCrafting.MOD_ID, "textures/gui/jei-arrow-field.png"), |
| 318 | + CompactCrafting.modRL("textures/gui/jei-arrow-field.png"), |
319 | 319 | new ScreenArea(7, 20, 17, 22), |
320 | 320 | 0, 0, 17, 22, 17, 22); |
321 | 321 |
|
322 | 322 | drawScaledTexture(guiGraphics, |
323 | | - ResourceLocation.fromNamespaceAndPath(CompactCrafting.MOD_ID, "textures/gui/jei-arrow-outputs.png"), |
| 323 | + CompactCrafting.modRL("textures/gui/jei-arrow-outputs.png"), |
324 | 324 | new ScreenArea(100, 25, 24, 19), |
325 | 325 | 0, 0, 24, 19, 24, 19); |
326 | 326 |
|
@@ -433,7 +433,7 @@ private void renderPreviewControls(GuiGraphics guiGraphics, AABB dims) { |
433 | 433 | mx.pushPose(); |
434 | 434 | mx.translate(0, 0, 10); |
435 | 435 |
|
436 | | - ResourceLocation sprites = ResourceLocation.fromNamespaceAndPath(CompactCrafting.MOD_ID, "textures/gui/jei-sprites.png"); |
| 436 | + ResourceLocation sprites = CompactCrafting.modRL("textures/gui/jei-sprites.png"); |
437 | 437 |
|
438 | 438 | if (exploded) { |
439 | 439 | drawScaledTexture(guiGraphics, sprites, explodeToggle, 20, 0, 20, 20, 120, 20); |
|
0 commit comments