FunTime Criticals by Greufs, перенёс на Expensive 3.1
/// by Greufs ///
package www.exevors.module.impl.combat;
import com.google.common.eventbus.Subscribe;
import net.minecraft.client.Minecraft;
import net.minecraft.client.network.play.ClientPlayNetHandler;
import net.minecraft.network.play.client.CPlayerPacket;
import net.minecraft.util.Hand;
import www.exevors.events.EventMotion;
import www.exevors.events.EventUpdate;
import www.exevors.module.api.Category;
import www.exevors.module.api.Function;
import www.exevors.module.api.FunctionRegister;
@FunctionRegister(
name = FT Criticals,
type = Category.Combat
)
public class Criticals extends Function {
private final Minecraft mc = Minecraft.getInstance();
public Criticals() {
}
public boolean onEnable() {
super.onEnable();
return true;
}
@Subscribe
public void onPlayerUpdate(EventUpdate var1) {
Minecraft var10000 = this.mc;
if (Minecraft.player != null) {
var10000 = this.mc;
if (Minecraft.world != null) {
return;
}
}
}
@Subscribe
public void onPlayerAttack(EventMotion var1) {
Minecraft var10000 = this.mc;
if (Minecraft.player != null) {
var10000 = this.mc;
if (Minecraft.world != null) {
var10000 = this.mc;
if (Minecraft.player.isOnGround()) {
var10000 = this.mc;
if (Minecraft.player.fallDistance 0.0F) {
var10000 = this.mc;
if (!Minecraft.player.isInWater()) {
var10000 = this.mc;
ClientPlayNetHandler var2 = Minecraft.player.connection;
Minecraft var10003 = this.mc;
double var3 = Minecraft.player.getPosX();
Minecraft var10004 = this.mc;
double var4 = Minecraft.player.getPosY() + 0.1;
Minecraft var10005 = this.mc;
var2.sendPacket(new CPlayerPacket.PositionPacket(var3, var4, Minecraft.player.getPosZ(), false));
var10000 = this.mc;
var2 = Minecraft.player.connection;
var10003 = this.mc;
var3 = Minecraft.player.getPosX();
var10004 = this.mc;
var4 = Minecraft.player.getPosY();
var10005 = this.mc;
var2.sendPacket(new CPlayerPacket.PositionPacket(var3, var4, Minecraft.player.getPosZ(), false));
var10000 = this.mc;
var2 = Minecraft.player.connection;
var10003 = this.mc;
var3 = Minecraft.player.getPosX();
var10004 = this.mc;
var4 = Minecraft.player.getPosY() + 0.01;
var10005 = this.mc;
var2.sendPacket(new CPlayerPacket.PositionPacket(var3, var4, Minecraft.player.getPosZ(), false));
var10000 = this.mc;
var2 = Minecraft.player.connection;
var10003 = this.mc;
var3 = Minecraft.player.getPosX();
var10004 = this.mc;
var4 = Minecraft.player.getPosY();
var10005 = this.mc;
var2.sendPacket(new CPlayerPacket.PositionPacket(var3, var4, Minecraft.player.getPosZ(), false));
var10000 = this.mc;
Minecraft.player.swingArm(Hand.MAIN_HAND);
}
}
}
return;
}
}
}
}
package im.Lighting.functions.impl.combat;
import com.google.common.eventbus.Subscribe;
import net.minecraft.client.Minecraft;
import net.minecraft.client.network.play.ClientPlayNetHandler;
import net.minecraft.network.play.client.CPlayerPacket;
import net.minecraft.util.Hand;
import im.Lighting.events.EventMotion;
import im.Lighting.events.EventUpdate;
import im.Lighting.functions.api.Category;
import im.Lighting.functions.api.Function;
import im.Lighting.functions.api.FunctionRegister;
@FunctionRegister(
name = "CriticalsFT",
type = Category.Combat
)
public class Criticals extends Function {
private final Minecraft mc = Minecraft.getInstance();
public Criticals() {
}
public boolean onEnable() {
super.onEnable();
return true;
}
@Subscribe
public void onPlayerUpdate(EventUpdate var1) {
Minecraft var10000 = this.mc;
if (Minecraft.getInstance().player != null) {
var10000 = this.mc;
if (Minecraft.getInstance().world != null) {
return;
}
}
}
@Subscribe
public void onPlayerAttack(EventMotion var1) {
Minecraft var10000 = this.mc;
if (Minecraft.getInstance().player != null) {
var10000 = this.mc;
if (Minecraft.getInstance().world != null) {
var10000 = this.mc;
if (Minecraft.getInstance().player.isOnGround()) {
var10000 = this.mc;
if (Minecraft.getInstance().player.fallDistance > 0.0F) {
var10000 = this.mc;
if (!Minecraft.getInstance().player.isInWater()) {
var10000 = this.mc;
ClientPlayNetHandler var2 = Minecraft.getInstance().player.connection;
Minecraft var10003 = this.mc;
double var3 = Minecraft.getInstance().player.getPosX();
Minecraft var10004 = this.mc;
double var4 = Minecraft.getInstance().player.getPosY() + 0.1;
Minecraft var10005 = this.mc;
var2.sendPacket(new CPlayerPacket.PositionPacket(var3, var4, Minecraft.getInstance().player.getPosZ(), false));
var10000 = this.mc;
var2 = Minecraft.getInstance().player.connection;
var10003 = this.mc;
var3 = Minecraft.getInstance().player.getPosX();
var10004 = this.mc;
var4 = Minecraft.getInstance().player.getPosY();
var10005 = this.mc;
var2.sendPacket(new CPlayerPacket.PositionPacket(var3, var4, Minecraft.getInstance().player.getPosZ(), false));
var10000 = this.mc;
var2 = Minecraft.getInstance().player.connection;
var10003 = this.mc;
var3 = Minecraft.getInstance().player.getPosX();
var10004 = this.mc;
var4 = Minecraft.getInstance().player.getPosY() + 0.01;
var10005 = this.mc;
var2.sendPacket(new CPlayerPacket.PositionPacket(var3, var4, Minecraft.getInstance().player.getPosZ(), false));
var10000 = this.mc;
var2 = Minecraft.getInstance().player.connection;
var10003 = this.mc;
var3 = Minecraft.getInstance().player.getPosX();
var10004 = this.mc;
var4 = Minecraft.getInstance().player.getPosY();
var10005 = this.mc;
var2.sendPacket(new CPlayerPacket.PositionPacket(var3, var4, Minecraft.getInstance().player.getPosZ(), false));
var10000 = this.mc;
Minecraft.getInstance().player.swingArm(Hand.MAIN_HAND);
}
}
}
return;
}
}
}
}
фикс