Class SpeedBoostEffect

java.lang.Object
net.chen.legacyLand.nation.politics.effects.SpeedBoostEffect
All Implemented Interfaces:
PoliticalEffect

public class SpeedBoostEffect extends Object implements PoliticalEffect
速度加成效果 - 为国家所有在线成员提供速度效果
  • Constructor Summary

    Constructors
    Constructor
    Description
    SpeedBoostEffect(int amplifier)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    applyToPlayer(org.bukkit.entity.Player player)
    为新加入的玩家应用速度效果(可在玩家加入国家事件中调用)
    获取效果的描述
    获取效果的唯一标识
    void
    onApply(com.palmergames.bukkit.towny.object.Nation nation)
    当国家采用此政体时触发
    void
    onRemove(com.palmergames.bukkit.towny.object.Nation nation)
    当国家放弃此政体时触发(切换到其他政体前)
    void
    removeFromPlayer(org.bukkit.entity.Player player)
    移除玩家的速度效果(可在玩家离开国家事件中调用)

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SpeedBoostEffect

      public SpeedBoostEffect(int amplifier)
  • Method Details

    • getId

      public String getId()
      Description copied from interface: PoliticalEffect
      获取效果的唯一标识
      Specified by:
      getId in interface PoliticalEffect
      Returns:
      效果ID
    • onApply

      public void onApply(com.palmergames.bukkit.towny.object.Nation nation)
      Description copied from interface: PoliticalEffect
      当国家采用此政体时触发
      Specified by:
      onApply in interface PoliticalEffect
      Parameters:
      nation - 采用政体的国家
    • onRemove

      public void onRemove(com.palmergames.bukkit.towny.object.Nation nation)
      Description copied from interface: PoliticalEffect
      当国家放弃此政体时触发(切换到其他政体前)
      Specified by:
      onRemove in interface PoliticalEffect
      Parameters:
      nation - 放弃政体的国家
    • getDescription

      public String getDescription()
      Description copied from interface: PoliticalEffect
      获取效果的描述
      Specified by:
      getDescription in interface PoliticalEffect
      Returns:
      效果描述
    • applyToPlayer

      public void applyToPlayer(org.bukkit.entity.Player player)
      为新加入的玩家应用速度效果(可在玩家加入国家事件中调用)
    • removeFromPlayer

      public void removeFromPlayer(org.bukkit.entity.Player player)
      移除玩家的速度效果(可在玩家离开国家事件中调用)