public abstract class ShopkeeperEvent
extends net.minecraftforge.eventbus.api.Event
Cancelling this event prevents the item being bought/sold.
Created by CraftSteamG
Modifier and Type | Class and Description |
---|---|
static class |
ShopkeeperEvent.Purchase |
static class |
ShopkeeperEvent.Sell |
Modifier and Type | Field and Description |
---|---|
protected NPCEntity |
npc |
protected net.minecraft.entity.player.ServerPlayerEntity |
player |
Modifier | Constructor and Description |
---|---|
protected |
ShopkeeperEvent(net.minecraft.entity.player.ServerPlayerEntity player,
NPCEntity npc) |
Modifier and Type | Method and Description |
---|---|
net.minecraft.entity.player.ServerPlayerEntity |
getEntityPlayer() |
NPCEntity |
getNpc() |
protected final net.minecraft.entity.player.ServerPlayerEntity player
protected final NPCEntity npc
protected ShopkeeperEvent(net.minecraft.entity.player.ServerPlayerEntity player, NPCEntity npc)
public net.minecraft.entity.player.ServerPlayerEntity getEntityPlayer()
public NPCEntity getNpc()