This commit is contained in:
ThisIsALegitUsername 2023-01-11 00:41:46 +00:00
parent 4f582c1fe8
commit 851bc61255
13 changed files with 29079 additions and 29100 deletions

View File

@ -22,7 +22,7 @@
</natures> </natures>
<filteredResources> <filteredResources>
<filter> <filter>
<id>1</id> <id>0</id>
<name></name> <name></name>
<type>30</type> <type>30</type>
<matcher> <matcher>

View File

@ -71,7 +71,7 @@ teavm {
targetType = "JAVASCRIPT"; //org.teavm.tooling.TeaVMTargetType.JAVASCRIPT; targetType = "JAVASCRIPT"; //org.teavm.tooling.TeaVMTargetType.JAVASCRIPT;
cacheDirectory = null; cacheDirectory = null;
wasmVersion = "V_0x1"; //org.teavm.backend.wasm.render.WasmBinaryVersion.V_0x1; wasmVersion = "V_0x1"; //org.teavm.backend.wasm.render.WasmBinaryVersion.V_0x1;
minHeapSize = 108; minHeapSize = 104;
maxHeapSize = 128; maxHeapSize = 128;
outOfProcess = false; outOfProcess = false;
processMemory = 1024; processMemory = 1024;

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -37,48 +37,37 @@ public class PotionHUD extends RenderModule{
int i2 = 16; int i2 = 16;
Collection<PotionEffect> collection = mc.thePlayer.getActivePotionEffects(); Collection<PotionEffect> collection = mc.thePlayer.getActivePotionEffects();
if (!collection.isEmpty()) { if (!collection.isEmpty()) {
GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F);
GlStateManager.disableLighting();
int l = 33; int l = 33;
if (collection.size() > 5) if (collection.size() > 5)
l = 132 / (collection.size() - 1); l = 132 / (collection.size() - 1);
for (PotionEffect potioneffect : mc.thePlayer.getActivePotionEffects()) { for (PotionEffect potioneffect : mc.thePlayer.getActivePotionEffects()) {
Potion potion = Potion.potionTypes[potioneffect.getPotionID()]; Potion potion = Potion.potionTypes[potioneffect.getPotionID()];
GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F); GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F);
if (potion.hasStatusIcon()) { GlStateManager.disableLighting();
GuiIngame guiIngame = new GuiIngame(mc);
GlStateManager.enableAlpha(); GlStateManager.enableAlpha();
//GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F); if (potion.hasStatusIcon()) {
GlStateManager.enableBlend();
GlStateManager.tryBlendFuncSeparate(775, 769, 1, 0);
GuiIngame guiIngame = new GuiIngame(mc);
Minecraft.getMinecraft().getTextureManager().bindTexture(new ResourceLocation("textures/gui/container/inventory.png")); Minecraft.getMinecraft().getTextureManager().bindTexture(new ResourceLocation("textures/gui/container/inventory.png"));
int i3 = potion.getStatusIconIndex(); int i3 = potion.getStatusIconIndex();
GlStateManager.tryBlendFuncSeparate(1, 1, 1, 0);
guiIngame.drawTexturedModalRect(getX() + 21 - 14, getY() + i2 - 14, 0 + i3 % 8 * 18, 198 + i3 / 8 * 18, 18, 18); guiIngame.drawTexturedModalRect(getX() + 21 - 20, getY() + i2 - 14, 0 + i3 % 8 * 18, 198 + i3 / 8 * 18, 18, 18);
} }
String s1 = I18n.format(potion.getName(), new Object[0]); String s1 = I18n.format(potion.getName(), new Object[0]);
if (potioneffect.getAmplifier() == 1) { if (potioneffect.getAmplifier() == 1) {
s1 = "I"; s1 = String.valueOf(String.valueOf(s1)) + " " + I18n.format("enchantment.level.2", new Object[0]);
} else if (potioneffect.getAmplifier() == 2) { } else if (potioneffect.getAmplifier() == 2) {
s1 = "II"; s1 = String.valueOf(String.valueOf(s1)) + " " + I18n.format("enchantment.level.3", new Object[0]);
} else if (potioneffect.getAmplifier() == 3) { } else if (potioneffect.getAmplifier() == 3) {
s1 = "III"; s1 = String.valueOf(String.valueOf(s1)) + " " + I18n.format("enchantment.level.4", new Object[0]);
} else if (potioneffect.getAmplifier() == 4) {
s1 = "IV";
} else if (potioneffect.getAmplifier() == 5) {
s1 = "V";
} else {
s1 = ("" + potioneffect.getAmplifier());
} }
mc.fontRendererObj.drawString(s1, (getX() + 21), (getY() + i2 - 14), -1, true);
mc.fontRendererObj.drawString(s1, (getX() + 21), (getY() + i2 - 14), 16777215, true);
String s2 = Potion.getDurationString(potioneffect); String s2 = Potion.getDurationString(potioneffect);
mc.fontRendererObj.drawString(s2, (getX() + 21), (getY() + i2 + 10 - 14), 8355711, true); mc.fontRendererObj.drawString(s2, (getX() + 21), (getY() + i2 + 10 - 14), -1, true);
i2 += l; i2 += l;
} }
} }
super.draw();
} }