package fun.ellant.functions.impl.render;
import com.google.common.eventbus.Subscribe;
import fun.ellant.events.EventUpdate;
import fun.ellant.functions.api.Category;
import fun.ellant.functions.api.Function;
import fun.ellant.functions.api.FunctionRegister;
import net.minecraft.entity.Entity;
@FunctionRegister(name = "GlowESP", type = Category.RENDER, desc = "Подсвечивает игроков")
public class GlowESP extends Function {
@Subscribe
public void onUpdate(EventUpdate update) {
for (Entity playerEntity : GlowESP.mc.world.getPlayers()) {
playerEntity.setGlowing(true);
}
}
@Override
public boolean onEnable() {
super.onEnable();
for (Entity playerEntity : GlowESP.mc.world.getPlayers()) {
playerEntity.setGlowing(true);
}
return false;
}
@Override
public void onDisable() {
super.onDisable();
for (Entity playerEntity : GlowESP.mc.world.getPlayers()) {
playerEntity.setGlowing(false);
}
}
}