[SPIGOT-1621] Main/Offhand for ArmorStand. Created: 02/Mar/16 Updated: 02/Mar/16 Resolved: 02/Mar/16 |
|
| Status: | Resolved |
| Project: | Spigot |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | New Feature | Priority: | Minor |
| Reporter: | Jos Roossien | Assignee: | Unassigned |
| Resolution: | Invalid | Votes: | 1 |
| Labels: | 1.9, ArmorStand | ||
| Description |
|
ArmorStand doesn't have main/offhand methods currently. |
| Comments |
| Comment by Jos Roossien [ 02/Mar/16 ] |
|
Player#getItemInHand(); < Deprecated |
| Comment by Tee slat [ 02/Mar/16 ] |
|
No it's not. Player.getInventory().setItemInMainHand(); |
| Comment by Jos Roossien [ 02/Mar/16 ] |
|
The one in Player is deprecated though. |
| Comment by md_5 [ 02/Mar/16 ] |
|
Nope, Player works the same way |
| Comment by Jos Roossien [ 02/Mar/16 ] |
|
Yeah I figured that out too, but shouldn't the other method be deprecated then? |
| Comment by md_5 [ 02/Mar/16 ] |
|
Use getEquipment().setXXXX |
| Comment by Jos Roossien [ 02/Mar/16 ] |
|
Yeah they always had a hand slot |
| Comment by Tee slat [ 02/Mar/16 ] |
|
Could armorstands even hold stuff before? I thought they only wore armor |