Commit graph

596 commits

Author SHA1 Message Date
d3252eecbd
Add Bulk enchantment operation interface. 2024-07-11 16:23:53 +02:00
0fd12b4185
Splited optimised get and clean into 2 category.
Also changed getLevel(ItemStack) from CAEnchantmentBase to CAEnchantment
2024-07-11 12:42:33 +02:00
42a028f2fd
Fix eco enchant not being registered as CAEcoEnchant. 2024-07-11 12:36:06 +02:00
ac7f975b02
Fix value written as set in yml.
Fix material group not being added at to the registry.
Fix EnchantmentSquared restriction not having enchantment.
Added plugin's instance as conflict source.
2024-07-11 00:52:51 +02:00
fc7e85529c
Write default config on enchant registering.
Fix Enchantment Squared group not adding element.
2024-07-10 23:29:33 +02:00
a5c647776c
Add event for external enchantment and config registering.
Fix startup.
2024-07-10 14:26:55 +02:00
365d0ea847
Dependency enchantment registering now use the api. 2024-07-09 21:21:10 +02:00
6f1e53f68e
Fix Custom Recipe not being registered.
Fix conflict from api not working.
Add remove api for custom recipe, material group and conflict.
2024-07-09 20:22:59 +02:00
a40d2c6530
Added custom anvil recipe api & builder.
Fixed Conflict not being registered.
Build conflict on the builder instance instead of the ConflictAPI class.
2024-07-09 13:57:15 +02:00
bcd8b6ae6e
Make compatibility object with EcoEnchant and Enchant² use the api.
Abstract material group now have varargs "addAll" function.
2024-07-08 23:24:39 +02:00
1bd3328281
Update gui on enchantment registering. 2024-07-08 21:53:19 +02:00
0da9d48ee9
Fix EcoEnchant enchantment disappearing on rename. 2024-07-08 19:32:00 +02:00
0761c70286
Fix some api function not being static. 2024-07-08 17:15:39 +02:00
091fb23aac
Add get every registered for Enchantment, Conflict and Material group.
Also updated some javadoc.
2024-07-08 17:06:39 +02:00
fca7bbb416
Added material group API.
Also edited some javadoc.
2024-07-08 15:36:19 +02:00
e1f6c3f5a8
Write conflict to file when write conflict is called.
Allow custom default rarity.
Update ConflictBuilder javadoc.
Allow null source for ConflictBuilder.
Log conflict origin on warning.
2024-07-08 01:01:53 +02:00
06b3dc89c2
Add api to add conflict. 2024-07-07 22:42:52 +02:00
962ce9cb48
Add enchantment register api. 2024-07-07 21:31:54 +02:00
97f175462d
Eco enchant compatibility (#13)
Also fix issue with IF framework (gui framework) for 1.21
2024-06-25 20:22:48 +02:00
e7f1218576
Version up and README.md edit. 2024-06-23 22:33:37 +02:00
a4dda06602
Add default for eco enchant enchantments. 2024-06-23 22:13:55 +02:00
1e15bc7ab3
version up for beta version. 2024-06-22 23:54:46 +02:00
5e42bf3a90
Fix enchantment being applied to the left item when trying to combine.
Fix conflict not being applied on some situation.
2024-06-22 14:59:56 +02:00
19806773a6
Partially implemented eco enchant compatibility. 2024-06-22 03:05:08 +02:00
2e29e7f04e
Correct IF gradle config. 2024-06-20 19:19:21 +02:00
3c60e157e4
Add comment and Finish test of conflict for CAEnchant. 2024-06-20 13:54:13 +02:00
dafe595c5b
Renamed WrappedEnchantment to CAEnchantment (CustomAnvilEnchantment).
created an interface out of CAEnchantment and moved the implementation to CAEnchantmentBase.
2024-06-20 13:09:27 +02:00
fa4752ea67
Rework the conflict system to be mostly handled by the enchantment. 2024-06-20 03:00:09 +02:00
b7fda4dece
Add EcoEnchant api and eco as a dependency.
Also updated kotlin.
2024-06-20 01:00:49 +02:00
7e45c48dec
Version up and update README.md 2024-06-18 21:16:25 +02:00
427b786ad5
Enchant squared compatibility. (#12)
Allow Custom Anvil to be compatible with [Enchants
Squared](https://www.spigotmc.org/resources/enchants-squared-the-enchantsplus-rewrite-custom-enchantments-that-act-like-vanilla-ones.86747/)

Also extend enchantment list menu to have multiple pages and Add a "see only select" button for select enchantment gui.
2024-06-18 18:57:26 +00:00
eef8ab9e09
Add "See only selected" for enchant select setting gui.
Please note that the unselected enchantment not being removed on see only selected mode is a feature as it allow to undo missclick.
2024-06-18 19:31:32 +02:00
0ed0e01f3b
Fix material group not working when config fix is applied.
Also change Enchantment Squared warning message.
2024-06-18 18:15:07 +02:00
304591c3b5
Add note to default configuration promoting the config gui. 2024-06-18 17:09:55 +02:00
fd1fb97174
Automatic Enchantment Squared configuration. 2024-06-18 17:09:55 +02:00
6553122819
Add permission check for Enchantment² enchantments. 2024-06-18 03:13:40 +02:00
b1ca8bd91c
Transform EnchantSelectSettingGui to be displayed as a list. 2024-06-17 23:57:42 +02:00
33fac3eed4
create interface SettingGui and used it insted of AstractSettingGui. 2024-06-17 20:49:44 +02:00
db1dfdf144
Enchant cost and Enchant limit config gui now are multi page list. 2024-06-17 19:57:10 +02:00
502aa64f50
Abstracted away ValueUpdatableGui. 2024-06-17 16:21:26 +02:00
fc033460b4
Use correct default. Also disable Enchantment Squared anvil listener. 2024-06-16 20:58:50 +02:00
88c4f0509b
Optimised Enchant Squared get and clean. 2024-06-16 19:58:24 +02:00
c589a14b0b
Beta version up for demo purpose. 2024-06-16 14:48:12 +02:00
aa1f3a446e
Add enchant squared wrapper.
Fix dependency not being load before enchantment registering.
2024-06-16 14:48:11 +02:00
aad9974baf
Rewriten how dependency is handled 2024-06-16 12:58:44 +02:00
b512d8f732
Add Enchants Squared dependecy in a ugly way.
Could not implement it as git project as it use maven and not gradle.
2024-06-16 12:58:25 +02:00
ca07090866
Update if framework and fix readme issue. 2024-06-16 11:01:29 +02:00
7c03c3d38b
Start the implementation of a custom wrapper for enchantment. (#11)
This aim to allow support for custom implementation of
enchantment.
For example: multiple implementations of custom enchantment use
Persistent Data Container as storage.

This pr aim to create a system to wrap vanilla enchantment with the aim
to replicate this system with other enchantment storage system.
This will also aim to provide an api for other devs to register
themselves their implementation if they want to.
2024-06-16 08:58:05 +00:00
db6cace261
Add optimisation for vanilla enchantment. 2024-06-16 10:45:25 +02:00
27e8fb5719
Cleaning up and add name map. 2024-06-16 10:17:26 +02:00