-
-
Notifications
You must be signed in to change notification settings - Fork 991
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rework the provider system #5087
base: 2.x
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
initial look-through
...SReflectionProvider/src/main/java/net/ess3/nms/refl/providers/ReflDataWorldInfoProvider.java
Outdated
Show resolved
Hide resolved
providers/BaseProviders/src/main/java/net/ess3/provider/providers/FlatSpawnEggProvider.java
Outdated
Show resolved
Hide resolved
Essentials/src/main/java/com/earth2me/essentials/ProviderFactory.java
Outdated
Show resolved
Hide resolved
Essentials/src/main/java/com/earth2me/essentials/ProviderFactory.java
Outdated
Show resolved
Hide resolved
should rebase to dev/2.20 branch, otherwise lgtm |
# Conflicts: # Essentials/src/main/java/com/earth2me/essentials/IEssentials.java
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm v2
Essentials/src/main/java/com/earth2me/essentials/ProviderFactory.java
Outdated
Show resolved
Hide resolved
# Conflicts: # Essentials/src/main/java/com/earth2me/essentials/signs/SignEnchant.java
# Conflicts: # Essentials/src/main/java/com/earth2me/essentials/Kit.java
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Every provider getter is still objectively worse to both read and write than before. I'm still in favour of improving provider internals, but this PR either needs to retain the old provider getters, or significantly clean up provider usage to remove the repeated getter calls everywhere.
people may forget what these things do later
# Conflicts: # Essentials/src/main/java/com/earth2me/essentials/Essentials.java # Essentials/src/main/java/com/earth2me/essentials/IEssentials.java # Essentials/src/main/java/com/earth2me/essentials/Kit.java # Essentials/src/main/java/com/earth2me/essentials/MetaItemStack.java # Essentials/src/main/java/com/earth2me/essentials/Settings.java # Essentials/src/main/java/com/earth2me/essentials/commands/Commandanvil.java # Essentials/src/main/java/com/earth2me/essentials/commands/Commandcartographytable.java # Essentials/src/main/java/com/earth2me/essentials/commands/Commandcreatekit.java # Essentials/src/main/java/com/earth2me/essentials/commands/Commandessentials.java # Essentials/src/main/java/com/earth2me/essentials/commands/Commandgrindstone.java # Essentials/src/main/java/com/earth2me/essentials/commands/Commandloom.java # Essentials/src/main/java/com/earth2me/essentials/commands/Commandsmithingtable.java # Essentials/src/main/java/com/earth2me/essentials/commands/Commandstonecutter.java # Essentials/src/main/java/com/earth2me/essentials/commands/EssentialsCommand.java # Essentials/src/main/java/com/earth2me/essentials/items/FlatItemDb.java # Essentials/src/main/java/com/earth2me/essentials/items/LegacyItemDb.java # Essentials/src/main/java/com/earth2me/essentials/signs/SignAnvil.java # Essentials/src/main/java/com/earth2me/essentials/signs/SignCartography.java # Essentials/src/main/java/com/earth2me/essentials/signs/SignGrindstone.java # Essentials/src/main/java/com/earth2me/essentials/signs/SignLoom.java # Essentials/src/main/java/com/earth2me/essentials/signs/SignSmithing.java # Essentials/src/main/java/com/earth2me/essentials/utils/LocationUtil.java
# Conflicts: # Essentials/src/main/java/com/earth2me/essentials/Essentials.java # Essentials/src/main/java/com/earth2me/essentials/IEssentials.java
# Conflicts: # Essentials/src/main/java/com/earth2me/essentials/Essentials.java # Essentials/src/main/java/com/earth2me/essentials/IEssentials.java # Essentials/src/main/java/com/earth2me/essentials/RandomTeleport.java # Essentials/src/main/java/com/earth2me/essentials/commands/EssentialsCommand.java # Essentials/src/main/java/com/earth2me/essentials/items/FlatItemDb.java # providers/BaseProviders/src/main/java/net/ess3/provider/providers/BasePotionDataProvider.java # providers/BaseProviders/src/main/java/net/ess3/provider/providers/LegacyPotionMetaProvider.java
# Conflicts: # Essentials/src/main/java/com/earth2me/essentials/AlternativeCommandsHandler.java
# Conflicts: # Essentials/src/main/java/com/earth2me/essentials/Essentials.java
# Conflicts: # Essentials/src/main/java/com/earth2me/essentials/commands/Commandrecipe.java
# Conflicts: # Essentials/src/main/java/com/earth2me/essentials/Essentials.java # Essentials/src/main/java/com/earth2me/essentials/RandomTeleport.java
# Conflicts: # Essentials/src/main/java/com/earth2me/essentials/Settings.java
it's perfect
event providers are still ugly and im not touching them