Skip to content

Commit

Permalink
kekw
Browse files Browse the repository at this point in the history
  • Loading branch information
Crimply committed Sep 29, 2022
1 parent 816d636 commit f1138a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ public void drawScreen(int mouseX, int mouseY, float partialTicks) {
int color2 = ColorUtil.toARGB(ClickGuiModule.INSTANCE.BGRed.getValue(), ClickGuiModule.INSTANCE.BGGreen.getValue(), ClickGuiModule.INSTANCE.BGBlue.getValue(), ClickGuiModule.INSTANCE.BGalpha.getValue());
int color3 = ClickGuiModule.INSTANCE.BGalpha.getValue();
RenderUtil.drawRect(this.x - 1f, (float)this.y - 2.5f, this.x + 1f + this.width, this.y + this.height - 5.0f, ColorUtil.toARGB(255,255,255,255));//0x77FB4242, 0x77FB4242);
RenderUtil.drawRect(this.x, (float)this.y - 1.5f, this.x + this.width, this.y + this.height - 6, color);//0x77FB4242, 0x77FB4242);
RenderUtil.drawRect(this.x, (float)this.y - 1f, this.x + this.width, this.y + this.height - 6, color);//0x77FB4242, 0x77FB4242);

if (this.open) {
RenderUtil.drawRect(this.x -1f, (float)this.y + 12.5f, this.x + this.width + 1f, this.open ? (float)(this.y + this.height + 1f) + totalItemHeight : (float)(this.y + this.height - 1), ColorUtil.toARGB(255,255,255,color3));//1996488704
RenderUtil.drawRect(this.x -1f, (float)this.y + 12.5f, this.x + this.width + 1f, this.open ? (float)(this.y + this.height + 1f) + totalItemHeight : (float)(this.y + this.height - 1), ColorUtil.toARGB(255,255,255,255));//1996488704
RenderUtil.drawRect(this.x, (float)this.y + 12.5f, this.x + this.width, this.open ? (float)(this.y + this.height) + totalItemHeight : (float)(this.y + this.height - 1), color2);//1996488704
}
Claudius.textManager.drawStringWithShadow(this.getName(), (float) this.x + 3.0f, (float) this.y - 4.0f - (float) ClickGui.getClickGui().getTextOffset(), -1);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,23 +1,15 @@
package me.crimp.claudius.mod.modules.render;

import me.crimp.claudius.managers.ColorManager;
import me.crimp.claudius.mod.modules.Module;
import me.crimp.claudius.mod.modules.pvp.PopCounter;
import me.crimp.claudius.mod.setting.Setting;
import me.crimp.claudius.utils.RenderUtil;
import net.minecraft.entity.effect.EntityLightningBolt;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.init.SoundEvents;
import net.minecraft.util.math.Vec3d;

import java.util.ArrayList;
import java.util.ConcurrentModificationException;


public class DeathEffect extends Module {
private static DeathEffect INSTANCE = new DeathEffect();
private final Setting<Boolean> sound = register(new Setting<>("sound", true, ""));
private final Setting<Integer> numberSound = register(new Setting<>("numberSound", 1, 1, 10));

public DeathEffect() {
super("DeathEffect", "DeathEffect", Category.RENDER, true, false, false);
Expand All @@ -29,16 +21,6 @@ public static DeathEffect getInstance() {
}
return INSTANCE;
}

final Object sync = new Object();

@Override
public void onUpdate() {
if (mc.world == null) {
return;
}
}

public void onDeath(EntityPlayer player) {
mc.world.spawnEntity(new EntityLightningBolt(mc.world, player.posX, player.posY, player.posZ, true));
if (this.sound.getValue()) {
Expand Down

0 comments on commit f1138a6

Please sign in to comment.