Minestom/src/main/java/fr/themode/minestom/event/PlayerUseItemEvent.java

24 lines
510 B
Java
Raw Normal View History

2019-08-21 16:50:52 +02:00
package fr.themode.minestom.event;
import fr.themode.minestom.entity.Player;
import fr.themode.minestom.item.ItemStack;
2019-08-25 20:03:43 +02:00
public class PlayerUseItemEvent extends Event {
2019-08-21 16:50:52 +02:00
private Player.Hand hand;
private ItemStack itemStack;
2019-08-25 20:03:43 +02:00
public PlayerUseItemEvent(Player.Hand hand, ItemStack itemStack) {
2019-08-21 16:50:52 +02:00
this.hand = hand;
this.itemStack = itemStack;
}
public Player.Hand getHand() {
return hand;
}
public ItemStack getItemStack() {
return itemStack;
}
}