mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-27 13:15:33 +01: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);
|
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 {
|
STOP_SITTING {
|
||||||
@Override
|
@Override
|
||||||
protected void playAnimation(EntityPlayer player, int radius) {
|
protected void playAnimation(EntityPlayer player, int radius) {
|
||||||
@ -83,6 +91,14 @@ public enum PlayerAnimation {
|
|||||||
sendPacketNearby(new PacketPlayOutEntityMetadata(player.getId(), player.getDataWatcher(), true), player,
|
sendPacketNearby(new PacketPlayOutEntityMetadata(player.getId(), player.getDataWatcher(), true), player,
|
||||||
radius);
|
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) {
|
public void play(Player player) {
|
||||||
|
Loading…
Reference in New Issue
Block a user