[Feature] Build for 1.19.4
This commit is contained in:
parent
8a8e73348c
commit
55930d73d5
55 changed files with 380 additions and 304 deletions
|
@ -1,5 +1,6 @@
|
|||
package org.betterx.bclib.integration.emi;
|
||||
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.gui.screens.inventory.tooltip.ClientTooltipComponent;
|
||||
import net.minecraft.resources.ResourceLocation;
|
||||
import net.minecraft.world.Container;
|
||||
|
@ -35,7 +36,7 @@ public abstract class EMIAbstractAlloyingRecipe<C extends Container, T extends R
|
|||
: EmiIngredient.of(Ingredient.EMPTY)
|
||||
);
|
||||
|
||||
this.output = List.of(EmiStack.of(recipe.getResultItem()));
|
||||
this.output = List.of(EmiStack.of(recipe.getResultItem(Minecraft.getInstance().level.registryAccess())));
|
||||
this.fuelMultiplier = fuelMultiplier;
|
||||
this.infiniBurn = infiniBurn;
|
||||
}
|
||||
|
|
|
@ -3,6 +3,7 @@ package org.betterx.bclib.integration.emi;
|
|||
import org.betterx.bclib.BCLib;
|
||||
import org.betterx.bclib.recipes.AnvilRecipe;
|
||||
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.core.Holder;
|
||||
import net.minecraft.resources.ResourceLocation;
|
||||
import net.minecraft.world.item.Item;
|
||||
|
@ -36,7 +37,7 @@ public class EMIAnvilRecipe implements EmiRecipe {
|
|||
EmiIngredient.of(recipe.getMainIngredient(), recipe.getInputCount()),
|
||||
EmiIngredient.of(Ingredient.of(hammer))
|
||||
);
|
||||
this.output = List.of(EmiStack.of(recipe.getResultItem()));
|
||||
this.output = List.of(EmiStack.of(recipe.getResultItem(Minecraft.getInstance().level.registryAccess())));
|
||||
this.category = EMIPlugin.getAnvilCategoryForLevel(recipe.getAnvilLevel());
|
||||
}
|
||||
|
||||
|
|
|
@ -67,16 +67,104 @@ public class EMIAnvilRecipeCategory extends EmiRecipeCategory {
|
|||
final int yy = y + 6 + 3;
|
||||
final Matrix4f matrix = stack.last().pose();
|
||||
|
||||
font.drawInBatch(content, xx - 1, yy - 1, 0xFF000000, false, matrix, bufferSource, false, 0, 0xF000F0);
|
||||
font.drawInBatch(content, xx, yy - 1, 0xFF000000, false, matrix, bufferSource, false, 0, 0xF000F0);
|
||||
font.drawInBatch(content, xx + 1, yy - 1, 0xFF000000, false, matrix, bufferSource, false, 0, 0xF000F0);
|
||||
font.drawInBatch(content, xx - 1, yy, 0xFF000000, false, matrix, bufferSource, false, 0, 0xF000F0);
|
||||
font.drawInBatch(content, xx + 1, yy, 0xFF000000, false, matrix, bufferSource, false, 0, 0xF000F0);
|
||||
font.drawInBatch(content, xx - 1, yy + 1, 0xFF000000, false, matrix, bufferSource, false, 0, 0xF000F0);
|
||||
font.drawInBatch(content, xx + 1, yy + 1, 0xFF000000, false, matrix, bufferSource, false, 0, 0xF000F0);
|
||||
font.drawInBatch(content, xx, yy + 1, 0xFF000000, false, matrix, bufferSource, false, 0, 0xF000F0);
|
||||
font.drawInBatch(
|
||||
content,
|
||||
xx - 1,
|
||||
yy - 1,
|
||||
0xFF000000,
|
||||
false,
|
||||
matrix,
|
||||
bufferSource,
|
||||
Font.DisplayMode.NORMAL,
|
||||
0,
|
||||
0xF000F0
|
||||
);
|
||||
font.drawInBatch(
|
||||
content,
|
||||
xx,
|
||||
yy - 1,
|
||||
0xFF000000,
|
||||
false,
|
||||
matrix,
|
||||
bufferSource,
|
||||
Font.DisplayMode.NORMAL,
|
||||
0,
|
||||
0xF000F0
|
||||
);
|
||||
font.drawInBatch(
|
||||
content,
|
||||
xx + 1,
|
||||
yy - 1,
|
||||
0xFF000000,
|
||||
false,
|
||||
matrix,
|
||||
bufferSource,
|
||||
Font.DisplayMode.NORMAL,
|
||||
0,
|
||||
0xF000F0
|
||||
);
|
||||
font.drawInBatch(
|
||||
content,
|
||||
xx - 1,
|
||||
yy,
|
||||
0xFF000000,
|
||||
false,
|
||||
matrix,
|
||||
bufferSource,
|
||||
Font.DisplayMode.NORMAL,
|
||||
0,
|
||||
0xF000F0
|
||||
);
|
||||
font.drawInBatch(
|
||||
content,
|
||||
xx + 1,
|
||||
yy,
|
||||
0xFF000000,
|
||||
false,
|
||||
matrix,
|
||||
bufferSource,
|
||||
Font.DisplayMode.NORMAL,
|
||||
0,
|
||||
0xF000F0
|
||||
);
|
||||
font.drawInBatch(
|
||||
content,
|
||||
xx - 1,
|
||||
yy + 1,
|
||||
0xFF000000,
|
||||
false,
|
||||
matrix,
|
||||
bufferSource,
|
||||
Font.DisplayMode.NORMAL,
|
||||
0,
|
||||
0xF000F0
|
||||
);
|
||||
font.drawInBatch(
|
||||
content,
|
||||
xx + 1,
|
||||
yy + 1,
|
||||
0xFF000000,
|
||||
false,
|
||||
matrix,
|
||||
bufferSource,
|
||||
Font.DisplayMode.NORMAL,
|
||||
0,
|
||||
0xF000F0
|
||||
);
|
||||
font.drawInBatch(
|
||||
content,
|
||||
xx,
|
||||
yy + 1,
|
||||
0xFF000000,
|
||||
false,
|
||||
matrix,
|
||||
bufferSource,
|
||||
Font.DisplayMode.NORMAL,
|
||||
0,
|
||||
0xF000F0
|
||||
);
|
||||
|
||||
font.drawInBatch(content, xx, yy, 0xFFFFFFFF, true, matrix, bufferSource, false, 0, 0xF000F0);
|
||||
font.drawInBatch(content, xx, yy, 0xFFFFFFFF, true, matrix, bufferSource, Font.DisplayMode.NORMAL, 0, 0xF000F0);
|
||||
bufferSource.endBatch();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue