public abstract class ShopkeeperEvent
extends net.minecraftforge.fml.common.eventhandler.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 EntityNPC |
npc |
protected net.minecraft.entity.player.EntityPlayerMP |
player |
| Modifier | Constructor and Description |
|---|---|
protected |
ShopkeeperEvent(net.minecraft.entity.player.EntityPlayerMP player,
EntityNPC npc) |
| Modifier and Type | Method and Description |
|---|---|
net.minecraft.entity.player.EntityPlayerMP |
getEntityPlayer() |
EntityNPC |
getNpc() |
protected final net.minecraft.entity.player.EntityPlayerMP player
protected final EntityNPC npc
protected ShopkeeperEvent(net.minecraft.entity.player.EntityPlayerMP player,
EntityNPC npc)
public net.minecraft.entity.player.EntityPlayerMP getEntityPlayer()
public EntityNPC getNpc()