mirror of
https://github.com/refactorinqq/SLC-1.8.9.git
synced 2024-11-10 07:01:32 +01:00
(lol) radmir mod
This commit is contained in:
parent
76fb49d7b4
commit
a714c7c504
@ -666,7 +666,7 @@ public class Client {
|
||||
}
|
||||
|
||||
public boolean isTest() {
|
||||
return getBuildData().getBranch().equals("test");
|
||||
return getBuildData().getBranch().equals("TEST2");
|
||||
}
|
||||
|
||||
public boolean isDebug() {
|
||||
|
@ -12,6 +12,7 @@ import net.minecraft.util.ResourceLocation;
|
||||
import net.silentclient.client.Client;
|
||||
import net.silentclient.client.cosmetics.StaticResourceLocation;
|
||||
import net.silentclient.client.mixin.ducks.TextureManagerExt;
|
||||
import net.silentclient.client.mods.staff.RadmirMod;
|
||||
import net.silentclient.client.utils.ColorUtils;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
|
||||
@ -183,12 +184,14 @@ public class RenderUtil {
|
||||
OpenGlHelper.glBlendFunc((int) 770, (int) 771, (int) 1, (int) 0);
|
||||
GL11.glColor4f((float) 1.0f, (float) 1.0f, (float) 1.0f, 1f);
|
||||
ColorUtils.setColor(color);
|
||||
if(image != null) {
|
||||
if(image != null && !Client.getInstance().getModInstances().getModByClass(RadmirMod.class).isEnabled()) {
|
||||
if(mip) {
|
||||
Client.getInstance().getTextureManager().bindTextureMipmapped(image);
|
||||
} else {
|
||||
Minecraft.getMinecraft().getTextureManager().bindTexture(image);
|
||||
}
|
||||
} else {
|
||||
Client.getInstance().getTextureManager().bindTextureMipmapped(new ResourceLocation("silentclient/mods/radmir/radmir.png"));
|
||||
}
|
||||
drawModalRectWithCustomSizedTexture(x, y, 0.0f, 0.0f, width, height, width, height);
|
||||
GL11.glDepthMask((boolean) true);
|
||||
|
@ -14,10 +14,7 @@ import net.silentclient.client.mods.settings.CosmeticsMod;
|
||||
import net.silentclient.client.mods.settings.FPSBoostMod;
|
||||
import net.silentclient.client.mods.settings.GeneralMod;
|
||||
import net.silentclient.client.mods.settings.RenderMod;
|
||||
import net.silentclient.client.mods.staff.DebugNpcMod;
|
||||
import net.silentclient.client.mods.staff.FPSSpoofer;
|
||||
import net.silentclient.client.mods.staff.HitDelayFixMod;
|
||||
import net.silentclient.client.mods.staff.TestMod;
|
||||
import net.silentclient.client.mods.staff.*;
|
||||
import net.silentclient.client.mods.world.*;
|
||||
|
||||
import java.util.ArrayList;
|
||||
@ -180,6 +177,7 @@ public class ModInstances {
|
||||
mods.add(new DebugNpcMod());
|
||||
mods.add(new HitDelayFixMod());
|
||||
mods.add(new FPSSpoofer());
|
||||
mods.add(new RadmirMod());
|
||||
}
|
||||
mods.add(new NewMotionBlurMod());
|
||||
if(Client.getInstance().getAccount().getUsername().equalsIgnoreCase("fushka")) {
|
||||
|
@ -0,0 +1,27 @@
|
||||
package net.silentclient.client.mods.staff;
|
||||
|
||||
import net.silentclient.client.event.EventTarget;
|
||||
import net.silentclient.client.event.impl.EventText;
|
||||
import net.silentclient.client.mods.Mod;
|
||||
import net.silentclient.client.mods.ModCategory;
|
||||
|
||||
public class RadmirMod extends Mod {
|
||||
public RadmirMod() {
|
||||
super("Radmir Mod", ModCategory.MODS, "silentclient/mods/radmir/radmir.png");
|
||||
}
|
||||
|
||||
@EventTarget
|
||||
public void onText(EventText event) {
|
||||
event.setOutputText(this.replaceWords(event.getText(), "Radmir (курица)"));
|
||||
}
|
||||
|
||||
private String replaceWords(String input, String replacement) {
|
||||
String[] words = input.split("\\s+");
|
||||
|
||||
for (int i = 0; i < words.length; i++) {
|
||||
words[i] = replacement;
|
||||
}
|
||||
|
||||
return String.join(" ", words);
|
||||
}
|
||||
}
|
Binary file not shown.
After Width: | Height: | Size: 250 KiB |
Loading…
Reference in New Issue
Block a user