Yarn: EntityCategory -> SpawnGroup

Created on 30 Apr 2020  路  6Comments  路  Source: FabricMC/yarn

This category thing has little to do with the intrinsics of entity, but is actually often used for spawning checks of entities. This rename can also reduce confusion with EntityGroup, etc.

discussion refactor

Most helpful comment

SpawnType -> SpawnReason
EntityCategory -> SpawnGroup

All 6 comments

I think SpawnType would be better. Right not the only reason it's named "category" is that we have an EntityType class.

We already have class_3730 as SpawnType, which indicates the cause of spawning, such as NATURAL, SPAWNER, etc.

Hmm, I think SpawnGroup may be better, as entities are grouped under this and have a cap for each group.

SpawnType -> SpawnReason
EntityCategory -> SpawnGroup

@Juuxel @Yanis48 want to hear your opinion on this as well. Maybe @sfPlayer1 as well

Looks like a good rename

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ChloeDawn picture ChloeDawn  路  6Comments

Bixilon picture Bixilon  路  5Comments

ChloeDawn picture ChloeDawn  路  5Comments

Draylar picture Draylar  路  6Comments

asiekierka picture asiekierka  路  4Comments