From 5c8b884096d344f9c16dd6794c6a4f250dc00f40 Mon Sep 17 00:00:00 2001 From: Jason Penilla <11360596+jpenilla@users.noreply.github.com> Date: Sat, 13 Jan 2024 23:15:32 -0700 Subject: [PATCH] Remove since tags --- .../minecraft/modded/internal/ModdedParserMappings.java | 2 -- .../minecraft/modded/parser/AngleParser.java | 6 ------ .../minecraft/modded/parser/AxisParser.java | 6 ------ .../minecraft/modded/parser/CompoundTagParser.java | 6 ------ .../minecraft/modded/parser/EntityAnchorParser.java | 6 ------ .../minecraft/modded/parser/FloatRangeParser.java | 6 ------ .../minecraft/modded/parser/IntRangeParser.java | 6 ------ .../minecraft/modded/parser/NamedColorParser.java | 6 ------ .../minecraft/modded/parser/NbtPathParser.java | 6 ------ .../minecraft/modded/parser/NbtTagParser.java | 6 ------ .../minecraft/modded/parser/ObjectiveCriteriaParser.java | 6 ------ .../minecraft/modded/parser/ResourceLocationArgument.java | 6 ------ .../minecraft/modded/parser/ScoreboardOperationParser.java | 6 ------ 13 files changed, 74 deletions(-) diff --git a/cloud-minecraft-modded-common/src/main/java/cloud/commandframework/minecraft/modded/internal/ModdedParserMappings.java b/cloud-minecraft-modded-common/src/main/java/cloud/commandframework/minecraft/modded/internal/ModdedParserMappings.java index c91714b0..1d128f87 100644 --- a/cloud-minecraft-modded-common/src/main/java/cloud/commandframework/minecraft/modded/internal/ModdedParserMappings.java +++ b/cloud-minecraft-modded-common/src/main/java/cloud/commandframework/minecraft/modded/internal/ModdedParserMappings.java @@ -179,7 +179,6 @@ public static void registerServer(final CommandManager manager) { * @param argument a function providing the Brigadier parser given a build context * @param sender type * @param value type - * @since 1.7.0 */ public static void registerContextualNativeParserSupplier( final @NonNull CommandManager manager, @@ -217,7 +216,6 @@ public static void registerConstantNativeParserSupplier( * @param argument the Brigadier parser * @param sender type * @param value type - * @since 1.5.0 */ public static void registerConstantNativeParserSupplier( final @NonNull CommandManager manager, diff --git a/cloud-minecraft-modded-common/src/main/java/cloud/commandframework/minecraft/modded/parser/AngleParser.java b/cloud-minecraft-modded-common/src/main/java/cloud/commandframework/minecraft/modded/parser/AngleParser.java index 815ce828..5dbcd189 100644 --- a/cloud-minecraft-modded-common/src/main/java/cloud/commandframework/minecraft/modded/parser/AngleParser.java +++ b/cloud-minecraft-modded-common/src/main/java/cloud/commandframework/minecraft/modded/parser/AngleParser.java @@ -27,14 +27,12 @@ import cloud.commandframework.arguments.parser.ParserDescriptor; import cloud.commandframework.brigadier.argument.WrappedBrigadierParser; import net.minecraft.commands.arguments.AngleArgument.SingleAngle; -import org.apiguardian.api.API; import org.checkerframework.checker.nullness.qual.NonNull; /** * An argument for an angle, specified in degrees. * * @param the sender type - * @since 2.0.0 */ public final class AngleParser extends WrappedBrigadierParser { @@ -43,9 +41,7 @@ public final class AngleParser extends WrappedBrigadierParser * * @param command sender type * @return the created parser - * @since 2.0.0 */ - @API(status = API.Status.STABLE, since = "2.0.0") public static @NonNull ParserDescriptor angleParser() { return ParserDescriptor.of(new AngleParser<>(), SingleAngle.class); } @@ -55,9 +51,7 @@ public final class AngleParser extends WrappedBrigadierParser * * @param the command sender type * @return the component builder - * @since 2.0.0 */ - @API(status = API.Status.STABLE, since = "2.0.0") public static CommandComponent.@NonNull Builder angleComponent() { return CommandComponent.builder().parser(angleParser()); } diff --git a/cloud-minecraft-modded-common/src/main/java/cloud/commandframework/minecraft/modded/parser/AxisParser.java b/cloud-minecraft-modded-common/src/main/java/cloud/commandframework/minecraft/modded/parser/AxisParser.java index eee3db41..e2b1aab7 100644 --- a/cloud-minecraft-modded-common/src/main/java/cloud/commandframework/minecraft/modded/parser/AxisParser.java +++ b/cloud-minecraft-modded-common/src/main/java/cloud/commandframework/minecraft/modded/parser/AxisParser.java @@ -30,14 +30,12 @@ import java.util.EnumSet; import net.minecraft.commands.arguments.coordinates.SwizzleArgument; import net.minecraft.core.Direction; -import org.apiguardian.api.API; import org.checkerframework.checker.nullness.qual.NonNull; /** * An argument parser for a set of {@link net.minecraft.core.Direction.Axis axes}, described in Vanilla as a "swizzle". * * @param the sender type - * @since 2.0.0 */ public final class AxisParser extends WrappedBrigadierParser> { @@ -49,9 +47,7 @@ public final class AxisParser extends WrappedBrigadierParser command sender type * @return the created parser - * @since 2.0.0 */ - @API(status = API.Status.STABLE, since = "2.0.0") public static @NonNull ParserDescriptor> axisParser() { return ParserDescriptor.of(new AxisParser<>(), TYPE); } @@ -61,9 +57,7 @@ public final class AxisParser extends WrappedBrigadierParser the command sender type * @return the component builder - * @since 2.0.0 */ - @API(status = API.Status.STABLE, since = "2.0.0") public static CommandComponent.@NonNull Builder> axisComponent() { return CommandComponent.>builder().parser(axisParser()); } diff --git a/cloud-minecraft-modded-common/src/main/java/cloud/commandframework/minecraft/modded/parser/CompoundTagParser.java b/cloud-minecraft-modded-common/src/main/java/cloud/commandframework/minecraft/modded/parser/CompoundTagParser.java index 81d5564b..7463f711 100644 --- a/cloud-minecraft-modded-common/src/main/java/cloud/commandframework/minecraft/modded/parser/CompoundTagParser.java +++ b/cloud-minecraft-modded-common/src/main/java/cloud/commandframework/minecraft/modded/parser/CompoundTagParser.java @@ -27,14 +27,12 @@ import cloud.commandframework.arguments.parser.ParserDescriptor; import cloud.commandframework.brigadier.argument.WrappedBrigadierParser; import net.minecraft.nbt.CompoundTag; -import org.apiguardian.api.API; import org.checkerframework.checker.nullness.qual.NonNull; /** * An argument parser for the string representation of an NBT {@link CompoundTag}. * * @param the sender type - * @since 2.0.0 */ public final class CompoundTagParser extends WrappedBrigadierParser { @@ -43,9 +41,7 @@ public final class CompoundTagParser extends WrappedBrigadierParser command sender type * @return the created parser - * @since 2.0.0 */ - @API(status = API.Status.STABLE, since = "2.0.0") public static @NonNull ParserDescriptor compoundTagParser() { return ParserDescriptor.of(new CompoundTagParser<>(), CompoundTag.class); } @@ -55,9 +51,7 @@ public final class CompoundTagParser extends WrappedBrigadierParser the command sender type * @return the component builder - * @since 2.0.0 */ - @API(status = API.Status.STABLE, since = "2.0.0") public static CommandComponent.@NonNull Builder compoundTagComponent() { return CommandComponent.builder().parser(compoundTagParser()); } diff --git a/cloud-minecraft-modded-common/src/main/java/cloud/commandframework/minecraft/modded/parser/EntityAnchorParser.java b/cloud-minecraft-modded-common/src/main/java/cloud/commandframework/minecraft/modded/parser/EntityAnchorParser.java index 26428a2e..2fc7cbfd 100644 --- a/cloud-minecraft-modded-common/src/main/java/cloud/commandframework/minecraft/modded/parser/EntityAnchorParser.java +++ b/cloud-minecraft-modded-common/src/main/java/cloud/commandframework/minecraft/modded/parser/EntityAnchorParser.java @@ -27,14 +27,12 @@ import cloud.commandframework.arguments.parser.ParserDescriptor; import cloud.commandframework.brigadier.argument.WrappedBrigadierParser; import net.minecraft.commands.arguments.EntityAnchorArgument.Anchor; -import org.apiguardian.api.API; import org.checkerframework.checker.nullness.qual.NonNull; /** * An argument parsing an {@link Anchor}. * * @param the sender type - * @since 2.0.0 */ public final class EntityAnchorParser extends WrappedBrigadierParser { @@ -43,9 +41,7 @@ public final class EntityAnchorParser extends WrappedBrigadierParser command sender type * @return the created parser - * @since 2.0.0 */ - @API(status = API.Status.STABLE, since = "2.0.0") public static @NonNull ParserDescriptor entityAnchorParser() { return ParserDescriptor.of(new EntityAnchorParser<>(), Anchor.class); } @@ -55,9 +51,7 @@ public final class EntityAnchorParser extends WrappedBrigadierParser the command sender type * @return the component builder - * @since 2.0.0 */ - @API(status = API.Status.STABLE, since = "2.0.0") public static CommandComponent.@NonNull Builder entityAnchorComponent() { return CommandComponent.builder().parser(entityAnchorParser()); } diff --git a/cloud-minecraft-modded-common/src/main/java/cloud/commandframework/minecraft/modded/parser/FloatRangeParser.java b/cloud-minecraft-modded-common/src/main/java/cloud/commandframework/minecraft/modded/parser/FloatRangeParser.java index 3ac22c61..cef71321 100644 --- a/cloud-minecraft-modded-common/src/main/java/cloud/commandframework/minecraft/modded/parser/FloatRangeParser.java +++ b/cloud-minecraft-modded-common/src/main/java/cloud/commandframework/minecraft/modded/parser/FloatRangeParser.java @@ -28,7 +28,6 @@ import cloud.commandframework.brigadier.argument.WrappedBrigadierParser; import net.minecraft.advancements.critereon.MinMaxBounds; import net.minecraft.commands.arguments.RangeArgument; -import org.apiguardian.api.API; import org.checkerframework.checker.nullness.qual.NonNull; /** @@ -36,7 +35,6 @@ * {@code [min]..[max]}, where both lower and upper bounds are optional. * * @param the sender type - * @since 2.0.0 */ public final class FloatRangeParser extends WrappedBrigadierParser { @@ -45,9 +43,7 @@ public final class FloatRangeParser extends WrappedBrigadierParser command sender type * @return the created parser - * @since 2.0.0 */ - @API(status = API.Status.STABLE, since = "2.0.0") public static @NonNull ParserDescriptor floatRangeParser() { return ParserDescriptor.of(new FloatRangeParser<>(), MinMaxBounds.Doubles.class); } @@ -57,9 +53,7 @@ public final class FloatRangeParser extends WrappedBrigadierParser the command sender type * @return the component builder - * @since 2.0.0 */ - @API(status = API.Status.STABLE, since = "2.0.0") public static CommandComponent.@NonNull Builder floatRangeComponent() { return CommandComponent.builder().parser(floatRangeParser()); } diff --git a/cloud-minecraft-modded-common/src/main/java/cloud/commandframework/minecraft/modded/parser/IntRangeParser.java b/cloud-minecraft-modded-common/src/main/java/cloud/commandframework/minecraft/modded/parser/IntRangeParser.java index 5d71a242..cc93aee7 100644 --- a/cloud-minecraft-modded-common/src/main/java/cloud/commandframework/minecraft/modded/parser/IntRangeParser.java +++ b/cloud-minecraft-modded-common/src/main/java/cloud/commandframework/minecraft/modded/parser/IntRangeParser.java @@ -28,7 +28,6 @@ import cloud.commandframework.brigadier.argument.WrappedBrigadierParser; import net.minecraft.advancements.critereon.MinMaxBounds; import net.minecraft.commands.arguments.RangeArgument; -import org.apiguardian.api.API; import org.checkerframework.checker.nullness.qual.NonNull; /** @@ -36,7 +35,6 @@ * {@code [min]..[max]}, where both lower and upper bounds are optional. * * @param the sender type - * @since 2.0.0 */ public final class IntRangeParser extends WrappedBrigadierParser { @@ -45,9 +43,7 @@ public final class IntRangeParser extends WrappedBrigadierParser command sender type * @return the created parser - * @since 2.0.0 */ - @API(status = API.Status.STABLE, since = "2.0.0") public static @NonNull ParserDescriptor intRangeParser() { return ParserDescriptor.of(new IntRangeParser<>(), MinMaxBounds.Ints.class); } @@ -57,9 +53,7 @@ public final class IntRangeParser extends WrappedBrigadierParser the command sender type * @return the component builder - * @since 2.0.0 */ - @API(status = API.Status.STABLE, since = "2.0.0") public static CommandComponent.@NonNull Builder intRangeComponent() { return CommandComponent.builder().parser(intRangeParser()); } diff --git a/cloud-minecraft-modded-common/src/main/java/cloud/commandframework/minecraft/modded/parser/NamedColorParser.java b/cloud-minecraft-modded-common/src/main/java/cloud/commandframework/minecraft/modded/parser/NamedColorParser.java index 70d3822e..8c01da4c 100644 --- a/cloud-minecraft-modded-common/src/main/java/cloud/commandframework/minecraft/modded/parser/NamedColorParser.java +++ b/cloud-minecraft-modded-common/src/main/java/cloud/commandframework/minecraft/modded/parser/NamedColorParser.java @@ -27,14 +27,12 @@ import cloud.commandframework.arguments.parser.ParserDescriptor; import cloud.commandframework.brigadier.argument.WrappedBrigadierParser; import net.minecraft.ChatFormatting; -import org.apiguardian.api.API; import org.checkerframework.checker.nullness.qual.NonNull; /** * An argument for named colors in the {@link ChatFormatting} enum. * * @param the sender type - * @since 2.0.0 */ public final class NamedColorParser extends WrappedBrigadierParser { @@ -43,9 +41,7 @@ public final class NamedColorParser extends WrappedBrigadierParser command sender type * @return the created parser - * @since 2.0.0 */ - @API(status = API.Status.STABLE, since = "2.0.0") public static @NonNull ParserDescriptor namedColorParser() { return ParserDescriptor.of(new NamedColorParser<>(), ChatFormatting.class); } @@ -55,9 +51,7 @@ public final class NamedColorParser extends WrappedBrigadierParser the command sender type * @return the component builder - * @since 2.0.0 */ - @API(status = API.Status.STABLE, since = "2.0.0") public static CommandComponent.@NonNull Builder namedColorComponent() { return CommandComponent.builder().parser(namedColorParser()); } diff --git a/cloud-minecraft-modded-common/src/main/java/cloud/commandframework/minecraft/modded/parser/NbtPathParser.java b/cloud-minecraft-modded-common/src/main/java/cloud/commandframework/minecraft/modded/parser/NbtPathParser.java index 4451c7d8..36e54918 100644 --- a/cloud-minecraft-modded-common/src/main/java/cloud/commandframework/minecraft/modded/parser/NbtPathParser.java +++ b/cloud-minecraft-modded-common/src/main/java/cloud/commandframework/minecraft/modded/parser/NbtPathParser.java @@ -27,7 +27,6 @@ import cloud.commandframework.arguments.parser.ParserDescriptor; import cloud.commandframework.brigadier.argument.WrappedBrigadierParser; import net.minecraft.commands.arguments.NbtPathArgument.NbtPath; -import org.apiguardian.api.API; import org.checkerframework.checker.nullness.qual.NonNull; /** @@ -35,7 +34,6 @@ * {@link net.minecraft.nbt.Tag Tags}. * * @param the sender type - * @since 2.0.0 */ public final class NbtPathParser extends WrappedBrigadierParser { @@ -45,9 +43,7 @@ public final class NbtPathParser extends WrappedBrigadierParser { * * @param command sender type * @return the created parser - * @since 2.0.0 */ - @API(status = API.Status.STABLE, since = "2.0.0") public static @NonNull ParserDescriptor nbtPathParser() { return ParserDescriptor.of(new NbtPathParser<>(), NbtPath.class); } @@ -57,9 +53,7 @@ public final class NbtPathParser extends WrappedBrigadierParser { * * @param the command sender type * @return the component builder - * @since 2.0.0 */ - @API(status = API.Status.STABLE, since = "2.0.0") public static CommandComponent.@NonNull Builder nbtPathComponent() { return CommandComponent.builder().parser(nbtPathParser()); } diff --git a/cloud-minecraft-modded-common/src/main/java/cloud/commandframework/minecraft/modded/parser/NbtTagParser.java b/cloud-minecraft-modded-common/src/main/java/cloud/commandframework/minecraft/modded/parser/NbtTagParser.java index 7c691f0e..9f5954a0 100644 --- a/cloud-minecraft-modded-common/src/main/java/cloud/commandframework/minecraft/modded/parser/NbtTagParser.java +++ b/cloud-minecraft-modded-common/src/main/java/cloud/commandframework/minecraft/modded/parser/NbtTagParser.java @@ -27,14 +27,12 @@ import cloud.commandframework.arguments.parser.ParserDescriptor; import cloud.commandframework.brigadier.argument.WrappedBrigadierParser; import net.minecraft.nbt.Tag; -import org.apiguardian.api.API; import org.checkerframework.checker.nullness.qual.NonNull; /** * An argument for the string representation of an NBT {@link Tag}. * * @param the sender type - * @since 2.0.0 */ public final class NbtTagParser extends WrappedBrigadierParser { @@ -43,9 +41,7 @@ public final class NbtTagParser extends WrappedBrigadierParser { * * @param command sender type * @return the created parser - * @since 2.0.0 */ - @API(status = API.Status.STABLE, since = "2.0.0") public static @NonNull ParserDescriptor nbtTagParser() { return ParserDescriptor.of(new NbtTagParser<>(), Tag.class); } @@ -55,9 +51,7 @@ public final class NbtTagParser extends WrappedBrigadierParser { * * @param the command sender type * @return the component builder - * @since 2.0.0 */ - @API(status = API.Status.STABLE, since = "2.0.0") public static CommandComponent.@NonNull Builder nbtTagComponent() { return CommandComponent.builder().parser(nbtTagParser()); } diff --git a/cloud-minecraft-modded-common/src/main/java/cloud/commandframework/minecraft/modded/parser/ObjectiveCriteriaParser.java b/cloud-minecraft-modded-common/src/main/java/cloud/commandframework/minecraft/modded/parser/ObjectiveCriteriaParser.java index 175e4d54..8b2dcc7e 100644 --- a/cloud-minecraft-modded-common/src/main/java/cloud/commandframework/minecraft/modded/parser/ObjectiveCriteriaParser.java +++ b/cloud-minecraft-modded-common/src/main/java/cloud/commandframework/minecraft/modded/parser/ObjectiveCriteriaParser.java @@ -27,14 +27,12 @@ import cloud.commandframework.arguments.parser.ParserDescriptor; import cloud.commandframework.brigadier.argument.WrappedBrigadierParser; import net.minecraft.world.scores.criteria.ObjectiveCriteria; -import org.apiguardian.api.API; import org.checkerframework.checker.nullness.qual.NonNull; /** * An argument for a {@linkplain ObjectiveCriteria criterion} in a scoreboard. * * @param the sender type - * @since 2.0.0 */ public final class ObjectiveCriteriaParser extends WrappedBrigadierParser { @@ -44,9 +42,7 @@ public final class ObjectiveCriteriaParser extends WrappedBrigadierParser command sender type * @return the created parser - * @since 2.0.0 */ - @API(status = API.Status.STABLE, since = "2.0.0") public static @NonNull ParserDescriptor objectiveCriteriaParser() { return ParserDescriptor.of(new ObjectiveCriteriaParser<>(), ObjectiveCriteria.class); } @@ -56,9 +52,7 @@ public final class ObjectiveCriteriaParser extends WrappedBrigadierParser the command sender type * @return the component builder - * @since 2.0.0 */ - @API(status = API.Status.STABLE, since = "2.0.0") public static CommandComponent.@NonNull Builder objectiveCriteriaComponent() { return CommandComponent.builder().parser(objectiveCriteriaParser()); } diff --git a/cloud-minecraft-modded-common/src/main/java/cloud/commandframework/minecraft/modded/parser/ResourceLocationArgument.java b/cloud-minecraft-modded-common/src/main/java/cloud/commandframework/minecraft/modded/parser/ResourceLocationArgument.java index 9c1e48f9..51f95a1b 100644 --- a/cloud-minecraft-modded-common/src/main/java/cloud/commandframework/minecraft/modded/parser/ResourceLocationArgument.java +++ b/cloud-minecraft-modded-common/src/main/java/cloud/commandframework/minecraft/modded/parser/ResourceLocationArgument.java @@ -27,14 +27,12 @@ import cloud.commandframework.arguments.parser.ParserDescriptor; import cloud.commandframework.brigadier.argument.WrappedBrigadierParser; import net.minecraft.resources.ResourceLocation; -import org.apiguardian.api.API; import org.checkerframework.checker.nullness.qual.NonNull; /** * An argument parsing a {@link ResourceLocation}. * * @param the sender type - * @since 2.0.0 */ public final class ResourceLocationArgument extends WrappedBrigadierParser { @@ -43,9 +41,7 @@ public final class ResourceLocationArgument extends WrappedBrigadierParser command sender type * @return the created parser - * @since 2.0.0 */ - @API(status = API.Status.STABLE, since = "2.0.0") public static @NonNull ParserDescriptor resourceLocationParser() { return ParserDescriptor.of(new ResourceLocationArgument<>(), ResourceLocation.class); } @@ -55,9 +51,7 @@ public final class ResourceLocationArgument extends WrappedBrigadierParser the command sender type * @return the component builder - * @since 2.0.0 */ - @API(status = API.Status.STABLE, since = "2.0.0") public static CommandComponent.@NonNull Builder resourceLocationComponent() { return CommandComponent.builder().parser(resourceLocationParser()); } diff --git a/cloud-minecraft-modded-common/src/main/java/cloud/commandframework/minecraft/modded/parser/ScoreboardOperationParser.java b/cloud-minecraft-modded-common/src/main/java/cloud/commandframework/minecraft/modded/parser/ScoreboardOperationParser.java index 4c60e21e..15c731cb 100644 --- a/cloud-minecraft-modded-common/src/main/java/cloud/commandframework/minecraft/modded/parser/ScoreboardOperationParser.java +++ b/cloud-minecraft-modded-common/src/main/java/cloud/commandframework/minecraft/modded/parser/ScoreboardOperationParser.java @@ -28,7 +28,6 @@ import cloud.commandframework.brigadier.argument.WrappedBrigadierParser; import net.minecraft.commands.arguments.OperationArgument; import net.minecraft.commands.arguments.OperationArgument.Operation; -import org.apiguardian.api.API; import org.checkerframework.checker.nullness.qual.NonNull; /** @@ -37,7 +36,6 @@ *

These operations can be used to compare scores on a {@link net.minecraft.world.scores.Scoreboard}.

* * @param the sender type - * @since 2.0.0 */ public final class ScoreboardOperationParser extends WrappedBrigadierParser { @@ -46,9 +44,7 @@ public final class ScoreboardOperationParser extends WrappedBrigadierParser command sender type * @return the created parser - * @since 2.0.0 */ - @API(status = API.Status.STABLE, since = "2.0.0") public static @NonNull ParserDescriptor scoreboardOperationParser() { return ParserDescriptor.of(new ScoreboardOperationParser<>(), Operation.class); } @@ -58,9 +54,7 @@ public final class ScoreboardOperationParser extends WrappedBrigadierParser the command sender type * @return the component builder - * @since 2.0.0 */ - @API(status = API.Status.STABLE, since = "2.0.0") public static CommandComponent.@NonNull Builder scoreboardOperationComponent() { return CommandComponent.builder().parser(scoreboardOperationParser()); }