Начинающий
Начинающий
- Статус
- Оффлайн
- Регистрация
- 31 Июл 2024
- Сообщения
- 2
- Реакции
- 0
// cringe by angrobkiw
package wtf.expensive.client.module.impl.combat;
import.wtf.expensive.modules;
import.wtf.expensive.modules.impl.combat.AntiBot;
import.wtf.expensive.events.impl.player.EventUpdate.Module;
import.wtf.expensive.events.impl.player.EventLink;
import.wtf.expensive.events.event.impl.motion.UpdateEvent;
import.wtf.expensive.modules.impl.movement.TimerUtil;
import lombok.Getter;
import lombok.Setter;
import net.minecraft.entity.Entity;
import net.minecraft.entity.LivingEntity;
import net.minecraft.entity.player.PlayerEntity;
import java.util.ArrayList;
import java.util.List;
@ModuleInfo(
name = "AntiBot",
description = "",
category = module.COMBAT
)
@Getter
@setter
public class AntiBot extends Module {
public static List<Entity> isBot = new ArrayList<>();
private TimerUtil timer = new TimerUtil();
@Override
public void init() {
super.init();
}
@EventLink()
public final Listener<UpdateEvent> onCalcCoolDown = event -> {
for (PlayerEntity entity : mc.world.getPlayers()) {
if (!entity.getUniqueID().equals(PlayerEntity.getOfflineUUID(entity.getName().getString()))) {
if (!isBot.contains(entity)) {
isBot.add(entity);
}
}
}
};
@Override
public void onDisable() {
super.onDisable();
isBot.clear();
}
public static boolean checkBot(LivingEntity entity) {
if (entity instanceof PlayerEntity) {
return isBot.contains(entity);
}
return false;
}
public static AntiBot get() {
return Nova.getInstance().getModuleManager().get(AntiBot.class);
}
}
package wtf.expensive.client.module.impl.combat;
import.wtf.expensive.modules;
import.wtf.expensive.modules.impl.combat.AntiBot;
import.wtf.expensive.events.impl.player.EventUpdate.Module;
import.wtf.expensive.events.impl.player.EventLink;
import.wtf.expensive.events.event.impl.motion.UpdateEvent;
import.wtf.expensive.modules.impl.movement.TimerUtil;
import lombok.Getter;
import lombok.Setter;
import net.minecraft.entity.Entity;
import net.minecraft.entity.LivingEntity;
import net.minecraft.entity.player.PlayerEntity;
import java.util.ArrayList;
import java.util.List;
@ModuleInfo(
name = "AntiBot",
description = "",
category = module.COMBAT
)
@Getter
@setter
public class AntiBot extends Module {
public static List<Entity> isBot = new ArrayList<>();
private TimerUtil timer = new TimerUtil();
@Override
public void init() {
super.init();
}
@EventLink()
public final Listener<UpdateEvent> onCalcCoolDown = event -> {
for (PlayerEntity entity : mc.world.getPlayers()) {
if (!entity.getUniqueID().equals(PlayerEntity.getOfflineUUID(entity.getName().getString()))) {
if (!isBot.contains(entity)) {
isBot.add(entity);
}
}
}
};
@Override
public void onDisable() {
super.onDisable();
isBot.clear();
}
public static boolean checkBot(LivingEntity entity) {
if (entity instanceof PlayerEntity) {
return isBot.contains(entity);
}
return false;
}
public static AntiBot get() {
return Nova.getInstance().getModuleManager().get(AntiBot.class);
}
}