use of me.wallhacks.spark.util.player.itemswitcher.itemswitchers.SpecItemSwitchItem in project Spark-Client by Spark-Client-Development.
the class FastUse method useXp.
void useXp() {
if (findExpInHotbar() == -1)
return;
didshit = true;
ItemSwitcher.SwitchResult res = Spark.switchManager.getCalculateAction(new SpecItemSwitchItem(Items.EXPERIENCE_BOTTLE), ItemSwitcher.usedHand.Both, Spark.switchManager.getModeFromString(switchMode.getValue()));
if (res != null && takeArmorOff()) {
Spark.rotationManager.setFakePitch(90, 2);
Spark.switchManager.Switch(res, Spark.switchManager.getModeFromString(switchMode.getValue()), 7);
for (int i = 0; i < packets.getValue(); i++) {
mc.player.connection.sendPacket(new CPacketPlayerTryUseItem(EnumHand.MAIN_HAND));
}
}
}
Aggregations