User Tools

Site Tools


tutorial:entity

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
tutorial:entity [2020/03/10 14:18]
earthcomputer [Registering an Entity]
tutorial:entity [2020/03/10 14:21] (current)
earthcomputer [Registering an Entity] Make entity category consistent
Line 36: Line 36:
 Note that, if your entity class has more than one constructor,​ you may need to cast the constructor reference, like so: Note that, if your entity class has more than one constructor,​ you may need to cast the constructor reference, like so:
 <code java> <code java>
-FabricEntityTypeBuilder.create(EntityCategory.MISC, (EntityType.EntityFactory<​CookieCreeperEntity>​) CookieCreeperEntity::​new)+FabricEntityTypeBuilder.create(EntityCategory.AMBIENT, (EntityType.EntityFactory<​CookieCreeperEntity>​) CookieCreeperEntity::​new)
 </​code>​ </​code>​
  
tutorial/entity.txt ยท Last modified: 2020/03/10 14:21 by earthcomputer