From 18591adcf8f8725d5d06f6735abf378ebe7c5e5f Mon Sep 17 00:00:00 2001 From: _tud <98935832+UnderscoreTud@users.noreply.github.com> Date: Sat, 31 Aug 2024 17:23:02 +0300 Subject: [PATCH] Fix lines using spaces instead of tabs for indentation (unsure how this even happened in the first place) --- .../ch/njol/skript/lang/ExecutionIntent.java | 62 +++++++++---------- 1 file changed, 31 insertions(+), 31 deletions(-) diff --git a/src/main/java/ch/njol/skript/lang/ExecutionIntent.java b/src/main/java/ch/njol/skript/lang/ExecutionIntent.java index af7d52b5b16..b92ee489e73 100644 --- a/src/main/java/ch/njol/skript/lang/ExecutionIntent.java +++ b/src/main/java/ch/njol/skript/lang/ExecutionIntent.java @@ -10,8 +10,8 @@ /** * Used to describe the intention of a {@link TriggerItem}. * As of now, it is only used to tell whether the item halts the execution or not and print the appropriate warnings. - * - * @see TriggerItem#executionIntent() + * + * @see TriggerItem#executionIntent() */ public sealed interface ExecutionIntent extends Comparable permits ExecutionIntent.StopTrigger, ExecutionIntent.StopSections { @@ -46,7 +46,7 @@ static StopSections stopSections(int levels) { */ @Contract(value = " -> new", pure = true) static StopSections stopSection() { - return new StopSections(1); + return new StopSections(1); } /** @@ -85,53 +85,53 @@ public String toString() { * Represents a stop sections intent. * This intent stops the execution of the current section and the specified number of levels. */ - final class StopSections implements ExecutionIntent { + final class StopSections implements ExecutionIntent { - private final int levels; + private final int levels; - private StopSections(int levels) { + private StopSections(int levels) { this.levels = levels; } - public @Nullable ExecutionIntent.StopSections use() { - return levels > 1 ? new StopSections(levels - 1) : null; - } + public @Nullable ExecutionIntent.StopSections use() { + return levels > 1 ? new StopSections(levels - 1) : null; + } - @Override - public int compareTo(@NotNull ExecutionIntent other) { - if (!(other instanceof StopSections)) {return other.compareTo(this) * -1;} - int levels = ((StopSections) other).levels; - return Integer.compare(this.levels, levels); - } + @Override + public int compareTo(@NotNull ExecutionIntent other) { + if (!(other instanceof StopSections)) {return other.compareTo(this) * -1;} + int levels = ((StopSections) other).levels; + return Integer.compare(this.levels, levels); + } /** * Returns the number of levels to stop. - * + * * @return the number of levels to stop. */ - public int levels() { + public int levels() { return levels; } - @Override - public boolean equals(Object obj) { - if (obj == this) + @Override + public boolean equals(Object obj) { + if (obj == this) return true; - if (obj == null || obj.getClass() != this.getClass()) + if (obj == null || obj.getClass() != this.getClass()) return false; return this.levels == ((StopSections) obj).levels; - } + } - @Override - public int hashCode() { - return Objects.hash(levels); - } + @Override + public int hashCode() { + return Objects.hash(levels); + } - @Override - public String toString() { - return "StopSections[levels=" + levels + "]"; - } + @Override + public String toString() { + return "StopSections[levels=" + levels + "]"; + } - } + } }