package wtf.expensive.modules;
import wtf.expensive.modules.impl.player.InventoryMoveFunction;
import wtf.expensive.modules.impl.player.NoPushFunction;
import wtf.expensive.modules.impl.render.*;
import wtf.expensive.modules.impl.combat.*;
import wtf.expensive.modules.impl.movement.*;
import wtf.expensive.modules.impl.player.*;
import wtf.expensive.modules.impl.util.*;
import wtf.expensive.modules.impl.util.NoCommands;
import wtf.expensive.modules.impl.render.TargetESP;
import java.util.Arrays;
import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;
public class FunctionManager {
private final List<Function> functions = new CopyOnWriteArrayList<>();
public final ArrowsFunction arrowsFunction;
public final FullBrightFunction fullBrightFunction;
public final SprintFunction sprintFunction;
public final FlightFunction flightFunction;
public final StrafeFunction strafeFunction;
public final TimerFunction timerFunction;
public final AutoPotionFunction autoPotionFunction;
public final AutoRespawnFunction autoRespawnFunction;
public final VelocityFunction velocityFunction;
public final MiddleClickPearlFunction middleClickPearlFunction;
public final AutoTotemFunction autoTotemFunction;
public final InventoryMoveFunction inventoryMoveFunction;
public final NoPushFunction noPushFunction;
public final HitBoxFunction hitBoxFunction;
public final NoSlowFunction noSlowFunction;
public final AuraFunction auraFunction;
public final NoServerRotFunction noServerRotFunction;
public final FastBreakFunction fastBreakFunction;
public final XRayFunction xRayFunction;
public final SwingAnimationFunction swingAnimationFunction;
public final AutoGAppleFunction autoGApple;
public final NoRenderFunction noRenderFunction;
public final GappleCooldownFunction gappleCooldownFunction;
public final Optimization optimization;
public final ItemScroller itemScroller;
public final ESPFunction espFunction;
public final NoInteractFunction noInteractFunction;
public final CustomWorld customWorld;
public final ClientSounds clientSounds;
public final Crosshair crosshair;
public final NameProtect nameProtect;
public final NoCommands noCommands;
public final UnHookFunction unhook;
public final AutoExplosionFunction autoExplosionFunction;
public final HitColor hitColor;
public final FreeCam freeCam;
public final ClickGui clickGui;
public final HUD2 hud2;
public final Funtimehelper funtimehelper;
public final TargetESP targetESP;
public FunctionManager() {
// Инициализация и добавление функций в список modules
this.functions.addAll(Arrays.asList(
this.clickGui = new ClickGui(),
this.crosshair = new Crosshair(),
this.arrowsFunction = new ArrowsFunction(),
this.fullBrightFunction = new FullBrightFunction(),
this.noRenderFunction = new NoRenderFunction(),
this.sprintFunction = new SprintFunction(),
this.flightFunction = new FlightFunction(),
this.strafeFunction = new StrafeFunction(),
this.timerFunction = new TimerFunction(),
this.velocityFunction = new VelocityFunction(),
this.middleClickPearlFunction = new MiddleClickPearlFunction(),
this.autoTotemFunction = new AutoTotemFunction(),
this.inventoryMoveFunction = new InventoryMoveFunction(),
this.autoRespawnFunction = new AutoRespawnFunction(),
this.noPushFunction = new NoPushFunction(),
this.hitBoxFunction = new HitBoxFunction(),
this.noSlowFunction = new NoSlowFunction(),
this.noServerRotFunction = new NoServerRotFunction(),
this.fastBreakFunction = new FastBreakFunction(),
this.xRayFunction = new XRayFunction(),
this.autoPotionFunction = new AutoPotionFunction(),
this.swingAnimationFunction = new SwingAnimationFunction(),
this.autoGApple = new AutoGAppleFunction(),
this.gappleCooldownFunction = new GappleCooldownFunction(),
this.optimization = new Optimization(),
this.itemScroller = new ItemScroller(),
this.espFunction = new ESPFunction(),
this.noInteractFunction = new NoInteractFunction(),
this.customWorld = new CustomWorld(),
this.clientSounds = new ClientSounds(),
this.nameProtect = new NameProtect(),
this.hitColor = new HitColor(),
new ElytraSwap(),
this.auraFunction = new AuraFunction(),
new WaterSpeed(),
new GreifJoinerFunction(),
unhook = new UnHookFunction(),
new AutoTool(),
new ChestStealer(),
new Tracers(),
new NoFriendDamage(),
new ItemESP(),
new PearlPrediction(),
new AutoTpacceptFunction(),
new MiddleClickFriendFunction(),
new JumpCircleFunction(),
this.autoExplosionFunction = new AutoExplosionFunction(),
new AutoAncherFunction(),
new TrailsFunction(),
new SpeedFunction(),
new ElytraFly(),
new AntiAFKFunction(),
new ItemSwapFixFunction(),
new DeathCoordsFunction(),
new SpiderFunction(),
freeCam = new FreeCam(),
new NoClip(),
new BlockESP(),
new Blink(),
this.noCommands = new NoCommands(),
new TriggerBot(),
new AutoLeave(),
new BackTrack(),
new HitSound(),
new Particles(),
new Chams(),
new NoDelay(),
new AutoFish(),
new AutoEat(),
new ChinaHat(),
new XCarry(),
hud2 = new HUD2(),
this.funtimehelper = new Funtimehelper(),
this.targetESP = new TargetESP()
));
}
/**
* Возвращает список всех функций.
*
* @return список функций.
*/
public List<Function> getFunctions() {
return functions;
}
public Function get(String name) {
for (Function function : functions) {
if (function != null && function.name.equalsIgnoreCase(name)) {
return function;
}
}
return null;
}
}