Commit Graph

165 Commits

Author SHA1 Message Date
Christian Koop
e9f84d3393
Release v3.6.0-SNAPSHOT 2024-10-02 20:55:51 +02:00
Christian Koop
bdcc9bb0b9
feat: Introduce CompatibleCrop class
At least EpicFarming and EpicAutomators can make good
use of this class and get rid of code that relies on
magic numbers and needs cross-version support.
2024-10-02 20:20:24 +02:00
Christian Koop
124a6aa9c3
Release v3.5.0-SNAPSHOT 2024-09-23 09:49:31 +02:00
Christian Koop
cb25ddd7a1
Release v3.4.0-SNAPSHOT 2024-09-06 11:01:20 +02:00
Christian Koop
3dcf402269
chore(deps): Upgrade XSeries dependency for better MC 1.21.1 support 2024-08-17 16:53:23 +02:00
Christian Koop
2a8d30aefa
Release v3.3.0-SNAPSHOT 2024-08-11 10:45:11 +02:00
Christian Koop
97a9e5f6e8
feat: Compile v1_21_R1 nms module with Spigot 1.21.1 for compatibility 2024-08-11 10:39:45 +02:00
Christian Koop
4cd0c02aea
Release v3.2.0-SNAPSHOT 2024-07-19 19:36:57 +02:00
Christian Koop
157150a2f1
feat: introduce MajorServerVersion class based on old ServerVersion class
FSB has too many usages of the ServerVersion class and
I don't feel like updating 50+ or 100+ or whatever uses of it.
It takes too much brain time for me to re-think the version constraints
2024-07-19 19:12:35 +02:00
TeamHRLive
926b5cbcf7 [Fixed] Error due to Particles in 1.8.8 2024-07-09 18:42:46 +05:30
ceze88
3a43b55e70 Fix 1.8 compatibility 2024-07-08 17:40:26 +02:00
Christian Koop
d431fdb708
chore(deps): update XSeries to v11.2.0 2024-07-08 09:18:10 +02:00
ceze88
af9e071ad8 Fix missing V1_20_6 server version enum 2024-07-02 15:49:18 +02:00
ceze88
f05ca97af3 Add all versions of minecraft to ServerVersion 2024-06-22 15:53:54 +02:00
Christian Koop
4be282c3a6
Release v3.1.0-SNAPSHOT 2024-06-22 13:10:51 +02:00
Christian Koop
8db3aa109d
feat: add nms submodule for Minecraft 1.21 support 2024-06-21 21:27:51 +02:00
Christian Koop
fabce46c4e
chore(deps): update item-nbt-api and XSeries for Minecraft 1.21 support 2024-06-21 20:31:50 +02:00
Christian Koop
e417233b5b
Release v3.0.8-SNAPSHOT 2024-06-05 14:55:45 +02:00
ceze88
ed1f103131 Fix reflection issues 2024-05-26 19:45:48 +02:00
ceze88
959983ba3c Temp fix for paper 1.20.5+ servers 2024-05-13 19:13:17 +02:00
Christian Koop
3feccc65b2
chore(deps): Update XSeries to v10.0.0 for better 1.20.6 compatibility 2024-05-11 15:29:17 +02:00
Christian Koop
91eb96d244
Release v3.0.7-SNAPSHOT 2024-05-09 22:03:10 +02:00
Christian Koop
a7f7bdfc2b
feat: Add Spigot 1.20.6 support 2024-05-01 23:09:10 +02:00
Christian Koop
06bd403670
feat: add support for spigot 1.20.5 / v1_20_R4 2024-05-01 23:01:22 +02:00
ceze88
af61d7646f Add support for bamboo 2024-04-22 12:44:20 +02:00
ceze88
4b2c65fe62 Fix 1.8 compatibility 2024-04-22 11:35:46 +02:00
ceze88
4301ec5487 Release v3.0.6-SNAPSHOT 2024-04-15 14:09:48 +02:00
Christian Koop
6abaeb4cf8
chore(deps): Updates XSeries to v9.10.0 2024-04-06 19:32:27 +02:00
Brianna O'Keefe
60e7e57cdb version 3.0.5 2024-04-05 22:39:49 -05:00
Christian Koop
d3f9f4c226
feat:Some compatibility with paper builds without CraftBukkit relocation
To be fully compatible, the `ClassMapping` and `MethodMapping` classes should finally be removed
and their usages updated.

Announced in https://forums.papermc.io/threads/important-dev-psa-future-removal-of-cb-package-relocation.1106/
2024-03-29 15:32:39 +01:00
Brianna O'Keefe
5379537f7c version 3.0.4 2024-03-27 13:13:01 -05:00
Christian Koop
e4b5464130
chore: Delete deprecated CompatibleSound class
This class apparently also triggers some virus scanners (false positives obviously):
https://www.virustotal.com/gui/file/d4a32b05727863aaf87da3b0e70a2760031385f68f15fdb1246738898e468926
2024-03-27 09:34:46 +01:00
Brianna OKeefe
e7340bbc89 version 3.0.3 2024-03-21 17:09:19 -05:00
Brianna O'Keefe
9f6f8fb660 version 3.0.1 2024-03-12 14:19:08 -05:00
Christian Koop
796d71fb9c
perf: Lazily pre-populates cache for CompatibleMaterial#getFurnaceResult
The previous implementation would not cache the result for Materials without a furnace result.
So it would always check all recepies before return null.

We now just populate the whole cache instead of populating each Material<->Result combination one-by-one.
We are already iterating all the recepies anyways and EpicFurnaces should be the only plugin to use this method.
So there's actually not even a memory-consumtion trade-off right now because over time it would be
like this anyway – Just with worse performance
2024-02-25 18:01:29 +01:00
Christian Koop
56d46f4de0
chore: Updates XSeries to v9.8.0 for Spigot 1.20.4 compatibility 2023-12-12 14:27:33 +01:00
ceze88
e642980c2c Update XSeries 2023-11-06 14:21:29 +01:00
Christian Koop
e6b2e12eb3
chore: Updates XSeries to support Spigot 1.20.2 2023-10-19 17:14:08 +02:00
Christian Koop
e3d7b0d5af
refactor: CompatibleMaterial#getFurnaceResult(XMaterial) 2023-10-17 17:25:12 +02:00
ceze88
fc4c915791 FIx caching wrong item 2023-10-17 14:22:21 +02:00
ceze88
40992836b2 Add caching for recipes to improve performance 2023-10-05 11:11:41 +02:00
Christian Koop
8c22f5d141
Make CompatibleMaterial#getMaterial(String) with null and empty values
XMaterial throws an Exception if provided with `null` or `""`.
We make sure that an empty Optional is returned instead. Mainly for backwards compatibility reasons.
2023-08-16 17:54:37 +02:00
Christian Koop
d28a961216
Re-implement CompatibleMaterial#getEggType 2023-07-01 13:51:24 +02:00
Christian Koop
0d1bd6075d
Re-implement CompatibleMaterial#isBrewingStandIngredient 2023-06-29 09:22:59 +02:00
Christian Koop
132ea8d871
Re-code CompatibleMaterial#getBurnResult to be version-independant
It now is version, server-implementation independant and supports recipes from other plugins ^^
2023-06-29 09:20:34 +02:00
Christian Koop
2935009634
Implement getYieldForCrop and getSeedForCrop in CompatibleMaterial
Similar methods with different names existed before and are used in EpicFarming.
I decided on keeping them in here instead of moving them to the plugin.
2023-06-25 16:12:12 +02:00
Christian Koop
b7e64d17e6
Updates CompatibleHand to accept LivingEntity instead of Player
Needed in EpicEnchants plugin
2023-06-25 12:40:14 +02:00
Christian Koop
7ce74de993
Deprecates CompatibleSound in favor of XSound from the XSeries library 2023-06-24 15:58:38 +02:00
Christian Koop
f2c204ae89
Restore CompatibleMaterial#getGlassPaneColor(int)
Needed in default configuration of plugins using the Core's GUI APIs
2023-06-21 16:06:55 +02:00
Christian Koop
bac3c1b16e
Re-implemented CompatibleMaterial + changed usages to XMaterial 2023-06-20 20:22:29 +02:00