Skip to content

Commit

Permalink
Align parser/suggestion package names
Browse files Browse the repository at this point in the history
  • Loading branch information
jpenilla committed Jan 14, 2024
1 parent 78761db commit 844aa71
Show file tree
Hide file tree
Showing 83 changed files with 144 additions and 146 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
import cloud.commandframework.brigadier.argument.BrigadierMapping;
import cloud.commandframework.brigadier.argument.BrigadierMappingBuilder;
import cloud.commandframework.brigadier.argument.BrigadierMappings;
import cloud.commandframework.brigadier.argument.WrappedBrigadierParser;
import cloud.commandframework.brigadier.parser.WrappedBrigadierParser;
import cloud.commandframework.brigadier.node.LiteralBrigadierNodeFactory;
import cloud.commandframework.brigadier.suggestion.TooltipSuggestion;
import cloud.commandframework.context.CommandContext;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Cloud {@link cloud.commandframework.CommandTree command trees} to Brigadier nodes.</p>
*
* <p>To bridge Brigadier and Cloud argument types, an argument parser that wraps Brigadier argument types is available in
* {@link cloud.commandframework.brigadier.argument.WrappedBrigadierParser}. Other classes in that package allow constructing
* {@link cloud.commandframework.brigadier.parser.WrappedBrigadierParser}. Other classes in that package allow constructing
* Brigadier {@link com.mojang.brigadier.StringReader} instances that can be used for efficient interoperability with
* Brigadier.</p>
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
//
package cloud.commandframework.brigadier.argument;
package cloud.commandframework.brigadier.parser;

import cloud.commandframework.context.CommandInput;
import com.mojang.brigadier.StringReader;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
//
package cloud.commandframework.brigadier.argument;
package cloud.commandframework.brigadier.parser;

import cloud.commandframework.arguments.parser.ArgumentParseResult;
import cloud.commandframework.arguments.parser.ArgumentParser;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/**
* Argument parsers available on Brigadier platforms.
*/
package cloud.commandframework.brigadier.parser;
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
//
package cloud.commandframework.brigadier.argument;
package cloud.commandframework.brigadier.parser;

import cloud.commandframework.context.CommandInput;
import com.mojang.brigadier.StringReader;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,17 @@
import cloud.commandframework.bukkit.internal.CommandBuildContextSupplier;
import cloud.commandframework.bukkit.internal.MinecraftArgumentTypes;
import cloud.commandframework.bukkit.internal.RegistryReflection;
import cloud.commandframework.bukkit.parsers.BlockPredicateParser;
import cloud.commandframework.bukkit.parsers.EnchantmentParser;
import cloud.commandframework.bukkit.parsers.ItemStackParser;
import cloud.commandframework.bukkit.parsers.ItemStackPredicateParser;
import cloud.commandframework.bukkit.parsers.NamespacedKeyParser;
import cloud.commandframework.bukkit.parsers.location.Location2DParser;
import cloud.commandframework.bukkit.parsers.location.LocationParser;
import cloud.commandframework.bukkit.parsers.selector.MultipleEntitySelectorParser;
import cloud.commandframework.bukkit.parsers.selector.MultiplePlayerSelectorParser;
import cloud.commandframework.bukkit.parsers.selector.SingleEntitySelectorParser;
import cloud.commandframework.bukkit.parsers.selector.SinglePlayerSelectorParser;
import cloud.commandframework.bukkit.parser.BlockPredicateParser;
import cloud.commandframework.bukkit.parser.EnchantmentParser;
import cloud.commandframework.bukkit.parser.ItemStackParser;
import cloud.commandframework.bukkit.parser.ItemStackPredicateParser;
import cloud.commandframework.bukkit.parser.NamespacedKeyParser;
import cloud.commandframework.bukkit.parser.location.Location2DParser;
import cloud.commandframework.bukkit.parser.location.LocationParser;
import cloud.commandframework.bukkit.parser.selector.MultipleEntitySelectorParser;
import cloud.commandframework.bukkit.parser.selector.MultiplePlayerSelectorParser;
import cloud.commandframework.bukkit.parser.selector.SingleEntitySelectorParser;
import cloud.commandframework.bukkit.parser.selector.SinglePlayerSelectorParser;
import com.mojang.brigadier.arguments.ArgumentType;
import com.mojang.brigadier.arguments.StringArgumentType;
import io.leangen.geantyref.GenericTypeReflector;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,21 +36,21 @@
import cloud.commandframework.bukkit.data.MultipleEntitySelector;
import cloud.commandframework.bukkit.data.MultiplePlayerSelector;
import cloud.commandframework.bukkit.internal.CraftBukkitReflection;
import cloud.commandframework.bukkit.parsers.BlockPredicateParser;
import cloud.commandframework.bukkit.parsers.EnchantmentParser;
import cloud.commandframework.bukkit.parsers.ItemStackParser;
import cloud.commandframework.bukkit.parsers.ItemStackPredicateParser;
import cloud.commandframework.bukkit.parsers.MaterialParser;
import cloud.commandframework.bukkit.parsers.NamespacedKeyParser;
import cloud.commandframework.bukkit.parsers.OfflinePlayerParser;
import cloud.commandframework.bukkit.parsers.PlayerParser;
import cloud.commandframework.bukkit.parsers.WorldParser;
import cloud.commandframework.bukkit.parsers.location.Location2DParser;
import cloud.commandframework.bukkit.parsers.location.LocationParser;
import cloud.commandframework.bukkit.parsers.selector.MultipleEntitySelectorParser;
import cloud.commandframework.bukkit.parsers.selector.MultiplePlayerSelectorParser;
import cloud.commandframework.bukkit.parsers.selector.SingleEntitySelectorParser;
import cloud.commandframework.bukkit.parsers.selector.SinglePlayerSelectorParser;
import cloud.commandframework.bukkit.parser.BlockPredicateParser;
import cloud.commandframework.bukkit.parser.EnchantmentParser;
import cloud.commandframework.bukkit.parser.ItemStackParser;
import cloud.commandframework.bukkit.parser.ItemStackPredicateParser;
import cloud.commandframework.bukkit.parser.MaterialParser;
import cloud.commandframework.bukkit.parser.NamespacedKeyParser;
import cloud.commandframework.bukkit.parser.OfflinePlayerParser;
import cloud.commandframework.bukkit.parser.PlayerParser;
import cloud.commandframework.bukkit.parser.WorldParser;
import cloud.commandframework.bukkit.parser.location.Location2DParser;
import cloud.commandframework.bukkit.parser.location.LocationParser;
import cloud.commandframework.bukkit.parser.selector.MultipleEntitySelectorParser;
import cloud.commandframework.bukkit.parser.selector.MultiplePlayerSelectorParser;
import cloud.commandframework.bukkit.parser.selector.SingleEntitySelectorParser;
import cloud.commandframework.bukkit.parser.selector.SinglePlayerSelectorParser;
import cloud.commandframework.exceptions.ArgumentParseException;
import cloud.commandframework.exceptions.CommandExecutionException;
import cloud.commandframework.exceptions.InvalidCommandSenderException;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
//
package cloud.commandframework.bukkit;

import cloud.commandframework.brigadier.argument.WrappedBrigadierParser;
import cloud.commandframework.brigadier.parser.WrappedBrigadierParser;
import cloud.commandframework.bukkit.internal.BukkitBackwardsBrigadierSenderMapper;
import cloud.commandframework.execution.preprocessor.CommandPreprocessingContext;
import cloud.commandframework.execution.preprocessor.CommandPreprocessor;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ private BukkitParserParameters() {

/**
* Used to specify if an empty result is allowed for
* {@link cloud.commandframework.bukkit.parsers.selector.MultiplePlayerSelectorParser} and
* {@link cloud.commandframework.bukkit.parsers.selector.MultipleEntitySelectorParser}.
* {@link cloud.commandframework.bukkit.parser.selector.MultiplePlayerSelectorParser} and
* {@link cloud.commandframework.bukkit.parser.selector.MultipleEntitySelectorParser}.
*
* @since 1.8.0
*/
Expand All @@ -51,7 +51,7 @@ private BukkitParserParameters() {
create("allow_empty_selector_result", TypeToken.get(Boolean.class));

/**
* Sets to require explicit namespaces for {@link cloud.commandframework.bukkit.parsers.NamespacedKeyParser}
* Sets to require explicit namespaces for {@link cloud.commandframework.bukkit.parser.NamespacedKeyParser}
* (i.e. 'test' will be rejected but 'test:test' will pass).
*
* @since 1.7.0
Expand All @@ -60,7 +60,7 @@ private BukkitParserParameters() {
create("require_explicit_namespace", TypeToken.get(Boolean.class));

/**
* Sets a custom default namespace for {@link cloud.commandframework.bukkit.parsers.NamespacedKeyParser}.
* Sets a custom default namespace for {@link cloud.commandframework.bukkit.parser.NamespacedKeyParser}.
* Without this annotation the default is {@link org.bukkit.NamespacedKey#MINECRAFT}.
*
* @since 1.7.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@

/**
* Annotation used to specify if an empty result is allowed for
* {@link cloud.commandframework.bukkit.parsers.selector.MultiplePlayerSelectorParser} and
* {@link cloud.commandframework.bukkit.parsers.selector.MultipleEntitySelectorParser}.
* {@link cloud.commandframework.bukkit.parser.selector.MultiplePlayerSelectorParser} and
* {@link cloud.commandframework.bukkit.parser.selector.MultipleEntitySelectorParser}.
*
* @since 1.8.0
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
import org.checkerframework.checker.nullness.qual.NonNull;

/**
* Annotation used to set a custom namespace for {@link cloud.commandframework.bukkit.parsers.NamespacedKeyParser}.
* Annotation used to set a custom namespace for {@link cloud.commandframework.bukkit.parser.NamespacedKeyParser}.
* Without this annotation, the default namespace is {@link org.bukkit.NamespacedKey#MINECRAFT}.
*
* @since 1.7.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
import java.lang.annotation.Target;

/**
* Annotation used to set {@link cloud.commandframework.bukkit.parsers.NamespacedKeyParser} to
* Annotation used to set {@link cloud.commandframework.bukkit.parser.NamespacedKeyParser} to
* require explicit namespaces.
*
* @since 1.7.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
//
package cloud.commandframework.bukkit.parsers;
package cloud.commandframework.bukkit.parser;

import cloud.commandframework.CommandComponent;
import cloud.commandframework.arguments.parser.ArgumentParseResult;
import cloud.commandframework.arguments.parser.ArgumentParser;
import cloud.commandframework.arguments.parser.ParserDescriptor;
import cloud.commandframework.arguments.suggestion.SuggestionProvider;
import cloud.commandframework.brigadier.argument.WrappedBrigadierParser;
import cloud.commandframework.brigadier.parser.WrappedBrigadierParser;
import cloud.commandframework.bukkit.BukkitCommandManager;
import cloud.commandframework.bukkit.data.BlockPredicate;
import cloud.commandframework.bukkit.internal.CommandBuildContextSupplier;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
//
package cloud.commandframework.bukkit.parsers;
package cloud.commandframework.bukkit.parser;

import cloud.commandframework.CommandComponent;
import cloud.commandframework.arguments.parser.ArgumentParseResult;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
//
package cloud.commandframework.bukkit.parsers;
package cloud.commandframework.bukkit.parser;

import cloud.commandframework.CommandComponent;
import cloud.commandframework.arguments.parser.ArgumentParseResult;
import cloud.commandframework.arguments.parser.ArgumentParser;
import cloud.commandframework.arguments.parser.ParserDescriptor;
import cloud.commandframework.arguments.suggestion.BlockingSuggestionProvider;
import cloud.commandframework.arguments.suggestion.SuggestionProvider;
import cloud.commandframework.brigadier.argument.WrappedBrigadierParser;
import cloud.commandframework.brigadier.parser.WrappedBrigadierParser;
import cloud.commandframework.bukkit.BukkitCommandManager;
import cloud.commandframework.bukkit.data.ProtoItemStack;
import cloud.commandframework.bukkit.internal.CommandBuildContextSupplier;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
//
package cloud.commandframework.bukkit.parsers;
package cloud.commandframework.bukkit.parser;

import cloud.commandframework.CommandComponent;
import cloud.commandframework.arguments.parser.ArgumentParseResult;
import cloud.commandframework.arguments.parser.ArgumentParser;
import cloud.commandframework.arguments.parser.ParserDescriptor;
import cloud.commandframework.arguments.suggestion.SuggestionProvider;
import cloud.commandframework.brigadier.argument.WrappedBrigadierParser;
import cloud.commandframework.brigadier.parser.WrappedBrigadierParser;
import cloud.commandframework.bukkit.BukkitCommandManager;
import cloud.commandframework.bukkit.data.ItemStackPredicate;
import cloud.commandframework.bukkit.internal.CommandBuildContextSupplier;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
//
package cloud.commandframework.bukkit.parsers;
package cloud.commandframework.bukkit.parser;

import cloud.commandframework.CommandComponent;
import cloud.commandframework.arguments.parser.ArgumentParseResult;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
//
package cloud.commandframework.bukkit.parsers;
package cloud.commandframework.bukkit.parser;

import cloud.commandframework.CommandComponent;
import cloud.commandframework.arguments.parser.ArgumentParseResult;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
//
package cloud.commandframework.bukkit.parsers;
package cloud.commandframework.bukkit.parser;

import cloud.commandframework.CommandComponent;
import cloud.commandframework.arguments.parser.ArgumentParseResult;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
//
package cloud.commandframework.bukkit.parsers;
package cloud.commandframework.bukkit.parser;

import cloud.commandframework.CommandComponent;
import cloud.commandframework.arguments.parser.ArgumentParseResult;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
//
package cloud.commandframework.bukkit.parsers;
package cloud.commandframework.bukkit.parser;

import cloud.commandframework.CommandComponent;
import cloud.commandframework.arguments.parser.ArgumentParseResult;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
//
package cloud.commandframework.bukkit.parsers.location;
package cloud.commandframework.bukkit.parser.location;

import org.bukkit.Location;
import org.bukkit.World;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
//
package cloud.commandframework.bukkit.parsers.location;
package cloud.commandframework.bukkit.parser.location;

import cloud.commandframework.CommandComponent;
import cloud.commandframework.arguments.parser.ArgumentParseResult;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
//
package cloud.commandframework.bukkit.parsers.location;
package cloud.commandframework.bukkit.parser.location;

import java.util.Locale;
import java.util.Objects;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
//
package cloud.commandframework.bukkit.parsers.location;
package cloud.commandframework.bukkit.parser.location;

import cloud.commandframework.arguments.parser.ArgumentParseResult;
import cloud.commandframework.arguments.parser.ArgumentParser;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
//
package cloud.commandframework.bukkit.parsers.location;
package cloud.commandframework.bukkit.parser.location;

/**
* Type of location coordinates
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
//
package cloud.commandframework.bukkit.parsers.location;
package cloud.commandframework.bukkit.parser.location;

import cloud.commandframework.CommandComponent;
import cloud.commandframework.arguments.parser.ArgumentParseResult;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/**
* Vanilla-like location arguments
*/
package cloud.commandframework.bukkit.parser.location;
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/**
* Bukkit specific command arguments
*/
package cloud.commandframework.bukkit.parser;
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
//
package cloud.commandframework.bukkit.parsers.selector;
package cloud.commandframework.bukkit.parser.selector;

import cloud.commandframework.CommandComponent;
import cloud.commandframework.arguments.parser.ParserDescriptor;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
//
package cloud.commandframework.bukkit.parsers.selector;
package cloud.commandframework.bukkit.parser.selector;

import cloud.commandframework.CommandComponent;
import cloud.commandframework.arguments.parser.ArgumentParseResult;
import cloud.commandframework.arguments.parser.ParserDescriptor;
import cloud.commandframework.bukkit.data.MultiplePlayerSelector;
import cloud.commandframework.bukkit.parsers.PlayerParser;
import cloud.commandframework.bukkit.parser.PlayerParser;
import cloud.commandframework.context.CommandContext;
import cloud.commandframework.context.CommandInput;
import java.util.Collection;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
//
package cloud.commandframework.bukkit.parsers.selector;
package cloud.commandframework.bukkit.parser.selector;

import cloud.commandframework.bukkit.BukkitCaptionKeys;
import cloud.commandframework.context.CommandContext;
Expand Down
Loading

0 comments on commit 844aa71

Please sign in to comment.