3722 Commits
Author SHA1 Message Date
Daniel Naylor 376460aea7 Rename some Command interfaces
Specifically:

* ClientCompletionKey -> CommandTreeNodeType
* ClientSuggestionProvider -> CommandCompletionProvider

The previous terminology was a hangover to when I originally designed the system and from numerous issues and chats on Discord, it's clear that... well, it's not clear what they are. Along with making sure we're consistent with using "completion" instead of "suggestion", it makes sense to revisit this and make sure the names are sensible (and the Javadocs are clearer)

I have not renamed "ClientCompletionType" because that's for use with parameterized commands and for what it does, it's a reasonable name (while I'm open to that being renamed, it's less important here)
2021-05-04 18:27:41 +01:00
Daniel Naylor 114cbda317 Add CommandCompletion for command completion tooltips
* Rename command methods that use the word "suggest" to "complete"
2021-05-04 18:21:31 +01:00
zml cb1edbf4fa build: Bump plugin-spi and math to release versions 2021-05-03 15:09:35 -07:00
zml 32f26c00ee Update for dropping get prefix in plugin-meta/-spi 2021-05-01 23:06:43 -07:00
Gabriel Harris-Rouquette fcf1a5a47f Add NotificationTicket#invalidate for shorthand
Signed-off-by: Gabriel Harris-Rouquette <gabizou@me.com>
2021-05-01 18:54:18 -07:00
zml eba99f003b Fix HTML5-compliance of Javadoc tables 2021-05-01 18:15:23 -07:00
zml 762ba55f18 Attempt better IDE integration for event generation 2021-05-01 18:15:00 -07:00
zml 759f1aa8a4 fix mockito 2021-04-29 23:33:52 -07:00
zml 5037a26279 Drop get prefix from math methods 2021-04-29 22:52:19 -07:00
Daniel Naylor 13cfd9d222 Apparently tables in Javadocs require summary attributes 2021-04-29 10:44:18 +01:00
Jamie Mansfield b1db988bef Clarify Metrics API Javadocs
dualspiral argued that the Javadocs were unclear on Discord. I've made
them a good deal more explicit now - and also cleaned them up
somewhat.
2021-04-29 10:38:23 +01:00
Daniel Naylor 65616d49a9 Update for getter removal 2021-04-29 10:37:10 +01:00
Jamie Mansfield 1a70c77061 Add getter for effective plugin data collection state (#2317)
This allows plugins to easily and accurately determine whether they
have permission to perform data collection.
2021-04-29 10:34:24 +01:00
zml 8148a160ec checkstyle why 2021-04-27 19:33:32 -07:00
zml 3f5e236611 bump licenser 2021-04-27 19:18:57 -07:00
zml b4cc27ecd4 build: Bump to gradle 7, accomodate changes in impl 2021-04-25 18:52:29 -07:00
Gabriel Harris-Rouquette 1f390e3c5e Improve javadocs and clarify availability of Chunks by coordinates
Being the previous methods were poorly named and implemented on world coordinates, when
 they ought to be clearer about chunk positions versus
 block positions.

Signed-off-by: Gabriel Harris-Rouquette <gabizou@me.com>
2021-04-25 16:06:12 -07:00
jmp e15895954d Add missing ClientCompletionKeys 2021-04-25 11:35:55 +01:00
Daniel Naylor 1d80721acb Add ClientSuggestionProvider to add client-based suggestions for things like biomes 2021-04-24 12:11:51 +01:00
jmp 9273ea9a33 Add methods to Selector to retrieve it's limit and whether it is for players only or any entity 2021-04-24 10:15:19 +01:00
Daniel Naylor 31c174a222 Add "find" to some methods 2021-04-24 10:05:05 +01:00
Jason 57fa4b40b2 Fix range client completions (#2329) 2021-04-18 21:32:18 -07:00
Anselm Brehme 5e01608740 Add ChunkEvent.Generated 2021-04-14 19:53:56 +02:00
Daniel Naylor 1682b13e1a Add operator parameter 2021-04-11 13:29:42 +01:00
Evan J. Markowitz 573f69d9cd Fixing minor typos in CommandRegistrar JavaDocs (#2326) 2021-04-08 22:23:49 -07:00
Daniel Naylor d1e7432895 Make docs on ValueParameterModifier clearer.
Also make modifyCompletion a default method to return the same list.
2021-04-08 20:23:38 +01:00
ImMorpheus f2714c00ca Revert "[API-8] Reroute BlockSnapshot#empty into a factory, and add misc missing javadocs (#2150)"
This reverts commit a28e269ff6.
2021-04-04 18:52:58 +02:00
Christian Hughes a28e269ff6 [API-8] Reroute BlockSnapshot#empty into a factory, and add misc missing javadocs (#2150)
* Reroute BlockSnapshot#empty into a Factory

* Add missing javadocs

* Adjust for feedback

* Fix grammar error
2021-04-04 16:10:28 +00:00
Daniel Naylor 660b7a4041 Allow some parameters to be used without a CommandContext
* Add ValueParameterModifier
* Fix command JD warnings
2021-04-03 16:30:42 +01:00
Jason 9e714801ee Add missing throws to Favicon.Factory methods (#2323) 2021-03-29 02:14:28 -07:00
Zach Levis 305d9d5fa2 Add checkstyle plugin to Gradle 2021-03-28 23:53:10 -07:00
zml 15613c1bf7 Update Guice 4.1.0 -> 5.0.1 (#2311)
This allows us to be somewhat future-proofed, but does
mean implementations may have to use a fork of Guice in
order to remain compatible with our Guava version and 
API specification
2021-03-28 22:50:56 -07:00
Gabriel Harris-Rouquette d0999df7ca Update API implementation using BlockChangeFlags to the "default"
Default placement is generally encouraged instead of 'ALL' as it may be triggering
other side effects (or not).

Signed-off-by: Gabriel Harris-Rouquette <gabizou@me.com>
2021-03-28 17:15:24 -07:00
Gabriel Harris-Rouquette a777213366 Add internally used flags for BlockChangeFlag exposure
This brings parity with what's considered "internal" vs. externally supported
in the API. Considering the uses of having "none" setting some of these flags
by default, they're safe to expose for various reasons.

Signed-off-by: Gabriel Harris-Rouquette <gabizou@me.com>
2021-03-28 17:06:03 -07:00
Morpheus aaeabde7a1 Remove Nameable interface from Trigger (#2308) 2021-03-28 12:07:32 +00:00
Morpheus b2216ba4eb Update checkstyle and fix style issues (#2237) 2021-03-28 12:07:15 +00:00
Anselm Brehme e12007f328 Cleanup BlockChangeFlags
DEFAULT_PLACEMENT is still wrong
2021-03-28 01:14:35 +01:00
ImMorpheus f41f1887c4 Fix more javadoc warnings 2021-03-27 17:43:19 +01:00
ImMorpheus 105162d82c Update sortClasses list to API 8 2021-03-27 17:41:47 +01:00
Zach Levis 6166ef01e2 Update to JUnit 5 2021-03-25 20:43:08 -07:00
Zach Levis b508b46b94 Build script cleanup and source/JD publishing fixes
- Properly include source + JD jars in Gradle metadata
- Bump Caffeine to last Java 8-compatible version
- Remove noise from dependencies
- Update Javadoc links for current libraries
- Make Javadoc task fail when there are new errors introduced
- Bump licenser plugin version
2021-03-25 20:39:01 -07:00
Zach Levis e36c95af0a build: Bump event-impl-gen to release version 2021-03-23 17:56:42 -07:00
Gabriel Harris-RouquetteandImMorpheus bce5546cde api: Introduce NotificationTickets (#2304)
* api: Introduce NotificationTickets

This revamps the previously meticulous brain-ache
NotifyNeighborBlockEvent into a more
streamlined event similar to ChangeBlock event. As
the batching system has proven useful, this can
safely expose directional suppliers
without explicitly relying on legacy logic of
"Always notify every neighbor on a target position"

Signed-off-by: Gabriel Harris-Rouquette <gabizou@me.com>

* we only dropped get prefixes

* Oops

Co-authored-by: ImMorpheus <ImMorpheus@users.noreply.github.com>
2021-03-22 21:59:08 +00:00
ImMorpheus 2bb3de1527 Fix more javadoc warnings 2021-03-22 22:26:06 +01:00
ImMorpheus 77b5cda328 Fix compile error with javadoc jar 2021-03-22 21:38:40 +01:00
Daniel Naylor aee5e7c791 orCreateAccount -> accountOrCreate
This is for parity with the scorboard scoreOrCreate
2021-03-22 13:17:02 +00:00
Riley Park e5717aca25 scoreboard: orCreateScore -> scoreOrCreate 2021-03-21 14:40:49 -07:00
Riley Park af317e2244 scoreboard: Drop length limits on Team display name, prefix, and suffix
ref SpongePowered/Sponge#3342
2021-03-21 13:12:34 -07:00
Daniel NaylorandRiley Park bcc994fd84 Remove the "get" prefix from most API elements.
Some builders have also been renamed - dropping "set", favouring "add".

Fixes #2276 - so far that we're dropping "get" prefixes. We decided not to drop "set" prefixes.

Co-authored-by: Riley Park <riley.park@meino.net>
2021-03-21 16:59:33 +00:00
Morpheus bea0343174 Add CompletableFutures to Ban/Whitelist Service (#2307) 2021-03-14 16:06:06 +00:00