Untitled diff

Created Diff never expires
6 removals
Lines
Total
Removed
Words
Total
Removed
To continue using this feature, upgrade to
Diffchecker logo
Diffchecker Pro
48 lines
9 additions
Lines
Total
Added
Words
Total
Added
To continue using this feature, upgrade to
Diffchecker logo
Diffchecker Pro
50 lines
package me.rigamortis.faurax.module.modules.combat;
package me.stormclientdev.storm.module.modules.combat;


import me.rigamortis.faurax.module.helpers.*;
import me.rigamortis.faurax.module.*;
import me.rigamortis.faurax.module.modules.movement.*;
import net.minecraft.item.*;
import net.minecraft.item.*;
import net.minecraft.network.*;
import net.minecraft.network.*;
import net.minecraft.network.play.client.*;
import net.minecraft.network.play.client.*;
import me.rigamortis.faurax.*;

import com.darkmagician6.eventapi.*;
import com.darkmagician6.eventapi.*;
import me.rigamortis.faurax.events.*;

import me.stormclientdev.storm.*;
import me.stormclientdev.storm.events.*;
import me.stormclientdev.storm.module.*;
import me.stormclientdev.storm.module.helpers.*;
import me.stormclientdev.storm.module.modules.movement.*;


public class FastBow extends Module implements PlayerHelper, WorldHelper
public class FastBow extends Module implements PlayerHelper, WorldHelper
{
{
public int delay;
public int delay;
public FastBow() {
public FastBow() {
this.setName("FastBow");
this.setName("FastBow");
this.setKey("NUMPAD2");
this.setKey("NUMPAD2");
this.setType(ModuleType.COMBAT);
this.setType(ModuleType.COMBAT);
this.setColor(-2996409);
this.setColor(-2996409);
this.setModInfo("");
this.setModInfo("");
this.setVisible(true);
this.setVisible(true);
}
}
@EventTarget
@EventTarget
public void preTick(final EventPreTick e) {
public void preTick(final EventPreTick e) {
if (this.isToggled()) {
if (this.isToggled()) {
if (Flight.enabled) {
if (Flight.enabled) {
return;
return;
}
}
if (FastBow.mc.thePlayer.isUsingItem() && FastBow.mc.thePlayer.onGround && FastBow.mc.thePlayer.getCurrentEquippedItem().getItem() instanceof ItemBow) {
if (FastBow.mc.thePlayer.isUsingItem() && FastBow.mc.thePlayer.onGround && FastBow.mc.thePlayer.getCurrentEquippedItem().getItem() instanceof ItemBow) {
for (int i = 0; i < 50; ++i) {
for (int i = 0; i < 50; ++i) {
FastBow.mc.gameSettings.keyBindUseItem.pressed = !FastBow.mc.gameSettings.keyBindUseItem.pressed;
FastBow.mc.gameSettings.keyBindUseItem.pressed = !FastBow.mc.gameSettings.keyBindUseItem.pressed;
FastBow.mc.thePlayer.sendQueue.addToSendQueue(new C03PacketPlayer());
FastBow.mc.thePlayer.sendQueue.addToSendQueue(new C03PacketPlayer());
}
}
FastBow.mc.thePlayer.sendQueue.addToSendQueue(new C07PacketPlayerDigging(C07PacketPlayerDigging.Action.RELEASE_USE_ITEM, Client.getClientHelper().getBlockPos(FastBow.mc.thePlayer.posX, FastBow.mc.thePlayer.posY, FastBow.mc.thePlayer.posZ), Client.getClientHelper().getEnumFacing((int)FastBow.mc.thePlayer.posX, (int)FastBow.mc.thePlayer.posY, (int)FastBow.mc.thePlayer.posZ)));
FastBow.mc.thePlayer.sendQueue.addToSendQueue(new C07PacketPlayerDigging(C07PacketPlayerDigging.Action.RELEASE_USE_ITEM, Client.getClientHelper().getBlockPos(FastBow.mc.thePlayer.posX, FastBow.mc.thePlayer.posY, FastBow.mc.thePlayer.posZ), Client.getClientHelper().getEnumFacing((int)FastBow.mc.thePlayer.posX, (int)FastBow.mc.thePlayer.posY, (int)FastBow.mc.thePlayer.posZ)));
FastBow.mc.thePlayer.stopUsingItem();
FastBow.mc.thePlayer.stopUsingItem();
}
}
}
}
}
}
@EventTarget
@EventTarget
public void postTick(final EventPostTick e) {
public void postTick(final EventPostTick e) {
this.isToggled();
this.isToggled();
}
}
}
}