Commit Graph

152 Commits

Author SHA1 Message Date
bb9710acfc Stores original metadata to all armored elytras 2023-03-20 12:25:52 +01:00
20e1bc4550 Renames packages, and adds code for storing original metadata 2023-03-19 13:03:13 +01:00
5730d41bc6 Improves various things
Gets rid of XMaterial
Updates API version to 16
Sets custom_model_data values to allow custom textures for each armored elytra
Extracts and renames interfaces and classes used for the armored elytra builder
2023-03-15 13:48:06 +01:00
80ed7838d9 Fixes code style and some warnings 2023-03-10 16:24:12 +01:00
Pim van der Loos
3db0627cc7
Minor code cleanup
- Resolve some Checkstyle violations (mostly line lengths)
- deduplicated some code
2022-06-20 11:10:03 +02:00
Pim van der Loos
536e81860c
Extract packaged localization files on start 2022-05-26 21:26:43 +02:00
Pim van der Loos
891f87a1ea
Merge pull request #7 from xMikux/master
Add Traditional Chinese
2022-05-26 10:21:46 +02:00
Pim van der Loos
926d49dc0c
Read localization files as UTF-8
- The localization files were read with whatever char encoding before which could cause issues in some cases. They are now read as UTF-8. Fixes #8
2022-05-26 10:19:48 +02:00
Miku
67e87dc344
Add Traditional Chinese 2022-05-24 20:28:31 +08:00
Pim van der Loos
93a290cea6
Sort available enchantments alphabetically 2022-05-04 12:03:28 +02:00
Pim van der Loos
2af028a074
Merge pull request #6 from PimvanderLoos/fix-unbreakable
Consider Unbreakable in DurabilityManager
2022-04-08 19:20:54 +02:00
Pim van der Loos
294f4d1cf3
Slightly simplify DurabilityManager
- Added a simple DurabilityManager#isBroken methods. This allows hiding the getMaxDurability method and move any isBroken logic out of the classes where it was previously used.
2022-04-04 17:55:17 +02:00
Pim van der Loos
d6bd4feb68
Consider Unbreakable in DurabilityManager
- The DurabilityManager now handles unbreakable items by always returning a durability of 0 (fully repaired) for items tagged as unbreakable. This should fix the issue where armored elytras could break even when 'unbreakable' is enabled in the config.
2022-04-04 17:55:17 +02:00
Pim van der Loos
e2496fa8b6
Fix unbreakable only being set in certain cases 2022-04-04 17:55:15 +02:00
Pim van der Loos
bdb005a3c8
Fix unbreakable only being set in certain cases 2022-04-04 17:52:26 +02:00
Pim van der Loos
ca2b28e267
Rename enchantmentcontainer creation method
- Slightly changed the name of the static method in the EnchantmentContainer class that is used to create new containers from ItemStacks. It's purpose/usage is a bit more clear now.
2022-03-13 23:30:39 +01:00
Pim van der Loos
bb40e20d90
Simplify merge level application
- Checking and updating the new level of a merged enchantment used several calls to the map, which wasn't necessary.
2022-03-13 23:26:49 +01:00
Pim van der Loos
ccdd5b9af1
Merge pull request #5 from bonn2/feature-mutually-exclusive-enchants
Add mutuallyExclusiveEnchantments config option
2022-03-13 19:24:13 +01:00
Brett Bonifas
d9cb09b716 Form != From :) 2022-03-13 14:20:13 -04:00
Brett Bonifas
e679ca85fa Re-Add mutually exclusive check to merge 2022-03-13 14:16:51 -04:00
Brett Bonifas
5fb902d46f Move mutually exclusive check to constructor 2022-03-12 11:24:17 -05:00
Brett Bonifas
1fe5bc2634 Remove redundant filter 2022-03-10 15:58:15 -05:00
Brett Bonifas
6435c82547 Change recommended source of enchantment names to a commmand, rather than github 2022-03-10 15:54:42 -05:00
Brett Bonifas
28e30265c5 Maintain a list of allowed and disallowed enchantments rather than calling from the config every time 2022-03-10 15:34:03 -05:00
Brett Bonifas
67a4b8c7c5 Check mutuallyExclusiveEnchantment count every enchantment rather than once per group 2022-03-10 12:06:21 -05:00
Brett Bonifas
245b882411 Convert LinkedHashSet to List 2022-03-10 12:02:41 -05:00
Brett Bonifas
f4cfdcd227 Make combined final again (minimizing diff) 2022-03-09 10:31:46 -05:00
Brett Bonifas
40dbb27c58 Match formatting style 2022-03-09 10:24:05 -05:00
Brett Bonifas
ad4294b8f2 Improve mutuallyExclusive config comment 2022-03-09 10:23:42 -05:00
Brett Bonifas
a0b0d78ee9 Remove (now unused) allowMultipleProtectionEnchantments config option 2022-03-09 10:06:06 -05:00
Brett Bonifas
17533752e3 Remove debug statement 2022-03-09 09:59:35 -05:00
Brett Bonifas
db7d136e4e Clear enchantments before applying in this#applyEnchantments(ItemStack) 2022-03-09 09:56:41 -05:00
Brett Bonifas
79a820efc1 Revert "Add mutual check to enchant"
This reverts commit 4c38eeb683.
2022-03-09 09:29:39 -05:00
Brett Bonifas
4c38eeb683 Add mutual check to enchant 2022-03-09 00:57:07 -05:00
Brett Bonifas
4c0e30bbc9 Add mutual check to merge 2022-03-09 00:56:04 -05:00
Brett Bonifas
9e1d8ec69f Add mutuallyExclusiveEnchantments config option 2022-03-08 22:36:11 -05:00
Brett Bonifas
1b9b97db35 Change apache repository to a plugin repository
(Fixes resolution of shade)
2022-03-08 22:07:11 -05:00
Pim van der Loos
9908fbdb74
Merge pull request #4 from spartacus04/master
Add Italian language
2022-01-21 07:06:26 +01:00
spartacus04
4c83e77735 Add Italian language 2022-01-20 17:09:12 +01:00
Pim van der Loos
a305858854
Handle enchantment registration more safely 2022-01-02 07:49:53 +01:00
Pim van der Loos
afdce9c0e2
Fix mending for new durability system 2021-12-23 13:32:15 +01:00
Pim van der Loos
ebe8899813
Fix repairing in builder being ignored 2021-12-23 13:00:05 +01:00
Pim van der Loos
eec0d5452d
Make EnchantmentContainer iterable 2021-11-04 14:10:40 +01:00
Pim van der Loos
28522ccbf6
Drop support for all versions of MC < 1.17
- Only versions 1.17 and up are supported from now on.
2021-11-04 13:39:45 +01:00
Pim van der Loos
9f9c5b7980
Simplify MC version parsing 2021-11-04 13:36:23 +01:00
Pim van der Loos
be657aada5
Clean up config file writing 2021-11-04 13:35:24 +01:00
Pim van der Loos
6dbb359eb2
Clean up ConfigLoader variables a bit 2021-11-04 13:04:01 +01:00
Pim van der Loos
4c8cf55021
Use builder for creating armored elytras
- All armored elytra creation/modification is now handled by the ArmoredElytraBuilder class.
- When creating a new armored elytra, the existing NBT data is now no longer removed.
2021-11-03 17:56:53 +01:00
Pim van der Loos
daafa5572c
Update pom to ensure plugin.yml version is set 2021-11-03 17:15:42 +01:00
Pim van der Loos
1aa1a5df73
Update Maven Shade to support J16 2021-11-03 16:14:24 +01:00