Interface FeatherElectionAPI
The FeatherElectionAPI
interface provides methods to interact with the effects and triggers system of FeatheredElection, a Minecraft plugin. It is designed to provide a clear and consistent interface for developers to integrate and use the features provided by FeatheredElection. Each of the interface methods is detailed below:
MethodforceExecuteEffect(String effectId, Player player)
This method forces the execution of a specific effect on a particular player.
Parameters:
effectId
: Unique identifier of the effect to be executed.player
: The player on which the effect will be executed.
Returns:
true
whether the execution of the effect was successful.false
otherwise.
MethodforceExecuteEffect(String effectId, Player player, TriggerData data)
This method extends the functionality of forceExecuteEffect
by allowing the provision of additional data for the execution of the effect.
Parameters:
effectId
: Unique identifier of the effect to be executed.player
: The player on which the effect will be executed.data
: Additional data to be provided when running the effect.
Returns:
true
whether the execution of the effect was successful.false
otherwise.
Method registerNewTriggerEffect(Trigger trigger)
This method registers a new effect trigger in the system.
Parameters:
trigger
: The effect trigger to register.
Returns:
true
if the registration was successful.false
otherwise.
Last updated