Conversation
5f0a59e to
c0b74b5
Compare
|
Actually, ConsumeEffect might be not the best name because DEATH_PROTECTION component also uses them. Can't think of a different name though |
|
More fitting names could be |
e70c4d9 to
e0debb6
Compare
|
|
| /** | ||
| * The set of {@link PotionEffect}s applied on use of an {@link ItemStack}. | ||
| */ | ||
| public static final Key<WeightedCollectionValue<PotionEffect>> APPLICABLE_POTION_EFFECTS = Keys.weightedKey(ResourceKey.sponge("applicable_potion_effects"), PotionEffect.class); |
There was a problem hiding this comment.
Because API-14 have been released, this would be a breaking change. Rebase the PR to API-15 or keep this key for now and remove it in later versions.
|
|
|
I don't mind renaming it to |
|
Well, that's just my opinion, I'm not 100% sure |
|
I prefer shorter names overall though here I'm not 100% sure as well :/ |
|
Renamed to |
|
Merged by 3462203 |
SpongeAPI | Sponge
Exposes
ConsumeEffects, addsKeys.CONSUME_EFFECTSandKeys.DEATH_PROTECTION_EFFECTSto apply them toItemStack.Currently
Keys.APPLICABLE_POTION_EFFECTSdoes nothing and itsWeithedTableapproach doesn't make much sense anymore so I think it would be better to just delete it.