brigadier
brigadier copied to clipboard
Brigadier is a command parser & dispatcher, designed and developed for Minecraft: Java Edition.
Your now able to unregister a registed command
Fixes #106. Without this, the test could pass if no exception is thrown, in addition to the wanted result of a matching exception being thrown. fail() is now called before...
This problem is linked to [this](https://github.com/Mojang/brigadier/issues/111) issue. I tried implementing Brigadier, but if i try to create my argumentbuilder structure there is an exception. The problem is that the generic...
This PR caches common argument types. This has the potential to reduce memory usage simply by reusing instances in the tree. I haven't measured the true impact but it ought...
Fixes https://github.com/Mojang/brigadier/issues/87
For a few of my projects I'm considering using Brigadier, however one limitation has been stopping me from using this: ArgumentType.parse is not context-aware. In many cases, the object to...
`String.toLowerCase` gives different results depending on the server JVM's default locale (see http://lotusnotus.com/lotusnotus_en.nsf/dx/dotless-i-tolowercase-and-touppercase-functions-use-responsibly.htm), so for example "KICK" wouldn't become "kick" if the server locale was Turkish. Explicitly using English case...
Ok this is a bit rough to start. When commands in Minecraft are created, you have either 2 ways of creating commands that are executed. Either implement every single execution...
Literal arguments have no real way to mark as case sensitive, causing problems with code that needs a case insensitive literal
Add isNext(char) and isNext(Predicate<Character>) methods to ImmutableStringReader and StringReader
I see myself and other people use `reader.canRead() && reader.peek() == c` (or `!reader.canRead() || reader.peek() != c`) all the time. This is very tedious to do, so this adds...