public static class NPCTraderEvent.ShowTrade extends NPCTraderEvent
| Modifier and Type | Class and Description |
|---|---|
static class |
NPCTraderEvent.ShowTrade.Post
Fired just after they open the screen
|
static class |
NPCTraderEvent.ShowTrade.Pre
Fired just before they open the screen
Cancelling this will prevent them from opening the screen
|
NPCTraderEvent.AcceptTrade, NPCTraderEvent.ShowTrade| Modifier and Type | Field and Description |
|---|---|
protected TradePair |
trade |
player, trader| Constructor and Description |
|---|
ShowTrade(net.minecraft.entity.player.PlayerEntity player,
NPCEntity trader,
TradePair trade) |
| Modifier and Type | Method and Description |
|---|---|
TradePair |
getTrade() |
getPlayer, getTrader