yarn icon indicating copy to clipboard operation
yarn copied to clipboard

StatusEffectInstance -> StatusEffect, SE -> SEType, SEType -> SECategory

Open Juuxel opened this issue 4 years ago • 11 comments

(SE = StatusEffect) This would make it match things like Entity and EntityType.

Juuxel avatar Jan 04 '20 18:01 Juuxel

How do they show up in vanilla registry class?

liach avatar Jan 10 '20 13:01 liach

The registry (of StatusEffects) is called mob_effect.

Juuxel avatar Jan 10 '20 14:01 Juuxel

Hmm, we have ItemStack vs Item, InfoEnchantment vs Enchantment, and StatusEffectInstance vs StatusEffect. They are all type + count combinations with some extra informations. Don't think simply renaming StatusEffectInstance to StatusEffect is helpful in this way.

liach avatar Jan 10 '20 15:01 liach

StatusEffect vs StatusEffectType vs StatusEffectCategory would match Entity vs EntityType vs EntityCategory, as well as BlockEntity vs BlockEntityType.

Also, what sort of a name is InfoEnchantment 🤔

Juuxel avatar Jan 10 '20 15:01 Juuxel

InfoEnchantment is the enchantment type + level pair. maybe we can have InfoEnchantment -> Enchantment and Enchantment -> EnchantmentType

liach avatar Jan 11 '20 02:01 liach

Nah that doesn't make much sense imo. It would be more like an EnchantmentState probably. Still not big on that name though.

Prospector avatar Jan 11 '20 02:01 Prospector

Sure, I agree with juuz's rename proposal now.

liach avatar Jan 11 '20 15:01 liach

Note that EntityCategory is no more (now renamed to SpawnGroup), may need a better name for StatusEffectCategory

liach avatar May 31 '20 10:05 liach

I think StatusEffectCategory still works for what it does. (we don't have to follow entity naming in status effects)

Juuxel avatar Jun 01 '20 21:06 Juuxel

Now looking at #2648, renaming the current enum for beneficial harmful and neutral to category is good. The other two renames though I still object to.

liach avatar Aug 24 '21 04:08 liach

Would StatusEffectEntry be a suitable name for the current StatusEffectInstance?

haykam821 avatar Dec 30 '21 18:12 haykam821