diff --git a/src/api/java/baritone/api/Settings.java b/src/api/java/baritone/api/Settings.java index c85280f60..9eed667f9 100644 --- a/src/api/java/baritone/api/Settings.java +++ b/src/api/java/baritone/api/Settings.java @@ -48,19 +48,6 @@ import java.util.function.Consumer; */ public final class Settings { - public final Setting elytraSimulationTicks = new Setting<>(20); - public final Setting elytraPitchRange = new Setting<>(25); - public final Setting elytraFireworkSpeed = new Setting<>(0.6); - public final Setting elytraFireworkSetbackUseDelay = new Setting<>(15); - public final Setting elytraMinimumAvoidance = new Setting<>(0.2); - public final Setting conserveFireworks = new Setting<>(true); - public final Setting renderRaytraces = new Setting<>(false); - public final Setting renderHitboxRaytraces = new Setting<>(false); - public final Setting renderElytraSimulation = new Setting<>(false); - public final Setting elytraFreeLook = new Setting<>(false); - public final Setting elytraAutoJump = new Setting<>(false); - public final Setting smoothLook = new Setting<>(false); - /** * Allow Baritone to break blocks */ @@ -748,6 +735,17 @@ public final class Settings { */ public final Setting blockFreeLook = new Setting<>(false); + /** + * Automatically elytra fly without having to force the client-sided rotations. Requires {@link #freeLook}. + */ + public final Setting elytraFreeLook = new Setting<>(false); + + /** + * Forces the client-sided rotations to an average of the last 10 ticks of server-sided rotations. + * Requires {@link #freeLook}. + */ + public final Setting smoothLook = new Setting<>(false); + /** * When true, the player will remain with its existing look direction as often as possible. * Although, in some cases this can get it stuck, hence this setting to disable that behavior. @@ -1333,6 +1331,63 @@ public final class Settings { */ public final Setting notificationOnMineFail = new Setting<>(true); + /** + * The number of ticks of elytra movement to simulate while firework boost is not active. Higher values are + * computationally more expensive. + */ + public final Setting elytraSimulationTicks = new Setting<>(20); + + /** + * The maximum allowed deviation in pitch from a direct line-of-sight to the flight target. Higher values are + * computationally more expensive. + */ + public final Setting elytraPitchRange = new Setting<>(25); + + /** + * The minimum speed that the player can drop to (in blocks/tick) before a firework is automatically deployed. + */ + public final Setting elytraFireworkSpeed = new Setting<>(0.6); + + /** + * The delay after the player's position is set-back by the server that a firework may be automatically deployed. + * Value is in ticks. + */ + public final Setting elytraFireworkSetbackUseDelay = new Setting<>(15); + + /** + * The minimum padding value that is added to the player's hitbox when considering which point to fly to on the + * path. High values can result in points not being considered which are otherwise safe to fly to. Low values can + * result in flight paths which are extremely tight, and there's the possibility of crashing due to getting too low + * to the ground. + */ + public final Setting elytraMinimumAvoidance = new Setting<>(0.2); + + /** + * If enabled, avoids using fireworks when descending along the flight path. + */ + public final Setting conserveFireworks = new Setting<>(true); + + /** + * Renders the raytraces that are performed by the elytra fly calculation. + */ + public final Setting renderRaytraces = new Setting<>(false); + + /** + * Renders the raytraces that are used in the hitbox part of the elytra fly calculation. + * Requires {@link #renderRaytraces}. + */ + public final Setting renderHitboxRaytraces = new Setting<>(false); + + /** + * Renders the best elytra flight path that was simulated each tick. + */ + public final Setting renderElytraSimulation = new Setting<>(false); + + /** + * Automatically path to and jump off of ledges to initiate elytra flight when grounded. + */ + public final Setting elytraAutoJump = new Setting<>(false); + /** * A map of lowercase setting field names to their respective setting */