Package dev.mintychochip.mint
Interface TransactionContext.Actor
- All Known Implementing Classes:
TransactionContext.PlayerActor,TransactionContext.PluginActor
- Enclosing interface:
TransactionContext
public static interface TransactionContext.Actor
Represents the initiator of a transaction.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumActor type classifications. -
Method Summary
Modifier and TypeMethodDescriptiondefault StringgetName()Returns the display name of this actor.default TransactionContext.Actor.TypegetType()Returns the classification of this actor.static TransactionContext.ActorCreates a simple custom actor with the specified name.
-
Method Details
-
simple
Creates a simple custom actor with the specified name.- Parameters:
name- the actor's display name- Returns:
- custom actor instance
-
getType
Returns the classification of this actor.- Returns:
- actor type
-
getName
Returns the display name of this actor.- Returns:
- actor name
-