Class ColonyPlayerRankChangedModEvent
java.lang.Object
com.minecolonies.api.eventbus.events.AbstractModEvent
com.minecolonies.api.eventbus.events.colony.AbstractColonyModEvent
com.minecolonies.api.eventbus.events.colony.ColonyPlayerRankChangedModEvent
- All Implemented Interfaces:
IModEvent
Colony player rank change event.
-
Constructor Summary
ConstructorsConstructorDescriptionColonyPlayerRankChangedModEvent(@NotNull IColony colony, @NotNull ColonyPlayer player, Rank newRank, Rank oldRank) Constructs a colony player rank change event. -
Method Summary
Modifier and TypeMethodDescriptionGets the colony player's new rank.Gets the colony player's old rank.@NotNull ColonyPlayerGets the colony player related to the event.Methods inherited from class com.minecolonies.api.eventbus.events.colony.AbstractColonyModEvent
getColonyMethods inherited from class com.minecolonies.api.eventbus.events.AbstractModEvent
getEventId
-
Constructor Details
-
ColonyPlayerRankChangedModEvent
public ColonyPlayerRankChangedModEvent(@NotNull @NotNull IColony colony, @NotNull @NotNull ColonyPlayer player, Rank newRank, Rank oldRank) Constructs a colony player rank change event.- Parameters:
colony- the colony related to the event.player- the colony player related to the event.newRank- the colony player's new rank.oldRank- the colony player's old rank.
-
-
Method Details
-
getPlayer
Gets the colony player related to the event. -
getNewRank
Gets the colony player's new rank. -
getOldRank
Gets the colony player's old rank.
-