XokerAutoMist Сурс функции для фт (no ad)

Начинающий
Статус
Оффлайн
Регистрация
28 Фев 2023
Сообщения
10
Реакции[?]
0
Поинты[?]
0
Java:
public class XokerAutoMist extends Feature {


    public TimerHelper timer = new TimerHelper();

    public XokerAutoMist() {

        super("XokerAutoMist", "Автоматичестки лутает мистики фан тайма", FeatureCategory.Util);

    }

    @EventTarget

    public void onUpdate(EventPreMotion event) {

        float delay = 0;


        if (mc.player.openContainer instanceof ContainerChest) {

            ContainerChest container = (ContainerChest) mc.player.openContainer;

            for (int index = 0; index < container.inventorySlots.size(); ++index) {

                if (container.getLowerChestInventory().getStackInSlot(index).getItem() != Item.getItemById(0)) {

                    AirStealer.mc.playerController.windowClick(container.windowId, index, 0, ClickType.QUICK_MOVE, mc.player);

                    timer.reset();

                    continue;

                }

            }

        }

    }


    public boolean isWhiteItem(ItemStack itemStack) {

        return (itemStack.getItem() instanceof ItemArmor || itemStack.getItem() instanceof ItemEnderPearl || itemStack.getItem() instanceof ItemSword || itemStack.getItem() instanceof ItemTool || itemStack.getItem() instanceof ItemFood || itemStack.getItem() instanceof ItemPotion || itemStack.getItem() instanceof ItemBlock || itemStack.getItem() instanceof ItemArrow || itemStack.getItem() instanceof ItemCompass);

    }


    private boolean isEmpty(Container container) {

        for (int index = 0; index < container.inventorySlots.size(); index++) {

            if (isWhiteItem(container.getSlot(index).getStack()))

                return false;

        }

        return true;

    }



}
 
Сверху Снизу