File tree Expand file tree Collapse file tree
src/main/java/de/erethon/aether/creature Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515import net .minecraft .world .entity .Avatar ;
1616import net .minecraft .world .entity .Entity ;
1717import net .minecraft .world .entity .EntityType ;
18+ import net .minecraft .world .entity .HumanoidArm ;
1819import net .minecraft .world .entity .Mob ;
1920import net .minecraft .world .entity .decoration .Mannequin ;
2021import net .minecraft .world .item .component .ResolvableProfile ;
@@ -31,7 +32,7 @@ public class AetherPlayer extends AetherBaseMob {
3132
3233 private static EntityDataAccessor <ResolvableProfile > DATA_PLAYER_PROFILE = null ;
3334 private static EntityDataAccessor <Optional <net .minecraft .network .chat .Component >> DATA_DESCRIPTION = null ;
34- private static EntityDataAccessor <Byte > DATA_PLAYER_MAIN_HAND = null ;
35+ private static EntityDataAccessor <HumanoidArm > DATA_PLAYER_MAIN_HAND = null ;
3536
3637 public AetherPlayer (EntityType <? extends Mob > type , Level world ) {
3738 super (type , world );
@@ -60,7 +61,7 @@ protected void onFirstSpawn() {
6061 getEntityData ().set (DATA_PLAYER_MODE_CUSTOMISATION , ALL_LAYERS );
6162 getEntityData ().set (DATA_PLAYER_PROFILE , getResolvableProfile ());
6263 getEntityData ().set (DATA_DESCRIPTION , Optional .empty ());
63- getEntityData ().set (DATA_PLAYER_MAIN_HAND , ( byte ) 1 ); // Right hand
64+ getEntityData ().set (DATA_PLAYER_MAIN_HAND , HumanoidArm . RIGHT ); // Right hand
6465 }
6566
6667 @ Override
You can’t perform that action at this time.
0 commit comments