KillAura Target Selector
Minecraft Gameplay Impact
Iterates through loaded world entities, filters for targetable players/mobs, sorts them by distance or remaining health using Comparators, and cycles automated attacks across multiple entities simultaneously.
Functions & APIs Analyzed
ClientWorld.getEntities
Retrieves loaded entity collection from client world (method_18112).
Comparator.comparingDouble
Sorts target entities by proximity or lowest health for optimal DPS priority.
Mod Implementation (Dev Source / Mapped)
// Developer Source (Fabric / Yarn mappings)
public class KillAuraTargeting {
public static List<PlayerEntity> findTargets(MinecraftClient client, double range) {
return StreamSupport.stream(client.world.getEntities().spliterator(), false)
.filter(e -> e instanceof PlayerEntity && e != client.player && e.isAlive())
.map(e -> (PlayerEntity) e)
.filter(e -> client.player.squaredDistanceTo(e) <= range * range)
.sorted(Comparator.comparingDouble(e -> client.player.squaredDistanceTo(e)))
.collect(Collectors.toList());
}
}
Decompiled Representation (Vineflower View)
// Decompiled with Vineflower 1.12 (Intermediary mappings)
public class KillAuraTargeting {
public static List<class_1657> findTargets(class_310 client, double range) {
return StreamSupport.stream(client.field_1687.method_18112().spliterator(), false)
.filter(e -> e instanceof class_1657 && e != client.field_1724 && e.method_5805())
.map(e -> (class_1657)e)
.filter(e -> client.field_1724.method_5739(e) <= range * range)
.sorted(Comparator.comparingDouble(e -> client.field_1724.method_5739(e)))
.collect(Collectors.toList());
}
}
Bytecode Signature & Static Detection
Detects iteration over world entities (getEntities / method_18112) coupled with distance calculations (squaredDistanceTo / method_5739) and automated attack loops.