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 4c38eeb68315ed03d333aa1ff5a1d21589efacb7.
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
Pim van der Loos
bd9380b538
Get rid of INBTEditor interface
...
- The INBTEditor interface has been removed, as there's only a single implementation of it with absolutely no need to create any others in the future.
2021-11-03 13:58:37 +01:00
Pim van der Loos
527d4c079c
Bump minimum requirements to Java 16 and MC 1.17
2021-11-02 17:34:58 +01:00
Pim van der Loos
831e5464c5
Move DurabilityManager class
2021-11-02 16:40:00 +01:00
Pim van der Loos
3b93735c68
Merge pull request #3 from PimvanderLoos/durability
...
Durability
2021-11-02 15:20:13 +01:00
Pim van der Loos
d4d8e307c5
Use new durability in other classes
2021-11-02 15:04:18 +01:00
Pim van der Loos
3b1dda55d7
Use custom durability
...
- The durability of armored elytras is now stored in their NBT. This allows us to use custom max durability values for different armor tiers. Currently, only the anvil code uses the new durability system. The rest of the plugin will follow in a future commit, as all parts that interact with durability in any way will need to be updated. The durability returned by the regular methods now only show the display durability.
2021-11-01 18:16:36 +01:00
Pim van der Loos
97b84ad211
Dynamically generate repair options for config
2021-11-01 15:59:50 +01:00
Pim van der Loos
53b5dfbc5f
Cleanup pom a bit
2021-11-01 13:48:07 +01:00
Pim van der Loos
7e78ee74e9
Add allowAddingEnchantments config option
...
- Added the "allowAddingEnchantments" config option to control whether enchantments can be added to existing armored elytras.
2021-10-29 12:38:54 +02:00
Pim van der Loos
62f316314f
Rename enchantment list command and add aliases
...
- The old name of the command to list all registered commands on the server was "listAvailable". This name provides no information about what it actually lists, making it hard to remember or use. The command now has 3 names: "listAvailableEnchantments", "listEnchantments", and "enchantments". These commands should be easier to remember and use.
2021-09-09 13:53:35 +02:00
Pim van der Loos
0a9ead5ffb
Fix lore being ignored
...
- The lore, as specified by the translation file, was not applied on ArmoredElytras. This has now been resolved by retrieving the value when creating new AEs.
2021-09-09 13:44:47 +02:00
Pim van der Loos
61e94ee8a1
Update dependencies
2021-09-09 13:31:38 +02:00
Pim van der Loos
bde19bcd6c
Add missing netherite permission nodes
2021-06-26 20:56:24 +02:00
Pim van der Loos
7ed7236450
Add missing null check, cache Random
2021-05-20 16:56:40 +02:00
Pim van der Loos
8f1a8baf76
Make AE colors persistent
...
- Colors of Leather Armored Elytras (as copied from the leather chestplate, if it had a color) is now persistent through AE enchanting/repairing. However, upgrading the AE to a different tier will still remove the data from the AE (as there is no reason to keep it around).
2021-05-18 16:31:11 +02:00
Pim van der Loos
fb449397a3
Store armor color in NBT
...
- When a new AE is constructed using leather armor, the armor's color is now stored in the chestplate. Note that this is just an initial implementation, as enchanting/repairing will currently remove the color. This will be fixed in a future commit.
2021-05-17 23:00:46 +02:00
Pim van der Loos
bea45dde30
Fix enchantments in smithing table crafting
...
- Enchantments on the second item in the smithing table were not taken into account for the end result.
2021-04-29 19:50:53 +02:00
Pim van der Loos
73ad900387
Enable more style checks and fix violations
2021-03-28 13:01:08 +02:00
Pim van der Loos
defb6b8b44
Enforce only correct curly braces placement
2021-03-28 11:30:45 +02:00
Pim van der Loos
c8ba1b5471
Add Checkstyle
...
- Added Checkstyle. Currently only line length is enabled.
2021-03-28 11:03:39 +02:00