/FileExtraction/Java_unseen/ionar2_summit/src/main/java/com/salhack/summit/module/exploit/Reach.java
package com.salhack.summit.module.exploit;

import com.salhack.summit.events.bus.EventHandler;
import com.salhack.summit.events.bus.Listener;
import com.salhack.summit.events.entity.EventEntityCollisionBorderSize;
import com.salhack.summit.module.Module;
import com.salhack.summit.module.Value;

public class Reach extends Module
{
    public final Value<Float> ReachAdd = new Value<Float>("ReachAdd", new String[]
    { "Reach", "Range", "Reac", "ExtraReach", "ReachDistance" }, "The distance increase to normal reach value to", 0.5f, 0.0f, 3.0f, 0.1f);
    public final Value<Float> HitboxAdd = new Value<Float>("HitboxAdd", new String[]
    { "HitBoxSize", "HitBox", "HitBoxes" }, "The hitbox add distance", 0.1f, 0.0f, 2.0f, 0.1f);

    public Reach()
    {
        super("Reach", new String[]
        { "Reach", "reac", "HitBox", "HitBoxes" }, "Allows you to reach farther distances, this will need to be tweaked per server.", "NONE", 0x0BDAB7, ModuleType.EXPLOIT);
    }

    @EventHandler
    private Listener<EventEntityCollisionBorderSize> onBorderSize = new Listener<>(event ->
    {
        event.cancel();
        event.setSize(HitboxAdd.getValue());
    });
}
