public static class ShopkeeperEvent.Purchase extends ShopkeeperEvent
ShopkeeperEvent.Purchase, ShopkeeperEvent.Sell
npc, player
Constructor and Description |
---|
Purchase(net.minecraft.entity.player.ServerPlayerEntity player,
NPCEntity npc,
net.minecraft.item.ItemStack item,
EnumBuySell type) |
Modifier and Type | Method and Description |
---|---|
net.minecraft.item.ItemStack |
getItem() |
net.minecraft.entity.player.ServerPlayerEntity |
getPlayer()
Deprecated.
|
EnumBuySell |
getType() |
void |
setItem(net.minecraft.item.ItemStack item) |
getEntityPlayer, getNpc
public Purchase(net.minecraft.entity.player.ServerPlayerEntity player, NPCEntity npc, net.minecraft.item.ItemStack item, EnumBuySell type)
public void setItem(net.minecraft.item.ItemStack item)
public net.minecraft.item.ItemStack getItem()
@Deprecated public net.minecraft.entity.player.ServerPlayerEntity getPlayer()
public EnumBuySell getType()