Class ColonyPlayerRankChangedModEvent

All Implemented Interfaces:
IModEvent

public final class ColonyPlayerRankChangedModEvent extends AbstractColonyModEvent
Colony player rank change event.
  • 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

      @NotNull public @NotNull ColonyPlayer getPlayer()
      Gets the colony player related to the event.
    • getNewRank

      public Rank getNewRank()
      Gets the colony player's new rank.
    • getOldRank

      public Rank getOldRank()
      Gets the colony player's old rank.