Class EconomyEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.economy.EconomyEvent
- Direct Known Subclasses:
- EconomyEvent.GetBalance,- EconomyEvent.PostTransaction,- EconomyEvent.PreTransaction,- EconomyEvent.SetBalance
public class EconomyEvent
extends net.minecraftforge.eventbus.api.Event
Superclass of all events relating to the economy
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classEvent fired when getting the balance of the player through the defaultBankAccountimplementation (PlayerPartyStorage) For any economy bridges, this event MUST be listened to and the balance MUST be assigned in case someone uses thePlayerPartyStoragemethods for getting the balance The methods inPlayerPartyStorageexist for the case of single player or any instances where no otherBankAccountimplementation is providedstatic classEvent fired just after a transaction is applied to theBankAccountstatic classEvent fired just before a transaction is applied to theBankAccountIf cancelled the transaction will not take placestatic classEvent fired when setting the balance of the player through the defaultBankAccountimplementation (PlayerPartyStorage) For any economy bridges, this event MUST be listened to and the balance MUST be assigned in case someone uses thePlayerPartyStoragemethods for setting the balance The methods inPlayerPartyStorageexist for the case of single player or any instances where no otherBankAccountimplementation is providedstatic enumAn enum representing the type of transactionNested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Eventnet.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
- 
Constructor SummaryConstructorsConstructorDescriptionEconomyEvent(net.minecraft.server.level.ServerPlayer player, BankAccount account) 
- 
Method SummaryModifier and TypeMethodDescriptionGets the bank account of the player involved in the transactionnet.minecraft.server.level.ServerPlayerGets the player involved in the economy transactionMethods inherited from class net.minecraftforge.eventbus.api.EventgetListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
- 
Constructor Details- 
EconomyEvent
 
- 
- 
Method Details- 
getPlayerpublic net.minecraft.server.level.ServerPlayer getPlayer()Gets the player involved in the economy transaction- Returns:
- The player
 
- 
getAccountGets the bank account of the player involved in the transaction- Returns:
- The bank account of the player
 
 
-