-
-
Notifications
You must be signed in to change notification settings - Fork 340
[WIP] API 8.0.0 #1995
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
[WIP] API 8.0.0 #1995
Changes from all commits
Commits
Show all changes
622 commits
Select commit
Hold shift + click to select a range
74345ab
Correct more design decisions regarding ServerPlayer.
Zidane db801c8
[API-8] Add direction methods on Entity and Living (#2139)
ItsDoot dbe96c7
Someone did not remove the PluginProcessor reference from the ap...
gabizou dae2413
Swap slf4j for log4j. Downgrade guava due to MC dependencies
gabizou 6fe899a
Dunno where this broke, but whatever
gabizou 852ea04
add DataStore Builder
Faithcaio 5fb221e
ServerPlayers are always in ServerWorlds
Faithcaio 63d6a7d
[API-8] Adjust NamedCatalogType and NamedCatalogBuilder interfaces fo…
ItsDoot 0732581
[API-8] Improve Tristate (#2137)
ItsDoot 4f53e96
Remove non-existant feature configs in 1.14.4 and add Pillager Outpos…
i509VCB 0bfc697
Add Entity Attribute api (#2085)
i509VCB 6cbcc06
Remove HandInteractEvent and sub events (#2096)
ImMorpheus a4d6aa2
Updates to the Command API to support implementation (#2066)
dualspiral 50ac9c5
Remove EconomyService#getCurrencies (#2143)
ImMorpheus d3d6da3
Add missed method from Parameter
dualspiral 58c6085
Toss GameState, Transform (in events)
Zidane f7946fb
Really toss GameState.
Zidane 7eaa238
Make licenser versioned based on requested or fill in licenser versio…
gabizou 6faac9e
Javadoc GameState removal fixes.
Zidane 56f15da
Fix resolving the licenser plugin.
Cybermaxke 9400c46
Merge pull request #2147 from SpongePowered/fix-licenser
Cybermaxke a2b8bff
Add ExplosionEvent.Detonate#filterAffectedLocations
ItsDoot 65a45e9
[API-8] Add Location#getBlockType (#2145)
ItsDoot d0d7f22
Add ScheduledTask#isCancelled (#2146)
ItsDoot c98ed6a
Merge Add ExplosionEvent.Detonate and other API additions. Merges #21…
gabizou 099fb54
Delete CODEOWNERS
dualspiral 5e40de7
Replace Service Manager with Provider (#2133)
dualspiral b63c414
Cleanup Sponge class
Zidane 012dfd1
While Aaron fixes this, don't gen RegisterCommandEvent.
Zidane 68c0fef
Add key which specifies if a player has viewed the credits (#2161)
i509VCB f76edbb
Add view-distance setter (#2155)
ImMorpheus a537d72
Add marker for classes that should not be stored (#2154)
ImMorpheus 6aa99ec
Improve JoinData (#2153)
ImMorpheus c4cfac8
Don't generate the ProvideServiceEvent automatically.
dualspiral 75ec550
Add Keys#TRANSIENT (#2162)
ImMorpheus 51a3b89
Add a way to get all unique and virtual accounts from the economy se…
ImMorpheus 70629b2
Rename ClientConnectionEvent to ServerSideConnectionEvent.
Zidane 68c122e
CatalogKey -> ResourceKey.
Zidane 1688980
Fix some javadocs.
Zidane 638fdae
The CauseStack is per-engine thread.
Zidane 36af22c
World knows of it's Engine.
Zidane 14041cb
UserStorageService is no longer a UserManager.
Zidane 033d829
Should not need a cause for this.
Zidane 6ddca78
Add Starting/Started/StoppingEngine events.
Zidane 4cbc862
Well define the registry events in the lifecycle.
Zidane 3d6f4c8
Add lifecycle event for when the game is finished loading.
Zidane 1ecc106
Correct ReloadGameEvent's name ot better reflect what it is, a refresh.
Zidane f30e5a2
Whoops..
Zidane bdecc19
Fix imports after renames
dualspiral e730402
Small context key cleanup.
Zidane b4e32ad
Tweaks to parameters
dualspiral 2b1d1d7
Range parameters
dualspiral f235c12
Add VariableValueParameters#createValidatedStringParameter(Pattern pa…
dualspiral d248fc5
Add way to parse JSON to the ArgumentReader
dualspiral e75a195
Fix compile errors
dualspiral 71a5e3d
Add notion of a "ClientCompletionType" to enable some specific comple…
dualspiral 9c1bd14
Clarify JD
dualspiral 8f06c45
Add peekString to argument reader
dualspiral 2bd4b85
Slight change to parameter
dualspiral c68caf6
Get rid of unused imports.
dualspiral 063f8d8
Add missing getter
dualspiral 5ee082d
Remove some going to be unused functions
dualspiral 5213414
Add mapping method to command manager
dualspiral 5599fb1
Channel API Improvements + Client login phase (#2008)
Cybermaxke eda8c96
add inventory query overloads for suppliers
Faithcaio a7b51d7
Add reset to the registrar
dualspiral bcab130
add ViewableInventory builder type supplier overload
Faithcaio e722777
Some minor formatting fixes
gabizou 2369118
Nothing to see here...
Zidane e6ffcf0
This needs to be generated
dualspiral 1b6b06d
Add getEntities() to ServerWorld (to get all of them).
Zidane 700291a
Cleanup. Toss current WGEN API.
Zidane 145b551
Add streamAll method to UserManager (#2166)
ImMorpheus 9cb3026
Minor lifecycle cleanup, require registry resource key when registering
Zidane 7f2f8dc
Drop modifier templates. And remove attribute that was added in a lat…
i509VCB ccda97e
Remove Cause parameters from Account methods (#2169)
ImMorpheus 646895b
Make generic ExplosionEvent cancellable (#2167)
ImMorpheus 2aca0d1
Rename fields again to match registry names. (#2171)
i509VCB 865dce3
Return generic type E extends Engine in EngineLifcycle event instead …
i509VCB 23760f6
Do not generate Lifecycle/EngineLifecycle events.
Zidane 2c62126
fix EquipmentTypes
Faithcaio 9a839dd
fix QueryTypes
Faithcaio 23081fe
This can accept nulls.
Zidane f572172
Remove ProviderRegistration, this was replaced by ServiceRegistration.
Cybermaxke 97264d4
Add utility method for getting a live World from WorldProperties.
Zidane 35532c5
Update UserManager and GameProfile method to return Streams
dualspiral 7bfe843
RegisterCommandEvent now acts on commands, not registrars (specifically)
dualspiral 10bfb76
Fix some keys, require plugin to register key listener.
Zidane 54d497b
Fix a bunch of type tokens missing/named wrong.
Zidane 55203e0
Add a bunch more type tokens used in common (but could be used anywhe…
Zidane e387857
Fixup some things I missed.
Zidane 3cd58e1
OCD
Zidane 2bdc0fe
fix Keys registration
Faithcaio 053c7b8
fix EquipmentTypes registration
Faithcaio e5e99a6
Math field names for equipment types.
Zidane a266a80
Delegate all Subject calls from CommandCallable to underlying subject
dualspiral 6cf92a5
Toss bounded values.
Zidane 992ef50
Implement Adventure (#2180)
09c3d13
Redo some of the Parameter.Key generics
dualspiral da119d0
ServerWorlds can be defined via ResourceKeys.
Zidane 46e3007
Some location fixes between World ResourceKeys and such
gabizou 01fc0d8
Add command flags & ArgumentReader#parseResourceKey
dualspiral ad48b48
Fix for style, add type tokens
dualspiral cc5c584
Add exception handlers for the network channel. (#2183)
Cybermaxke 6dd9e14
Create a SubjectProxy and separate CommandCause from CommandContext
dualspiral 065bd3a
Support Adventure's HoverEventSource to remove some not-so-pretty met…
0e84cf7
Rename launchToTarget to launchProjectileTo.
Cybermaxke 53e08e1
Fix hand equipment type names.
Cybermaxke 3213ef4
Use a double for damage related keys. (#2174)
Cybermaxke c26beca
Nuke DummyObjectProvider (#2190)
ImMorpheus 7aa4896
Remove the concept of read-only orders (#2189)
ImMorpheus 9015cab
Add ability to programmatically create selectors (#2194)
dualspiral 50fe5d2
Forward most Cause methods to the actual Cause
dualspiral db204b9
Add support for non-Sponge/Brig client completions.
dualspiral 7bc9064
A Portal API.
Zidane 6e2382f
Add MovementTypes END_GATEWAY, ENTITY_TELEPORT
Zidane 56ec326
Re-structure around where we store Cause and where the cause objects …
Zidane f888848
Add ResourceKey parameter.
dualspiral e086c46
Add BlockState parameter
dualspiral 7d27f8e
allow multiple dataholders for one DataStore
Faithcaio a17e696
Add MovementTypes#CHORUS_FRUIT (#2204)
ImMorpheus c45de43
Corrections for the World API.
Zidane 0ca1a6d
Simplify the futures in the WorldManager.
Zidane e75e5f8
horses dont have a ContainerType
Faithcaio f33ff79
Lowercase provideCatalog ids
585bb68
APPLICABLE_POTION_EFFECTS
Faithcaio 9b0f96f
fix ArtType AZTEC2
Faithcaio 9ca6444
Not used? Goodbye error-prone.
Zidane 9ca43a0
Add online only variants to location and world parameters
dualspiral bb7129d
Define some common parameters
dualspiral d805ce0
Remove unused dependencies (#2207)
ImMorpheus 30eaf1b
fix BannerPatternShapes names to match registration
Faithcaio d517879
Fix typo in KeyValueMatcher and update some javadoc.
Cybermaxke 6dfc4cc
Tweak Guice module exclusions.
Zidane a026d87
InventoryKeys got moved to Keys
Faithcaio 6f2b050
Clean up dependency output of API
gabizou 5153677
Update Configurate to 3.7.1
dualspiral a4f0f0b
Merge branch 'stable-7' into api-8
ImMorpheus 3643ede
Remove ChangeLevelEvent
ImMorpheus 89c3b7d
Bump plugin-spi to 0.1.2-SNAPSHOT
gabizou 4917276
Add common parameter, overload for hasAny
dualspiral 1b94975
Bump plugin-spi dependency
gabizou c364213
Move ban classes to ban package (#2210)
ImMorpheus 16f95fc
Use gradle wrapper all (#2208)
ImMorpheus 70fe2ca
Fix event-gen factory (#2185)
ImMorpheus 76c1d81
Change GameProfileManager method signature to return a map (#2211)
ImMorpheus 2430567
Add Keys#SLEEP_TIMER (#2212)
ImMorpheus c52a047
[API-8] Add missing Living value accessors (#2144)
ItsDoot e1a6cc4
Remove EconomyService#deleteAccount default implementation (#2209)
ImMorpheus dbe113c
Fix NO_SPECTATOR predicate
ImMorpheus 18f1306
Fix jd errors
ImMorpheus 2757993
Add Minecraft 1.15.2 content.
Zidane 4a8b3c1
Finalise
ImMorpheus e71e1b1
Extra line
ImMorpheus d13687e
PlaceholderText -> PlaceholderComponent
ImMorpheus edbdf81
Fix package
ImMorpheus 7b06337
Add SaveChunkEvent.
Zidane c95682d
Add missing GameRules from 1.15.2
Zidane 6860200
fix VillagerTypes typo
Faithcaio 1d96cd1
Add SpawnEntityEvent.Pre for immediate events
gabizou cd62114
Add Audiences#withPermission (#2215)
ImMorpheus 14f5d96
Update HarvestEntityEvent for better exposure of what happens
gabizou cb4ec21
Remove requirement to register a canExecute predicate when registrars…
dualspiral 0cda2e8
Add method to send updated command tree to a player
dualspiral 390831f
Merge API 7 into API 8
dualspiral 309060b
Update Placeholders to use Components rather than TextComponents
dualspiral bbf5ae5
Remove TargetChunkEvent - folded into SaveChunkEvent
dualspiral b0da601
Add an API method to access the Minecraft DataVersion (#2220)
me4502 92436d3
Add globe banner pattern shape.
Cybermaxke 90933a3
Update ParrotType IDs (#2223)
Grinch 75dc661
SWIFTNESS can apply to all Entity
Faithcaio a2c7a32
every Agent is ArmorEquipable
Faithcaio d10c3bb
Expose subcommand list in Command.Parameterized. Fixes #2224
dualspiral 41ceac0
Update Key JavaDocs + Rename SlabPortions.FULL -> DOUBLE (#2226)
Grinch 6f0b9e7
USe generics in createEntity (makes plugin code cleaner)
Zidane 8f0d48a
EyeOfEnder DESPAWN_DELAY
Faithcaio 3c54748
adventure: Update for api changes (#2229)
zml2008 2839418
Split Game and Engine scoped services
dualspiral 3564dfb
Add ability to get Command.Parameterized from CommandContext (#2217)
dualspiral 5331937
build: fix guice exclusion for configurate (#2228)
zml2008 ffff582
Make KickPlayerEvent cancellable (#2179)
ImMorpheus 2962993
custom data providers
Faithcaio 1a53744
ValueUsage returns String, not a Component.
dualspiral 7305062
Another Round of Data (API Edition) (#2231)
Grinch 0c9ce0e
Allow ValueCompleters to filter based on input string
dualspiral cba4b4e
Allow a Command.Parameterized and all Parameters to be terminal
dualspiral 8a63de2
Rename seq/firstOf methods that returned a builder
dualspiral ab52841
command: Add helper methods for building flags
zml2008 3a8a176
Update for Adventure changes
kashike 46c8c4d
update Recipe API for impl
Faithcaio 55b20aa
Add new particle types and remove numerical particle types (for now)
ItsDoot df9d12e
Disable some ParticleOptions for now
ItsDoot 3021097
Re-enable ParticleOptions.VELOCITY
ItsDoot 8267c4b
Re-enable ParticleTypes.FIRE_SMOKE
ItsDoot 52b92d2
Re-enable break_block numerical particle
ItsDoot c04d38d
Re-enable the other numerical particles and do some code cleanup
ItsDoot 5cee2c2
Remove old TODO
ItsDoot d946e06
fix broken references in ParticleOptions
Faithcaio fe520c8
Merge Reimplement Particles #2213
Faithcaio 50745e0
BlockType#isAnyOf
Faithcaio e77b102
fix SoundTypes
Faithcaio 067afa2
Update to licenser 0.5
jamierocks 291f9b1
Add ability to get the CommandCause from ExecuteCommandEvent
dualspiral 259bd76
Merge update to licenser. Merges #2239
gabizou 54e6102
Advancements
Faithcaio d5fb2a7
ProjectileSources now take EntityTypes instead of Projectile class
Faithcaio b71731c
Bring back projectiles launcher & co
RedNesto 371a461
Remove ProjectileLauncher, it isn't used for anything
RedNesto 78701ec
Expose CommandExecutor on Command.Parameterized
dualspiral 923db26
Player has an identity
kashike aecab17
Fix javadocs
dualspiral 27497d8
Merge pull request #2248 from SpongePowered/feature/adventure-id
8fec1b9
Update to Adventure 4.0.0
dualspiral 07aa1fc
Merge changes from stable-7 in to api-8
gabizou 9c58e76
Update Adventure to 4.1.1
dualspiral d2626a1
Remove erroneous javadoc
dualspiral 1d1c70a
adjust DataRegistrations for impl
Faithcaio 4f0ef9d
Add Git-Commit and Git-Branch information in the manifest
gabizou 62a9e90
Add MANY_GAME_PROFILES parameter, repurpose GAME_PROFILE to only retu…
dualspiral 51ea5bb
Add missing triggers (#2242)
ImMorpheus 6ee94ee
Add missing locked field in Score class (#2243)
ImMorpheus 5892b52
Replace Duration with Ticks where it makes sense to do so.
dualspiral 98b155a
Minor changes, for consistency.
Zidane ac44180
Whoops, thanks JB.
Zidane 8e4100a
Refactor the GameProfileManager and make GameProfile immutable.
Cybermaxke 09eb3b5
Add ItemStackSnapshot parameter
dualspiral c55fcbb
Introduce more generic Palettes
gabizou 87e2688
Implement BlockChangeFlag additions
gabizou 441dd2d
Rename Rotation to Orientation for better naming accuracy
gabizou bad957b
Add proper Rotation and method to BlockState.rotate
gabizou 4bdd004
Add Mirror for BlockState mirroring
gabizou 28e734e
Add rotation and mirror to BlockEntity
gabizou 07404e4
Add VolumeStream and supporting functions
gabizou 9332716
Slight refactoring of hierarchies to avoid making all volumes data ho…
gabizou b9a1c86
Merge VolumeStream API. Merges #2241.
gabizou e37e606
Add the Orientation type token
gabizou cc86552
Add new ray trace API for blocks and entities.
dualspiral 340186d
First pass automated conversion to Configurate 4
zml2008 bc6243b
config: Expose common serializer collection
zml2008 3b3b115
begin migration to new standards for TypeToken use
zml2008 a62df2f
config: Expose shared watch service listener
zml2008 8ceed71
Update ConfigRoot to accomodate Guice changes
zml2008 a9e8c7d
Update for 4.0 release
zml2008 8ff127f
Merge Configurate 4 upgrade. Merges #2193.
gabizou d5f87a1
OCD
Zidane 9e36ba3
Separate Display Name and Custom Name.
Zidane c5d0242
Update and enable DamageEntityEvent and AttackEntityEvent
gabizou d06676f
Align TextMessageException with Adventure name + interface
zml2008 0d9e0fc
Update StateMatcher to support both BlockState and FluidState
Zidane 75408eb
DetonateExplosiveEvent is for all Explosives.
Zidane File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| # This workflow will build a Java project with Gradle | ||
| # For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle | ||
|
|
||
| name: Java CI with Gradle | ||
|
|
||
| on: | ||
| push: | ||
| branches: [ stable-7, 'api-*' ] | ||
| pull_request: | ||
| branches: [ 'api-*' ] | ||
|
|
||
| jobs: | ||
| build: | ||
|
|
||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - uses: actions/cache@v2 | ||
| with: | ||
| path: | | ||
| ~/.gradle/caches | ||
| ~/buildSrc/.gradle/caches | ||
| key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} | ||
| restore-keys: | | ||
| ${{ runner.os }}-gradle- | ||
| - name: Set up JDK 1.8 | ||
| uses: actions/setup-java@v1 | ||
| with: | ||
| java-version: 1.8 | ||
| - name: Grant execute permission for gradlew | ||
| run: chmod +x gradlew | ||
| - name: Setup environment variables | ||
| run: | | ||
| echo "GIT_COMMIT=${GITHUB_SHA}" >> $GITHUB_ENV | ||
| echo "GIT_BRANCH=${GITHUB_REF##*/}" >> $GITHUB_ENV | ||
| - name: Build with Gradle | ||
| run: ./gradlew build |
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,52 @@ | ||
| # This workflow will build a package using Gradle and then publish it to GitHub packages when a release is created | ||
| # For more information see: https://github.com/actions/setup-java#publishing-using-gradle | ||
|
|
||
| name: Publish SpongeAPI to Maven and Github Packages | ||
|
|
||
| on: | ||
| push: | ||
| branches: [ api-8 ] | ||
|
|
||
| jobs: | ||
| build: | ||
|
|
||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - name: Set up JDK 1.8 | ||
| uses: actions/setup-java@v1 | ||
| with: | ||
| java-version: 1.8 | ||
| server-id: github # Value of the distributionManagement/repository/id field of the pom.xml | ||
| settings-path: ${{ github.workspace }} # location for the settings.xml file | ||
| - uses: actions/cache@v2 | ||
| with: | ||
| path: ${{ github.workspace }}/.gradle/caches | ||
| key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} | ||
| restore-keys: | | ||
| ${{ runner.os }}-gradle- | ||
| - name: Setup env variables | ||
| run: | | ||
| echo "GIT_COMMIT=${GITHUB_SHA}" >> $GITHUB_ENV | ||
| echo "GIT_BRANCH=${GITHUB_REF##*/}" >> $GITHUB_ENV | ||
| echo "BUILD_NUMBER=${GITHUB_RUN_NUMBER}" >> $GITHUB_ENV | ||
| - name: Grant execute permission for gradlew | ||
| run: chmod +x gradlew | ||
|
|
||
| - name: Build with Gradle | ||
| run: ./gradlew build | ||
|
|
||
| # The USERNAME and TOKEN need to correspond to the credentials environment variables used in | ||
| # the publishing section of your build.gradle | ||
| - name: Publish to Sponge Maven & GitHub Packages | ||
| run: ./gradlew javadocJar sourceJar jar publish | ||
| env: | ||
| GITHUB_USERNAME: ${{ github.actor }} | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| ORG_GRADLE_PROJECT_spongeSnapshotRepo: ${{ secrets.SPONGE_MAVEN_SNAPSHOT_REPO_URL }} | ||
| ORG_GRADLE_PROJECT_spongeReleaseRepo: ${{ secrets.SPONGE_MAVEN_RELEASE_REPO_URL }} | ||
| ORG_GRADLE_PROJECT_spongeUsername: ${{ secrets.SPONGE_MAVEN_REPO_USER }} | ||
| ORG_GRADLE_PROJECT_spongePassword: ${{ secrets.SPONGE_MAVEN_REPO_PASSWORD }} | ||
|
|
||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be using our vanity url: https://discord.gg/sponge