Commit Graph

43 Commits

Author SHA1 Message Date
Christian Koop
8310541b91
Fix ServerVersion#UNKNOWN being treated like a normal version
This is required for unit tests (especially the `Bukkit#getServer != null` check).
But it seems faulty to even trat an unknown version like a normal one.
2022-06-26 01:39:39 +02:00
Christian Koop
a42d03aec3
Fixes empty slots in ConfigEditorGui item select 2022-03-18 14:33:50 +01:00
Christian Koop
a0050aadd6
Adds Minecraft 1.18.2 support 2022-03-18 14:33:50 +01:00
Christian Koop
22d0c395e4
Fixes typo in MethodMapping class 2022-03-18 14:33:50 +01:00
ItsAZZA
33ef151c07 Adds missing Music Disc Otherside 2022-02-13 21:12:10 +02:00
Christian Koop
c9f7e73b8b
Adds MethodMapping for Chunk#getWorld in Spigot 1.17
This fixes NPEs in `BlockUtils#updateAdjacentComparators` as a method named `D` exists but returns void and not the needed World.
2022-02-10 18:56:42 +01:00
Christian Koop
b89c14860c
Fix some more MethodMapping related stuff (NMS) 2021-12-18 18:16:44 +01:00
Christian Koop
fbb61cf9f6
Further usage of MethodMapping and ClassMapping classes 2021-12-14 20:55:46 +01:00
Christian Koop
9b5eda60b3
Updates BlockUtils to use MethodMapping and ClassMapping 2021-12-13 18:00:36 +01:00
Christian Koop
b033c059a3
Fix MethodMapping and its usage in ItemUtils 2021-12-11 15:00:24 +01:00
Christian Koop
070f1adee7
Fixes CompatibleBiome#isCompatible and #getBiome
`#isCompatible` always returned true and `#getBiome` could result in an Exception because of biomes not having any version information configured (silencing it should not be the way to go but Minecraft 1.18 updates \o/)
2021-12-10 19:35:30 +01:00
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
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
Brianna
d7010d7483 Method mapping. 2021-12-06 11:12:59 -06:00
Christian Koop
6c8c8a3a29
Introduces a cross-version way to send packets via NMSManager 2021-12-02 20:29:28 +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
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
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
bfe329c73b
Adds CraftMagicNumbers to the class mappings 2021-11-01 22:24:46 +01: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
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
e528f51388
Replace dependency viaversion-bukkit with latest viaversion-api 2021-10-26 21:19:05 +02:00
Fernando Pettinelli
133388ea87 Adds raw ores to the getBurnResult method, add isBrewingStandIngredient. 2021-09-30 13:02:12 -03:00
Fernando Pettinelli
de8bf59168 Add PIGLIN_BRUTE_SPAWN_EGG material. (This is the right one) 2021-08-29 16:04:59 -04:00
Christian Koop
03e2360a98
Updated logging to mostly use java.util.logging.Logger [SD-8645] 2021-08-29 13:49:01 +02:00
Christian Koop
6dbf806e7d EditorConfig 2021-07-08 15:37:37 +02:00
Christian Koop
a73ed7908e Update pom.xml files and project structure
* Should fix IntelliJ sometimes not finding classes
* Should make things easier to understand and maintain
* Rename `LICENSE.md` to `LICENSE`
2021-07-08 15:37:37 +02:00
Christian Koop
3bc35058ac
CompatibleMaterial: Add missing BLACKSTONE_SLAB 2021-07-05 11:48:10 +02:00
Fernando Pettinelli
b53c4c8c87 Renamed GRASS_PATH to DIRT_PATH for 1.17. 2021-06-30 10:13:46 -04:00
Brianna
711125aa67 Added support for Worldborders in 1.17 2021-06-21 17:18:18 -05:00
Brianna
c861aafe82 Added Lootables to SongodaCore. 2021-06-13 18:04:16 -05:00
Brianna
26f27d7b4f Add another class mapping. 2021-06-13 16:58:53 -05:00
Brianna
6c197d3309 Fixed some typos. 2021-06-13 16:47:36 -05:00
Brianna
f86e35c7a2 Oops this is supposed to be uppercase. 2021-06-13 13:23:07 -05:00
Brianna
7fa5e01de1 Somethings wrong with this in 1.8 2021-06-13 10:10:40 -05:00
Brianna
7ab0c4d106 1.17 Support 2021-06-12 20:04:20 -05:00
Christian Koop
65ea47291c
Fix builds on Linux
Some file systems are case-sensitive causing maven builds to fail
2021-05-28 08:14:12 +02:00