Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion checkstyle-light.xml
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@

<!--<module name="InvalidJavadocPosition"/>-->
<module name="JavadocParagraph"/>
<module name="JavadocStyle"/>
<module name="SummaryJavadoc"/>
<module name="AtclauseOrder">
<property name="tagOrder" value="@param,@return,@throws,@deprecated"/>
</module>
Expand Down
2 changes: 1 addition & 1 deletion checkstyle.xml
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@

<!--<module name="InvalidJavadocPosition"/>-->
<module name="JavadocParagraph"/>
<module name="JavadocStyle"/>
<module name="SummaryJavadoc"/>
<module name="AtclauseOrder">
<property name="tagOrder" value="@param,@return,@throws,@deprecated"/>
</module>
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ yamlang = { id = "me.fallenbreath.yamlang", version.ref = "yamlang" }

[versions]
asm = "9.10.1"
checkstyle = "13.8.0"
checkstyle = "14.0.0"
commons-lang3 = "3.20.0"
essential-loom = "1.15.50"
fabric-loader = "0.19.3"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@
/**
* Reference to <a href="https://github.com/astei/lazydfu/blob/385764a6fb4cf57b7a39e0ff367a704f74f12497/src/main/java/me/steinborn/lazydfu/mod/LazyDataFixerBuilder.java">LazyDFU</a>.
*
* <p>
* Preprocessor version guide.
*
* <li>mc1.14 ~ mc1.19.1: subproject 1.16.5 (main project) &lt;--------</li>
* <li>mc1.19.2+ : subproject 1.19.2 [dummy]</li>
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@

import top.hendrixshen.magiclib.api.preprocess.DummyClass;

// CHECKSTYLE.OFF: JavadocStyle
/**
* Preprocessor version guide.
*
* <li>mc1.14 ~ mc1.19.2: subproject 1.16.5 (main project) [dummy] &lt;--------</li>
* <li>mc1.19.3+ : subproject 1.19.3</li>
*/
// CHECKSTYLE.ON: JavadocStyle
@Mixin(DummyClass.class)
public abstract class AccountProfileKeyPairManagerMixin {
}
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@
/**
* Reference to <a href="https://github.com/Fallen-Breath/tweakermore/blob/10e1a937aadcefb1f2d9d9bab8badc873d4a5b3d/versions/1.16.5/src/main/java/me/fallenbreath/tweakermore/mixins/util/qol/MinecraftClientMixin.java">TweakerMore</a>.
*
* <p>
* Preprocessor version guide.
*
* <li>mc1.14 ~ mc1.15 : subproject 1.15.2 [dummy]</li>
* <li>mc1.16 ~ mc1.20.3: subproject 1.16.5 (main project) &lt;--------</li>
* <li>mc1.20.4+ : subproject 1.20.4 [dummy]</li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@
/**
* Reference to <a href="https://github.com/astei/lazydfu/blob/385764a6fb4cf57b7a39e0ff367a704f74f12497/src/main/java/me/steinborn/lazydfu/mixin/SchemasMixin.java">LazyDFU</a>.
*
* <p>
* Preprocessor version guide.
*
* <li>mc1.14 ~ mc1.19.1: subproject 1.16.5 (main project) &lt;--------</li>
* <li>mc1.19.2+ : subproject 1.19.2 [dummy]</li>
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@

import top.hendrixshen.magiclib.api.preprocess.DummyClass;

// CHECKSTYLE.OFF: JavadocStyle
/**
* Preprocessor version guide.
*
* <li>mc1.14 ~ mc1.21: subproject 1.16.5 (main project) [dummy] &lt;--------</li>
* <li>mc1.21.1+ : subproject 1.21.1</li>
*/
// CHECKSTYLE.ON: JavadocStyle
@Mixin(DummyClass.class)
public abstract class MainMixin {
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@

import top.hendrixshen.magiclib.api.preprocess.DummyClass;

// CHECKSTYLE.OFF: JavadocStyle
/**
* Preprocessor version guide.
*
* <li>mc1.14 ~ mc1.19.1: subproject 1.16.5 (main project) [dummy] &lt;--------</li>
* <li>mc1.19.2 ~ mc1.21: subproject 1.19.2</li>
* <li>mc1.21.1+ : subproject 1.21.1 [dummy]</li>
*/
// CHECKSTYLE.ON: JavadocStyle
@Mixin(DummyClass.class)
public abstract class SharedConstantsMixin {
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@

import top.hendrixshen.magiclib.api.preprocess.DummyClass;

// CHECKSTYLE.OFF: JavadocStyle
/**
* Preprocessor version guide.
*
* <li>mc1.14 ~ mc1.19.3: subproject 1.16.5 (main project) [dummy] &lt;--------</li>
* <li>mc1.19.4 ~ mc1.21: subproject 1.19.4</li>
* <li>mc1.21.1+ : subproject 1.21.1 [dummy]</li>
*/
// CHECKSTYLE.ON: JavadocStyle
@Mixin(DummyClass.class)
public abstract class DataFixersMixin {
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@

import top.hendrixshen.magiclib.api.preprocess.DummyClass;

// CHECKSTYLE.OFF: JavadocStyle
/**
* Preprocessor version guide.
*
* <li>mc1.14 ~ mc1.15 : subproject 1.15.2 [dummy] &lt;--------</li>
* <li>mc1.16 ~ mc1.20.3: subproject 1.16.5 (main project)</li>
* <li>mc1.20.4+ : subproject 1.20.4 [dummy]</li>
*/
// CHECKSTYLE.ON: JavadocStyle
@Mixin(DummyClass.class)
public abstract class MinecraftMixin {
}
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package top.hendrixshen.magiclib.impl.dev.dfu.lazy;

// CHECKSTYLE.OFF: JavadocStyle
/**
* Preprocessor version guide.
*
* <li>mc1.14 ~ mc1.19.1: subproject 1.16.5 (main project)</li>
* <li>mc1.19.2+ : subproject 1.19.2 [dummy] &lt;--------</li>
*/
// CHECKSTYLE.ON: JavadocStyle
public class LazyDataFixerBuilder {
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@

import top.hendrixshen.magiclib.api.preprocess.DummyClass;

// CHECKSTYLE.OFF: JavadocStyle
/**
* Preprocessor version guide.
*
* <li>mc1.14 ~ mc1.19.1: subproject 1.16.5 (main project)</li>
* <li>mc1.19.2+ : subproject 1.19.2 [dummy] &lt;--------</li>
*/
// CHECKSTYLE.ON: JavadocStyle
@Mixin(DummyClass.class)
public abstract class DataFixersMixin {
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@
/**
* Reference to <a href="https://github.com/astei/lazydfu/blob/a83ce2f3e7deb429d48134700424b4454f3bee8b/src/main/java/me/steinborn/lazydfu/mixin/SharedConstantsMixin.java">LazyDFU</a>.
*
* <p>
* Preprocessor version guide.
*
* <li>mc1.14 ~ mc1.19.1: subproject 1.16.5 (main project) [dummy]</li>
* <li>mc1.19.2 ~ mc1.21: subproject 1.19.2 &lt;--------</li>
* <li>mc1.21.1+ : subproject 1.21.1 [dummy]</li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@
/**
* Reference to <a href="https://github.com/magistermaks/mod-fungible/blob/9cd81f1d8ebcef43cff3df279aaef9bb68950e7c/src/main/java/net/darktree/fungible/mixin/auth/ProfileKeysImplMixin.java">mod-fungible</a>.
*
* <p>
* Preprocessor version guide.
*
* <li>mc1.14 ~ mc1.19.2: subproject 1.16.5 (main project) [dummy]</li>
* <li>mc1.19.3+ : subproject 1.19.3 &lt;--------</li>
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@

import java.util.concurrent.ThreadFactory;

// CHECKSTYLE.OFF: JavadocStyle
/**
* Preprocessor version guide.
*
* <li>mc1.14 ~ mc1.19.3: subproject 1.16.5 (main project) [dummy]</li>
* <li>mc1.19.4 ~ mc1.21: subproject 1.19.4 &lt;--------</li>
* <li>mc1.21.1+ : subproject 1.21.1 [dummy]</li>
*/
// CHECKSTYLE.ON: JavadocStyle
@Mixin(value = DataFixers.class, remap = false)
public abstract class DataFixersMixin {
@Redirect(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@

import top.hendrixshen.magiclib.api.preprocess.DummyClass;

// CHECKSTYLE.OFF: JavadocStyle
/**
* Preprocessor version guide.
*
* <li>mc1.14 ~ mc1.15 : subproject 1.15.2 [dummy]</li>
* <li>mc1.16 ~ mc1.20.3: subproject 1.16.5 (main project)</li>
* <li>mc1.20.4+ : subproject 1.20.4 [dummy] &lt;--------</li>
*/
// CHECKSTYLE.ON: JavadocStyle
@Mixin(DummyClass.class)
public abstract class MinecraftMixin {
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@
import java.util.Set;
import java.util.concurrent.CompletableFuture;

// CHECKSTYLE.OFF: JavadocStyle
/**
* Preprocessor version guide.
*
* <li>mc1.14 ~ mc1.21: subproject 1.16.5 (main project) [dummy]</li>
* <li>mc1.21.1+ : subproject 1.21.1 &lt;--------</li>
*/
// CHECKSTYLE.ON: JavadocStyle
@Dependencies(require = @Dependency(dependencyType = DependencyType.PREDICATE, predicate = MixinPredicates.LazyDFUPredicate.class))
@Mixin(Main.class)
public abstract class MainMixin {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@

import top.hendrixshen.magiclib.api.preprocess.DummyClass;

// CHECKSTYLE.OFF: JavadocStyle
/**
* Preprocessor version guide.
*
* <li>mc1.14 ~ mc1.19.1: subproject 1.16.5 (main project) [dummy]</li>
* <li>mc1.19.2 ~ mc1.21: subproject 1.19.2</li>
* <li>mc1.21.1+ : subproject 1.21.1 [dummy] &lt;--------</li>
*/
// CHECKSTYLE.ON: JavadocStyle
@Mixin(DummyClass.class)
public abstract class SharedConstantsMixin {
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@

import top.hendrixshen.magiclib.api.preprocess.DummyClass;

// CHECKSTYLE.OFF: JavadocStyle
/**
* Preprocessor version guide.
*
* <li>mc1.14 ~ mc1.19.3: subproject 1.16.5 (main project) [dummy]</li>
* <li>mc1.19.4 ~ mc1.21: subproject 1.19.4</li>
* <li>mc1.21.1+ : subproject 1.21.1 [dummy] &lt;--------</li>
*/
// CHECKSTYLE.ON: JavadocStyle
@Mixin(DummyClass.class)
public abstract class DataFixersMixin {
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import top.hendrixshen.magiclib.impl.dependency.version.VersionParser;

/**
* Reference to <a href="https://github.com/FabricMC/fabric-loader/blob/12775fdfe9eb7a0b1e260acf1e27aeb80c930543/src/main/java/net/fabricmc/loader/api/Version.java">FabricLoader</a>
* Reference to <a href="https://github.com/FabricMC/fabric-loader/blob/12775fdfe9eb7a0b1e260acf1e27aeb80c930543/src/main/java/net/fabricmc/loader/api/Version.java">FabricLoader</a>.
*
* <p>
* Represents a version of a mod.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import java.util.List;

/**
* Reference to <a href="https://github.com/FabricMC/fabric-loader/blob/12775fdfe9eb7a0b1e260acf1e27aeb80c930543/src/main/java/net/fabricmc/loader/api/metadata/version/VersionInterval.java">FabricLoader</a>
* Reference to <a href="https://github.com/FabricMC/fabric-loader/blob/12775fdfe9eb7a0b1e260acf1e27aeb80c930543/src/main/java/net/fabricmc/loader/api/metadata/version/VersionInterval.java">FabricLoader</a>.
*
* <p>
* Representation of a version interval, closed or open.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import top.hendrixshen.magiclib.impl.i18n.MagicLanguageManager;

/**
* Note:
* Provides localized text translation.
*
* <li>
* <b>Un-suffixed Translation Method</b>:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ public static void main(String[] args) throws Exception {
}

/**
* Displays a critical error dialog.
*
* @param exitAfter If true then this will call {@link System#exit(int)} after showing the gui, otherwise this will
* return normally.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import top.hendrixshen.magiclib.api.platform.DistType;

/**
* Fabric style ModInitializer
* Fabric style ModInitializer.
*
* <p>
* Provide a Fabric-style ModInitializer for cross-platform mod.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import top.hendrixshen.magiclib.api.platform.DistType;

/**
* Fabric style ModInitializer
* Fabric style ModInitializer.
*
* <p>
* Provide a Fabric-style ModInitializer for cross-platform mod.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,8 @@ public static void displayCriticalError(@NotNull Throwable exception) {
}

/**
* Checks whether the environment is a Fabric development environment.
*
* @return True if started with Fabric Loom.
*/
public static boolean isDevelopmentEnvironment() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ private interface Transformer {
}

/**
* Tag Syntax:
* Processes the tag references in the given comment.
*
* <li>"@tr#my.translation.key@": translation with the given key.</li>
* <li>"@config#myConfig@": translated and colored name of the given magic config.</li>
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@

import top.hendrixshen.magiclib.api.preprocess.DummyClass;

// CHECKSTYLE.OFF: JavadocStyle
/**
* Preprocessor version guide.
*
* <li>mc1.14 ~ mc1.21.5: subproject 1.16.5 (main project) [dummy] &lt;--------</li>
* <li>mc1.21.6+ : subproject 1.21.8</li>
*/
// CHECKSTYLE.ON: JavadocStyle
@Mixin(DummyClass.class)
public abstract class WidgetSearchBarMixin {
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@

import top.hendrixshen.magiclib.api.fake.malilib.WidgetSearchBarOpenStateAccessor;

// CHECKSTYLE.OFF: JavadocStyle
/**
* Preprocessor version guide.
*
* <li>mc1.14 ~ mc1.21.5: subproject 1.16.5 (main project) [dummy]</li>
* <li>mc1.21.6+ : subproject 1.21.8 &lt;--------</li>
*/
// CHECKSTYLE.ON: JavadocStyle
@Mixin(value = WidgetSearchBar.class, remap = false)
public abstract class WidgetSearchBarMixin implements WidgetSearchBarOpenStateAccessor {
@Shadow
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@
import top.hendrixshen.magiclib.impl.compat.minecraft.client.gui.FontCompatImpl;
import top.hendrixshen.magiclib.util.collect.Provider;

// CHECKSTYLE.OFF: JavadocStyle
/**
* Preprocessor version guide.
*
* <li>mc1.14 ~ mc1.21.5: subproject 1.16.5 (main project) &lt;--------</li>
* <li>mc1.21.6 ~ mc26.1: subproject 1.21.8</li>
* <li>mc26.2+ : subproject 26.2</li>
*/
// CHECKSTYLE.ON: JavadocStyle
public interface FontCompat extends Provider<Font> {
static @NotNull FontCompat of(@NotNull Font font) {
return new FontCompatImpl(font);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@
//#endif
// CHECKSTYLE.ON: ImportOrder

// CHECKSTYLE.OFF: JavadocStyle
/**
* Preprocessor version guide.
*
* <li>mc1.14 ~ mc1.12.8: subproject 1.16.5 (main project) &lt;--------</li>
* <li>mc1.21.9+ : subproject 1.21.10 [dummy]</li>
*/
// CHECKSTYLE.ON: JavadocStyle
public interface RenderEntityListener extends Listener {
//#if MC > 12105
//$$ void preRenderEntity(Entity entity, EntityRenderContext renderContext);
Expand Down
Loading
Loading