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;
|
|
|
|
}
|
|
|
|
}
|