Skip to content

Commit 93aa3d2

Browse files
branches
1 parent 2fc859a commit 93aa3d2

27 files changed

+985
-0
lines changed
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
//Deobfuscated with https://github.com/SimplyProgrammer/Minecraft-Deobfuscator3000 using mappings "C:\Users\u1\Documents\Java Decompiler\1.12 stable mappings"!
2+
3+
//Decompiled by Procyon!
4+
5+
package com.veteran.hack.mixin;
6+
7+
import net.minecraftforge.fml.relauncher.*;
8+
import com.veteran.hack.*;
9+
import org.spongepowered.asm.launch.*;
10+
import org.spongepowered.asm.mixin.*;
11+
import java.util.*;
12+
13+
public class MixinLoaderForge implements IFMLLoadingPlugin
14+
{
15+
private static boolean isObfuscatedEnvironment;
16+
17+
public MixinLoaderForge() {
18+
BaseMod.log.info("VETHACK mixins initialized");
19+
MixinBootstrap.init();
20+
Mixins.addConfiguration("mixins.kami.json");
21+
MixinEnvironment.getDefaultEnvironment().setObfuscationContext("searge");
22+
BaseMod.log.info(MixinEnvironment.getDefaultEnvironment().getObfuscationContext());
23+
}
24+
25+
public String[] getASMTransformerClass() {
26+
return new String[0];
27+
}
28+
29+
public String getModContainerClass() {
30+
return null;
31+
}
32+
33+
public String getSetupClass() {
34+
return null;
35+
}
36+
37+
public void injectData(final Map<String, Object> data) {
38+
MixinLoaderForge.isObfuscatedEnvironment = data.get("runtimeDeobfuscationEnabled");
39+
}
40+
41+
public String getAccessTransformerClass() {
42+
return null;
43+
}
44+
45+
static {
46+
MixinLoaderForge.isObfuscatedEnvironment = false;
47+
}
48+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
//Deobfuscated with https://github.com/SimplyProgrammer/Minecraft-Deobfuscator3000 using mappings "C:\Users\u1\Documents\Java Decompiler\1.12 stable mappings"!
2+
3+
//Decompiled by Procyon!
4+
5+
package com.veteran.hack.mixin.client;
6+
7+
import org.spongepowered.asm.mixin.*;
8+
import net.minecraft.client.entity.*;
9+
10+
@Mixin({ AbstractClientPlayer.class })
11+
public class MixinAbstractClientPlayer
12+
{
13+
}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
//Deobfuscated with https://github.com/SimplyProgrammer/Minecraft-Deobfuscator3000 using mappings "C:\Users\u1\Documents\Java Decompiler\1.12 stable mappings"!
2+
3+
//Decompiled by Procyon!
4+
5+
package com.veteran.hack.mixin.client;
6+
7+
import org.spongepowered.asm.mixin.*;
8+
import net.minecraft.block.*;
9+
import net.minecraft.world.*;
10+
import net.minecraft.entity.*;
11+
import net.minecraft.util.math.*;
12+
import org.spongepowered.asm.mixin.injection.callback.*;
13+
import com.veteran.hack.module.*;
14+
import org.spongepowered.asm.mixin.injection.*;
15+
import net.minecraft.block.state.*;
16+
import net.minecraft.block.properties.*;
17+
18+
@Mixin({ BlockLiquid.class })
19+
public class MixinBlockLiquid
20+
{
21+
@Inject(method = { "modifyAcceleration" }, at = { @At("HEAD") }, cancellable = true)
22+
public void modifyAcceleration(final World worldIn, final BlockPos pos, final Entity entityIn, final Vec3d motion, final CallbackInfoReturnable returnable) {
23+
if (ModuleManager.isModuleEnabled("Velocity")) {
24+
returnable.setReturnValue((Object)motion);
25+
returnable.cancel();
26+
}
27+
}
28+
29+
@Inject(method = { "canCollideCheck" }, at = { @At("HEAD") }, cancellable = true)
30+
public void canCollideCheck(final IBlockState blockState, final boolean b, final CallbackInfoReturnable<Boolean> callbackInfoReturnable) {
31+
callbackInfoReturnable.setReturnValue((Object)(ModuleManager.isModuleEnabled("LiquidInteract") || (b && (int)blockState.getValue((IProperty)BlockLiquid.LEVEL) == 0)));
32+
}
33+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
//Deobfuscated with https://github.com/SimplyProgrammer/Minecraft-Deobfuscator3000 using mappings "C:\Users\u1\Documents\Java Decompiler\1.12 stable mappings"!
2+
3+
//Decompiled by Procyon!
4+
5+
package com.veteran.hack.mixin.client;
6+
7+
import org.spongepowered.asm.mixin.*;
8+
import net.minecraft.block.*;
9+
import net.minecraft.world.*;
10+
import net.minecraft.util.math.*;
11+
import net.minecraft.block.state.*;
12+
import net.minecraft.entity.*;
13+
import org.spongepowered.asm.mixin.injection.callback.*;
14+
import com.veteran.hack.module.*;
15+
import com.veteran.hack.module.modules.movement.*;
16+
import org.spongepowered.asm.mixin.injection.*;
17+
18+
@Mixin({ BlockSoulSand.class })
19+
public class MixinBlockSoulSand
20+
{
21+
@Inject(method = { "onEntityCollision" }, at = { @At("HEAD") }, cancellable = true)
22+
public void onEntityCollidedWithBlock(final World worldIn, final BlockPos pos, final IBlockState state, final Entity entityIn, final CallbackInfo info) {
23+
if (ModuleManager.isModuleEnabled("NoSlowDown") && ((NoSlowDown)ModuleManager.getModuleByName("NoSlowDown")).soulSand.getValue()) {
24+
info.cancel();
25+
}
26+
}
27+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
//Deobfuscated with https://github.com/SimplyProgrammer/Minecraft-Deobfuscator3000 using mappings "C:\Users\u1\Documents\Java Decompiler\1.12 stable mappings"!
2+
3+
//Decompiled by Procyon!
4+
5+
package com.veteran.hack.mixin.client;
6+
7+
import org.spongepowered.asm.mixin.*;
8+
import net.minecraft.block.*;
9+
import net.minecraft.world.*;
10+
import net.minecraft.util.math.*;
11+
import net.minecraft.block.state.*;
12+
import net.minecraft.entity.*;
13+
import org.spongepowered.asm.mixin.injection.callback.*;
14+
import com.veteran.hack.module.*;
15+
import com.veteran.hack.module.modules.movement.*;
16+
import org.spongepowered.asm.mixin.injection.*;
17+
18+
@Mixin({ BlockWeb.class })
19+
public class MixinBlockWeb
20+
{
21+
@Inject(method = { "onEntityCollision" }, at = { @At("HEAD") }, cancellable = true)
22+
public void onEntityCollidedWithBlock(final World worldIn, final BlockPos pos, final IBlockState state, final Entity entityIn, final CallbackInfo info) {
23+
if (ModuleManager.isModuleEnabled("NoSlowDown") && ((NoSlowDown)ModuleManager.getModuleByName("NoSlowDown")).cobweb.getValue()) {
24+
info.cancel();
25+
}
26+
}
27+
}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
//Deobfuscated with https://github.com/SimplyProgrammer/Minecraft-Deobfuscator3000 using mappings "C:\Users\u1\Documents\Java Decompiler\1.12 stable mappings"!
2+
3+
//Decompiled by Procyon!
4+
5+
package com.veteran.hack.mixin.client;
6+
7+
import net.minecraft.network.handshake.client.*;
8+
import org.spongepowered.asm.mixin.*;
9+
import net.minecraft.network.*;
10+
import org.spongepowered.asm.mixin.injection.callback.*;
11+
import com.veteran.hack.module.*;
12+
import org.spongepowered.asm.mixin.injection.*;
13+
14+
@Mixin({ C00Handshake.class })
15+
public class MixinC00Handshake
16+
{
17+
@Shadow
18+
int protocolVersion;
19+
@Shadow
20+
String ip;
21+
@Shadow
22+
int port;
23+
@Shadow
24+
EnumConnectionState requestedState;
25+
26+
@Inject(method = { "writePacketData" }, at = { @At("HEAD") }, cancellable = true)
27+
public void writePacketData(final PacketBuffer buf, final CallbackInfo info) {
28+
if (ModuleManager.isModuleEnabled("FakeVanillaClient")) {
29+
info.cancel();
30+
buf.writeVarInt(this.protocolVersion);
31+
buf.writeString(this.ip);
32+
buf.writeShort(this.port);
33+
buf.writeVarInt(this.requestedState.getId());
34+
}
35+
}
36+
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
//Deobfuscated with https://github.com/SimplyProgrammer/Minecraft-Deobfuscator3000 using mappings "C:\Users\u1\Documents\Java Decompiler\1.12 stable mappings"!
2+
3+
//Decompiled by Procyon!
4+
5+
package com.veteran.hack.mixin.client;
6+
7+
import org.spongepowered.asm.mixin.*;
8+
import net.minecraft.world.*;
9+
import net.minecraft.util.math.*;
10+
import org.spongepowered.asm.mixin.injection.callback.*;
11+
import net.minecraft.block.state.*;
12+
import com.veteran.hack.module.*;
13+
import com.veteran.hack.module.modules.render.*;
14+
import org.spongepowered.asm.mixin.injection.*;
15+
16+
@Mixin({ ChunkCache.class })
17+
public class MixinChunkCache
18+
{
19+
@Inject(method = { "getBlockState" }, at = { @At("RETURN") }, cancellable = true)
20+
public void getState(final BlockPos pos, final CallbackInfoReturnable<IBlockState> info) {
21+
if (ModuleManager.isModuleEnabled("XRay")) {
22+
info.setReturnValue((Object)XRay.transform((IBlockState)info.getReturnValue()));
23+
}
24+
}
25+
}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
//Deobfuscated with https://github.com/SimplyProgrammer/Minecraft-Deobfuscator3000 using mappings "C:\Users\u1\Documents\Java Decompiler\1.12 stable mappings"!
2+
3+
//Decompiled by Procyon!
4+
5+
package com.veteran.hack.mixin.client;
6+
7+
import org.spongepowered.asm.mixin.*;
8+
import net.minecraft.entity.*;
9+
import com.veteran.hack.event.events.*;
10+
import com.veteran.hack.*;
11+
import org.spongepowered.asm.mixin.injection.*;
12+
import com.veteran.hack.module.modules.movement.*;
13+
import com.veteran.hack.module.modules.player.*;
14+
15+
@Mixin({ Entity.class })
16+
public class MixinEntity
17+
{
18+
@Redirect(method = { "applyEntityCollision" }, at = @At(value = "INVOKE", target = "Lnet/minecraft/entity/Entity;addVelocity(DDD)V"))
19+
public void addVelocity(final Entity entity, final double x, final double y, final double z) {
20+
final EntityEvent.EntityCollision entityCollisionEvent = new EntityEvent.EntityCollision(entity, x, y, z);
21+
BaseMod.EVENT_BUS.post((Object)entityCollisionEvent);
22+
if (entityCollisionEvent.isCancelled()) {
23+
return;
24+
}
25+
entity.motionX += x;
26+
entity.motionY += y;
27+
entity.motionZ += z;
28+
entity.isAirBorne = true;
29+
}
30+
31+
@Redirect(method = { "move" }, at = @At(value = "INVOKE", target = "Lnet/minecraft/entity/Entity;isSneaking()Z"))
32+
public boolean isSneaking(final Entity entity) {
33+
return SafeWalk.shouldSafewalk() || Scaffold.shouldScaffold() || entity.isSneaking();
34+
}
35+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
//Deobfuscated with https://github.com/SimplyProgrammer/Minecraft-Deobfuscator3000 using mappings "C:\Users\u1\Documents\Java Decompiler\1.12 stable mappings"!
2+
3+
//Decompiled by Procyon!
4+
5+
package com.veteran.hack.mixin.client;
6+
7+
import org.spongepowered.asm.mixin.*;
8+
import net.minecraft.entity.passive.*;
9+
import org.spongepowered.asm.mixin.injection.callback.*;
10+
import com.veteran.hack.module.*;
11+
import org.spongepowered.asm.mixin.injection.*;
12+
13+
@Mixin({ EntityLlama.class })
14+
public class MixinEntityLlama
15+
{
16+
@Inject(method = { "canBeSteered" }, at = { @At("RETURN") }, cancellable = true)
17+
public void canBeSteered(final CallbackInfoReturnable<Boolean> returnable) {
18+
if (ModuleManager.isModuleEnabled("EntitySpeed")) {
19+
returnable.setReturnValue((Object)true);
20+
}
21+
}
22+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
//Deobfuscated with https://github.com/SimplyProgrammer/Minecraft-Deobfuscator3000 using mappings "C:\Users\u1\Documents\Java Decompiler\1.12 stable mappings"!
2+
3+
//Decompiled by Procyon!
4+
5+
package com.veteran.hack.mixin.client;
6+
7+
import org.spongepowered.asm.mixin.*;
8+
import net.minecraft.entity.passive.*;
9+
import org.spongepowered.asm.mixin.injection.callback.*;
10+
import com.veteran.hack.module.*;
11+
import org.spongepowered.asm.mixin.injection.*;
12+
13+
@Mixin({ EntityPig.class })
14+
public class MixinEntityPig
15+
{
16+
@Inject(method = { "canBeSteered" }, at = { @At("HEAD") }, cancellable = true)
17+
public void canBeSteered(final CallbackInfoReturnable returnable) {
18+
if (ModuleManager.isModuleEnabled("EntitySpeed")) {
19+
returnable.setReturnValue((Object)true);
20+
returnable.cancel();
21+
}
22+
}
23+
}

0 commit comments

Comments
 (0)