Skip to content

Commit

Permalink
Re-apply spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
Aeltumn committed Jan 28, 2025
1 parent b1cae91 commit db8abbd
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 26 deletions.
24 changes: 5 additions & 19 deletions api/src/main/java/com/noxcrew/noxesium/api/qib/QibEffect.java
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,7 @@ public record RemovePotionEffect(String namespace, String path) implements QibEf
* Removes all client-authoritative potion effects.
* This only affects effects added by a [GivePotionEffect] effect.
*/
public record RemoveAllPotionEffects() implements QibEffect {
}
public record RemoveAllPotionEffects() implements QibEffect {}

/**
* Forces the player to make an instant relative movement.
Expand All @@ -101,28 +100,15 @@ public record SetVelocity(double x, double y, double z) implements QibEffect {}
* of the player. Values are clamped at limit (also at -limit).
*/
public record SetVelocityYawPitch(
double yaw,
boolean yawRelative,
double pitch,
boolean pitchRelative,
double strength,
double limit
) implements QibEffect {
}
double yaw, boolean yawRelative, double pitch, boolean pitchRelative, double strength, double limit)
implements QibEffect {}

/**
* Modifies each value of the player's velocity using provided value
* and expression.
* <p>
* Allows multiplying, adding, subtracting, dividing, setting and clamping
*/
public record ModifyVelocity(
double x,
QibOperation xOp,
double y,
QibOperation yOp,
double z,
QibOperation zOp
) implements QibEffect {
}
public record ModifyVelocity(double x, QibOperation xOp, double y, QibOperation yOp, double z, QibOperation zOp)
implements QibEffect {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ public enum QibOperation {
MUL,
DIV,
MIN,
MAX
;
MAX;

/**
* Applies the operation to the given value with the given modifier resulting in the new value.
Expand Down Expand Up @@ -38,4 +37,4 @@ public double apply(double value, double modifier) {
case MAX -> Math.max(value, modifier);
};
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -335,8 +335,7 @@ private void executeBehavior(LocalPlayer player, Entity entity, QibEffect effect
player.setDeltaMovement(
modifyVelocity.xOp().apply(current.x, modifyVelocity.x()),
modifyVelocity.yOp().apply(current.y, modifyVelocity.y()),
modifyVelocity.zOp().apply(current.z, modifyVelocity.z())
);
modifyVelocity.zOp().apply(current.z, modifyVelocity.z()));
}
default -> throw new IllegalStateException("Unexpected value: " + effect);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@
import com.mojang.blaze3d.buffers.GpuBuffer;
import com.mojang.blaze3d.buffers.GpuFence;
import com.mojang.blaze3d.platform.GlStateManager;
import java.nio.ByteBuffer;

import com.noxcrew.noxesium.feature.ui.render.SharedVertexBuffer;
import java.nio.ByteBuffer;
import org.lwjgl.opengl.GL11;
import org.lwjgl.opengl.GL21;
import org.lwjgl.opengl.GL30;
Expand Down

0 comments on commit db8abbd

Please sign in to comment.