public class NPCTraderEvent
extends net.minecraftforge.eventbus.api.Event
Modifier and Type | Class and Description |
---|---|
static class |
NPCTraderEvent.AcceptTrade
Event fired when a player is accepting a trade from the NPC Trader
|
static class |
NPCTraderEvent.ShowTrade
Events fired surrounding the player opening the trade screen
|
Modifier and Type | Field and Description |
---|---|
protected net.minecraft.entity.player.PlayerEntity |
player |
protected NPCEntity |
trader |
Constructor and Description |
---|
NPCTraderEvent(net.minecraft.entity.player.PlayerEntity player,
NPCEntity trader) |
Modifier and Type | Method and Description |
---|---|
net.minecraft.entity.player.PlayerEntity |
getPlayer() |
NPCEntity |
getTrader() |
protected final net.minecraft.entity.player.PlayerEntity player
protected final NPCEntity trader
public NPCTraderEvent(net.minecraft.entity.player.PlayerEntity player, NPCEntity trader)
public net.minecraft.entity.player.PlayerEntity getPlayer()
public NPCEntity getTrader()