Skip to content

Commit

Permalink
Remove since tags
Browse files Browse the repository at this point in the history
  • Loading branch information
jpenilla committed Jan 14, 2024
1 parent 09d7fed commit 5c8b884
Show file tree
Hide file tree
Showing 13 changed files with 0 additions and 74 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,6 @@ public static <C> void registerServer(final CommandManager<C> manager) {
* @param argument a function providing the Brigadier parser given a build context
* @param <C> sender type
* @param <T> value type
* @since 1.7.0
*/
public static <C, T> void registerContextualNativeParserSupplier(
final @NonNull CommandManager<C> manager,
Expand Down Expand Up @@ -217,7 +216,6 @@ public static <C, T> void registerConstantNativeParserSupplier(
* @param argument the Brigadier parser
* @param <C> sender type
* @param <T> value type
* @since 1.5.0
*/
public static <C, T> void registerConstantNativeParserSupplier(
final @NonNull CommandManager<C> manager,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 <C> the sender type
* @since 2.0.0
*/
public final class AngleParser<C> extends WrappedBrigadierParser<C, SingleAngle> {

Expand All @@ -43,9 +41,7 @@ public final class AngleParser<C> extends WrappedBrigadierParser<C, SingleAngle>
*
* @param <C> command sender type
* @return the created parser
* @since 2.0.0
*/
@API(status = API.Status.STABLE, since = "2.0.0")
public static <C> @NonNull ParserDescriptor<C, SingleAngle> angleParser() {
return ParserDescriptor.of(new AngleParser<>(), SingleAngle.class);
}
Expand All @@ -55,9 +51,7 @@ public final class AngleParser<C> extends WrappedBrigadierParser<C, SingleAngle>
*
* @param <C> the command sender type
* @return the component builder
* @since 2.0.0
*/
@API(status = API.Status.STABLE, since = "2.0.0")
public static <C> CommandComponent.@NonNull Builder<C, SingleAngle> angleComponent() {
return CommandComponent.<C, SingleAngle>builder().parser(angleParser());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 <C> the sender type
* @since 2.0.0
*/
public final class AxisParser<C> extends WrappedBrigadierParser<C, EnumSet<Direction.Axis>> {

Expand All @@ -49,9 +47,7 @@ public final class AxisParser<C> extends WrappedBrigadierParser<C, EnumSet<Direc
*
* @param <C> command sender type
* @return the created parser
* @since 2.0.0
*/
@API(status = API.Status.STABLE, since = "2.0.0")
public static <C> @NonNull ParserDescriptor<C, EnumSet<Direction.Axis>> axisParser() {
return ParserDescriptor.of(new AxisParser<>(), TYPE);
}
Expand All @@ -61,9 +57,7 @@ public final class AxisParser<C> extends WrappedBrigadierParser<C, EnumSet<Direc
*
* @param <C> the command sender type
* @return the component builder
* @since 2.0.0
*/
@API(status = API.Status.STABLE, since = "2.0.0")
public static <C> CommandComponent.@NonNull Builder<C, EnumSet<Direction.Axis>> axisComponent() {
return CommandComponent.<C, EnumSet<Direction.Axis>>builder().parser(axisParser());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 <C> the sender type
* @since 2.0.0
*/
public final class CompoundTagParser<C> extends WrappedBrigadierParser<C, CompoundTag> {

Expand All @@ -43,9 +41,7 @@ public final class CompoundTagParser<C> extends WrappedBrigadierParser<C, Compou
*
* @param <C> command sender type
* @return the created parser
* @since 2.0.0
*/
@API(status = API.Status.STABLE, since = "2.0.0")
public static <C> @NonNull ParserDescriptor<C, CompoundTag> compoundTagParser() {
return ParserDescriptor.of(new CompoundTagParser<>(), CompoundTag.class);
}
Expand All @@ -55,9 +51,7 @@ public final class CompoundTagParser<C> extends WrappedBrigadierParser<C, Compou
*
* @param <C> the command sender type
* @return the component builder
* @since 2.0.0
*/
@API(status = API.Status.STABLE, since = "2.0.0")
public static <C> CommandComponent.@NonNull Builder<C, CompoundTag> compoundTagComponent() {
return CommandComponent.<C, CompoundTag>builder().parser(compoundTagParser());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 <C> the sender type
* @since 2.0.0
*/
public final class EntityAnchorParser<C> extends WrappedBrigadierParser<C, Anchor> {

Expand All @@ -43,9 +41,7 @@ public final class EntityAnchorParser<C> extends WrappedBrigadierParser<C, Ancho
*
* @param <C> command sender type
* @return the created parser
* @since 2.0.0
*/
@API(status = API.Status.STABLE, since = "2.0.0")
public static <C> @NonNull ParserDescriptor<C, Anchor> entityAnchorParser() {
return ParserDescriptor.of(new EntityAnchorParser<>(), Anchor.class);
}
Expand All @@ -55,9 +51,7 @@ public final class EntityAnchorParser<C> extends WrappedBrigadierParser<C, Ancho
*
* @param <C> the command sender type
* @return the component builder
* @since 2.0.0
*/
@API(status = API.Status.STABLE, since = "2.0.0")
public static <C> CommandComponent.@NonNull Builder<C, Anchor> entityAnchorComponent() {
return CommandComponent.<C, Anchor>builder().parser(entityAnchorParser());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,13 @@
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;

/**
* An argument parsing an unbounded {@link net.minecraft.advancements.critereon.MinMaxBounds.Doubles double range}, in the form
* {@code [min]..[max]}, where both lower and upper bounds are optional.
*
* @param <C> the sender type
* @since 2.0.0
*/
public final class FloatRangeParser<C> extends WrappedBrigadierParser<C, MinMaxBounds.Doubles> {

Expand All @@ -45,9 +43,7 @@ public final class FloatRangeParser<C> extends WrappedBrigadierParser<C, MinMaxB
*
* @param <C> command sender type
* @return the created parser
* @since 2.0.0
*/
@API(status = API.Status.STABLE, since = "2.0.0")
public static <C> @NonNull ParserDescriptor<C, MinMaxBounds.Doubles> floatRangeParser() {
return ParserDescriptor.of(new FloatRangeParser<>(), MinMaxBounds.Doubles.class);
}
Expand All @@ -57,9 +53,7 @@ public final class FloatRangeParser<C> extends WrappedBrigadierParser<C, MinMaxB
*
* @param <C> the command sender type
* @return the component builder
* @since 2.0.0
*/
@API(status = API.Status.STABLE, since = "2.0.0")
public static <C> CommandComponent.@NonNull Builder<C, MinMaxBounds.Doubles> floatRangeComponent() {
return CommandComponent.<C, MinMaxBounds.Doubles>builder().parser(floatRangeParser());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,13 @@
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;

/**
* An argument parsing an unbounded {@link net.minecraft.advancements.critereon.MinMaxBounds.Ints integer range}, in the form
* {@code [min]..[max]}, where both lower and upper bounds are optional.
*
* @param <C> the sender type
* @since 2.0.0
*/
public final class IntRangeParser<C> extends WrappedBrigadierParser<C, MinMaxBounds.Ints> {

Expand All @@ -45,9 +43,7 @@ public final class IntRangeParser<C> extends WrappedBrigadierParser<C, MinMaxBou
*
* @param <C> command sender type
* @return the created parser
* @since 2.0.0
*/
@API(status = API.Status.STABLE, since = "2.0.0")
public static <C> @NonNull ParserDescriptor<C, MinMaxBounds.Ints> intRangeParser() {
return ParserDescriptor.of(new IntRangeParser<>(), MinMaxBounds.Ints.class);
}
Expand All @@ -57,9 +53,7 @@ public final class IntRangeParser<C> extends WrappedBrigadierParser<C, MinMaxBou
*
* @param <C> the command sender type
* @return the component builder
* @since 2.0.0
*/
@API(status = API.Status.STABLE, since = "2.0.0")
public static <C> CommandComponent.@NonNull Builder<C, MinMaxBounds.Ints> intRangeComponent() {
return CommandComponent.<C, MinMaxBounds.Ints>builder().parser(intRangeParser());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 <C> the sender type
* @since 2.0.0
*/
public final class NamedColorParser<C> extends WrappedBrigadierParser<C, ChatFormatting> {

Expand All @@ -43,9 +41,7 @@ public final class NamedColorParser<C> extends WrappedBrigadierParser<C, ChatFor
*
* @param <C> command sender type
* @return the created parser
* @since 2.0.0
*/
@API(status = API.Status.STABLE, since = "2.0.0")
public static <C> @NonNull ParserDescriptor<C, ChatFormatting> namedColorParser() {
return ParserDescriptor.of(new NamedColorParser<>(), ChatFormatting.class);
}
Expand All @@ -55,9 +51,7 @@ public final class NamedColorParser<C> extends WrappedBrigadierParser<C, ChatFor
*
* @param <C> the command sender type
* @return the component builder
* @since 2.0.0
*/
@API(status = API.Status.STABLE, since = "2.0.0")
public static <C> CommandComponent.@NonNull Builder<C, ChatFormatting> namedColorComponent() {
return CommandComponent.<C, ChatFormatting>builder().parser(namedColorParser());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,13 @@
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;

/**
* An argument for {@link NbtPath NBT paths} to locations within
* {@link net.minecraft.nbt.Tag Tags}.
*
* @param <C> the sender type
* @since 2.0.0
*/
public final class NbtPathParser<C> extends WrappedBrigadierParser<C, NbtPath> {

Expand All @@ -45,9 +43,7 @@ public final class NbtPathParser<C> extends WrappedBrigadierParser<C, NbtPath> {
*
* @param <C> command sender type
* @return the created parser
* @since 2.0.0
*/
@API(status = API.Status.STABLE, since = "2.0.0")
public static <C> @NonNull ParserDescriptor<C, NbtPath> nbtPathParser() {
return ParserDescriptor.of(new NbtPathParser<>(), NbtPath.class);
}
Expand All @@ -57,9 +53,7 @@ public final class NbtPathParser<C> extends WrappedBrigadierParser<C, NbtPath> {
*
* @param <C> the command sender type
* @return the component builder
* @since 2.0.0
*/
@API(status = API.Status.STABLE, since = "2.0.0")
public static <C> CommandComponent.@NonNull Builder<C, NbtPath> nbtPathComponent() {
return CommandComponent.<C, NbtPath>builder().parser(nbtPathParser());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 <C> the sender type
* @since 2.0.0
*/
public final class NbtTagParser<C> extends WrappedBrigadierParser<C, Tag> {

Expand All @@ -43,9 +41,7 @@ public final class NbtTagParser<C> extends WrappedBrigadierParser<C, Tag> {
*
* @param <C> command sender type
* @return the created parser
* @since 2.0.0
*/
@API(status = API.Status.STABLE, since = "2.0.0")
public static <C> @NonNull ParserDescriptor<C, Tag> nbtTagParser() {
return ParserDescriptor.of(new NbtTagParser<>(), Tag.class);
}
Expand All @@ -55,9 +51,7 @@ public final class NbtTagParser<C> extends WrappedBrigadierParser<C, Tag> {
*
* @param <C> the command sender type
* @return the component builder
* @since 2.0.0
*/
@API(status = API.Status.STABLE, since = "2.0.0")
public static <C> CommandComponent.@NonNull Builder<C, Tag> nbtTagComponent() {
return CommandComponent.<C, Tag>builder().parser(nbtTagParser());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 <C> the sender type
* @since 2.0.0
*/
public final class ObjectiveCriteriaParser<C> extends WrappedBrigadierParser<C, ObjectiveCriteria> {

Expand All @@ -44,9 +42,7 @@ public final class ObjectiveCriteriaParser<C> extends WrappedBrigadierParser<C,
*
* @param <C> command sender type
* @return the created parser
* @since 2.0.0
*/
@API(status = API.Status.STABLE, since = "2.0.0")
public static <C> @NonNull ParserDescriptor<C, ObjectiveCriteria> objectiveCriteriaParser() {
return ParserDescriptor.of(new ObjectiveCriteriaParser<>(), ObjectiveCriteria.class);
}
Expand All @@ -56,9 +52,7 @@ public final class ObjectiveCriteriaParser<C> extends WrappedBrigadierParser<C,
*
* @param <C> the command sender type
* @return the component builder
* @since 2.0.0
*/
@API(status = API.Status.STABLE, since = "2.0.0")
public static <C> CommandComponent.@NonNull Builder<C, ObjectiveCriteria> objectiveCriteriaComponent() {
return CommandComponent.<C, ObjectiveCriteria>builder().parser(objectiveCriteriaParser());
}
Expand Down
Loading

0 comments on commit 5c8b884

Please sign in to comment.