Commit Graph

1066 Commits

Author SHA1 Message Date
Christian Koop 7f055c4391
MethodMapping: Introduces a way to check another name if first try fails
Don't like the method ignoring the frickin exception but for now logging it is fine too I guess
2021-12-10 19:14:11 +01:00
Christian Koop f8946d8aea
Merge branch 'development' 2021-12-10 18:14:54 +01:00
Christian Koop 354e7ea2f0
Version 2.6.4 2021-12-10 18:13:22 +01:00
Christian Koop 75db60efae
Hotfix CompatibleBiome class in Minecraft 1.18
It still has the same problems as the current implementation but at least it doesn't throw an exception
2021-12-09 22:16:28 +01:00
Christian Koop e521e4930f
Make SWorldBorder compatible with Minecraft 1.18 2021-12-09 22:05:53 +01:00
Christian Koop 03e94cf8e6
Merge branch 'development' 2021-12-09 04:52:35 +01:00
Christian Koop f8aed3c87e
Version 2.6.3 2021-12-09 04:52:24 +01:00
ItsAZZA 93c7b802f6
Fix wrong dye data value for Gray in #getDyeColor (#31) 2021-12-08 09:46:36 +01:00
Christian Koop 42cf648d6f
Merge branch 'development' 2021-12-07 17:20:45 +01:00
Christian Koop cd34b24517
Version 2.6.2 2021-12-07 17:19:13 +01:00
Christian Koop de06070dac
Deprecate the method `NMSUtils#getCraftClass` in favor of `ClassMapping` 2021-12-07 16:41:31 +01:00
Brianna d7010d7483 Method mapping. 2021-12-06 11:12:59 -06:00
Christian Koop 52a6c46220
Merge branch 'development' 2021-12-02 20:30:46 +01:00
Christian Koop 776ead9870
Version 2.6.1 2021-12-02 20:30:26 +01:00
Christian Koop 6c8c8a3a29
Introduces a cross-version way to send packets via `NMSManager` 2021-12-02 20:29:28 +01:00
Christian Koop 41d6df6205
Adds 1.18 support and some unit tests (#30)
Merge pull request #30 from songoda/dev-without-breaking-changes
2021-12-02 16:56:21 +01:00
Christian Koop 4f5300f44c
Version 2.6.0 2021-12-02 16:42:09 +01:00
Christian Koop 1c441e755a
Restore compatibility after commit reverts
I'm currently reverting some breaking changes so I can introduce them later and some imports broke in future commits. This fixes them


One of the related commits (may not exist anymore): 3d328df7ad
2021-12-02 16:42:09 +01:00
Christian Koop 6a3fe4691f
CompatibleParticleHandler: Minor code cleanup 2021-12-02 16:33:24 +01:00
Christian Koop 7ff7a46bf5
Implement NMS stuff for Minecraft 1.18 2021-12-02 16:33:24 +01:00
Christian Koop 5da52ca60e
Update dependency `spigot-api` to 1.18 2021-12-02 16:33:24 +01:00
Christian Koop 4335022c3e
CompatibleSound: Minor code cleanup
The whole class needs some work and should probably be used similar to `CompatibleMaterial`
2021-12-02 16:33:24 +01:00
Christian Koop e1db9b11cd
GitHub Actions: Run static code analysis with Java 17 2021-12-02 16:33:24 +01:00
Christian Koop f8d218ff3d
CompatibleMaterial: Adds missing materials to some property methods
For `#isFuel`, `#isItem`, and `#isInteractable`
2021-12-02 16:33:24 +01:00
Christian Koop 7d255685ed
ServerProject and ServerVersion: Adds support for BukkitMock 2021-12-02 16:32:48 +01:00
Christian Koop d64dfbf5c6
Add unit tests for CompatibleMaterial
This especially eases adding support for new Minecraft versions
2021-12-02 16:32:48 +01:00
Christian Koop 01e171ff44
GitHub Actions: Compile the project with Java 17
Minecraft 1.18 will require Java 17 to run
2021-11-21 19:51:46 +01:00
Christian Koop cfdebcba56
Merge branch 'development' 2021-11-01 22:32:48 +01:00
Christian Koop fd2809f982
Version 2.5.14 2021-11-01 22:30:51 +01:00
Christian Koop 6453c7b6f6
Recode `BlockUtils#updateAdjacentComparators` to work in older versions
The old implementation relied on methods that were only available in newer versions - This should be more future proof
2021-11-01 22:27:12 +01:00
Christian Koop bfe329c73b
Adds `CraftMagicNumbers` to the class mappings 2021-11-01 22:24:46 +01:00
Christian Koop 7c6817c470
Minor cleanup of #27
* Code style
* Method name and access modifier
* JavaDoc
2021-11-01 20:29:16 +01:00
Christian Koop af9def96b3
Merge branch 'Exortions/SongodaCore:master' into development (#27) 2021-11-01 20:18:04 +01:00
Exortions 3aaed3bcde
Remove duplicate code
This commit removes the duplicate error message run when the plugin crashes and turns it into one method 'crash'. This method takes in a throwable, which will be printed once the error message is logged.
2021-11-01 11:23:42 -07:00
Christian Koop e379ae601d
Fixed typo 2021-10-30 23:45:22 +02:00
Christian Koop 779d5a27e5
Uses *JaCoCo* to generate coverage reports
This can additionally be used by SonarCloud for its coverage report/visualization
2021-10-30 16:17:19 +02:00
Christian Koop 783400d9a9
Adds SonarCloud (static analysis tool) 2021-10-30 15:22:23 +02:00
Christian Koop ba7054c1e7
Fix failing test cases
The disabled test cases have been written without looking at the implementation - But it looks like the implementation is faulty and needs a patch.

We'll take a look at a later time and decide about backwards compatibility etc.
2021-10-30 15:19:53 +02:00
Christian Koop cbee2ed45e
Merge branch 'code-cleanup-and-unit-tests' into development 2021-10-30 14:54:25 +02:00
Christian Koop b4d1f4fc60
Implement first unit tests 2021-10-30 14:53:23 +02:00
Christian Koop afb53ba3a0
Add dependencies for unit tests 2021-10-30 14:53:23 +02:00
Christian Koop 0712730ca6
Updates dependency `org.jetbrains:annotations` from 13.0 to 22.0.0 2021-10-30 14:27:51 +02:00
Christian Koop 93fbc6463f
General code cleanup [DEV-2]
Hopefully no breaking changes
2021-10-30 14:10:57 +02:00
Christian Koop 97feaf3b9c
Removes `@author` and `@since` from class comments
These kind of information can easily be found in git/on GitHub
2021-10-30 14:10:22 +02:00
Christian Koop 39bdd862fb
Apply new code style [DEV-2] 2021-10-30 14:10:22 +02:00
Christian Koop 92f42e6261
Update EditorConfig [DEV-2] 2021-10-30 14:10:22 +02:00
Christian Koop a23224dbe2
ClientVersion: Fixes default version trying to return the server version 2021-10-30 14:09:45 +02:00
Christian Koop 04bc2145a1
ClientVersion: Adds 1.17.1 protocol version 2021-10-30 14:09:08 +02:00
Christian Koop ae767011d9
Merge branch 'development' 2021-10-27 19:52:02 +02:00
Christian Koop 749c3a9a28
Version 2.5.13 2021-10-27 19:51:54 +02:00