Class ParticleEffect

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

public class ParticleEffect extends Object implements PoliticalEffect
粒子效果 - 为国家领导者显示粒子图案
  • Constructor Details

  • 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:
      效果描述
    • startParticleEffect

      public void startParticleEffect(org.bukkit.entity.Player player, String nationName)
      为玩家启动粒子效果
    • stopParticleEffect

      public void stopParticleEffect(String nationName)
      停止粒子效果