Class SpeedBoostEffect
java.lang.Object
net.chen.legacyLand.nation.politics.effects.SpeedBoostEffect
- All Implemented Interfaces:
PoliticalEffect
速度加成效果 - 为国家所有在线成员提供速度效果
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyToPlayer(org.bukkit.entity.Player player) 为新加入的玩家应用速度效果(可在玩家加入国家事件中调用)获取效果的描述getId()获取效果的唯一标识voidonApply(com.palmergames.bukkit.towny.object.Nation nation) 当国家采用此政体时触发voidonRemove(com.palmergames.bukkit.towny.object.Nation nation) 当国家放弃此政体时触发(切换到其他政体前)voidremoveFromPlayer(org.bukkit.entity.Player player) 移除玩家的速度效果(可在玩家离开国家事件中调用)
-
Constructor Details
-
SpeedBoostEffect
public SpeedBoostEffect(int amplifier)
-
-
Method Details
-
getId
Description copied from interface:PoliticalEffect获取效果的唯一标识- Specified by:
getIdin interfacePoliticalEffect- Returns:
- 效果ID
-
onApply
public void onApply(com.palmergames.bukkit.towny.object.Nation nation) Description copied from interface:PoliticalEffect当国家采用此政体时触发- Specified by:
onApplyin interfacePoliticalEffect- Parameters:
nation- 采用政体的国家
-
onRemove
public void onRemove(com.palmergames.bukkit.towny.object.Nation nation) Description copied from interface:PoliticalEffect当国家放弃此政体时触发(切换到其他政体前)- Specified by:
onRemovein interfacePoliticalEffect- Parameters:
nation- 放弃政体的国家
-
getDescription
Description copied from interface:PoliticalEffect获取效果的描述- Specified by:
getDescriptionin interfacePoliticalEffect- Returns:
- 效果描述
-
applyToPlayer
public void applyToPlayer(org.bukkit.entity.Player player) 为新加入的玩家应用速度效果(可在玩家加入国家事件中调用) -
removeFromPlayer
public void removeFromPlayer(org.bukkit.entity.Player player) 移除玩家的速度效果(可在玩家离开国家事件中调用)
-