mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-09-11 15:19:12 +02:00
Add some PlayerAnimation entries for using items
This commit is contained in:
parent
efc6b8375c
commit
3808d7188a
@ -64,6 +64,14 @@ public enum PlayerAnimation {
|
||||
radius);
|
||||
}
|
||||
},
|
||||
START_USE_ITEM {
|
||||
@Override
|
||||
protected void playAnimation(EntityPlayer player, int radius) {
|
||||
player.e(true);
|
||||
sendPacketNearby(new PacketPlayOutEntityMetadata(player.getId(), player.getDataWatcher(), true), player,
|
||||
radius);
|
||||
}
|
||||
},
|
||||
STOP_SITTING {
|
||||
@Override
|
||||
protected void playAnimation(EntityPlayer player, int radius) {
|
||||
@ -83,6 +91,14 @@ public enum PlayerAnimation {
|
||||
sendPacketNearby(new PacketPlayOutEntityMetadata(player.getId(), player.getDataWatcher(), true), player,
|
||||
radius);
|
||||
}
|
||||
},
|
||||
STOP_USE_ITEM {
|
||||
@Override
|
||||
protected void playAnimation(EntityPlayer player, int radius) {
|
||||
player.e(false);
|
||||
sendPacketNearby(new PacketPlayOutEntityMetadata(player.getId(), player.getDataWatcher(), true), player,
|
||||
radius);
|
||||
}
|
||||
};
|
||||
|
||||
public void play(Player player) {
|
||||
|
Loading…
Reference in New Issue
Block a user