mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-21 05:44:17 +00:00
Enhance Beacon Block API with setters for effects
This commit is contained in:
parent
465097d972
commit
057635bcd0
1 changed files with 17 additions and 1 deletions
|
@ -4,6 +4,7 @@ import java.util.Collection;
|
||||||
import org.bukkit.entity.LivingEntity;
|
import org.bukkit.entity.LivingEntity;
|
||||||
import org.bukkit.inventory.InventoryHolder;
|
import org.bukkit.inventory.InventoryHolder;
|
||||||
import org.bukkit.potion.PotionEffect;
|
import org.bukkit.potion.PotionEffect;
|
||||||
|
import org.bukkit.potion.PotionEffectType;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represents a beacon.
|
* Represents a beacon.
|
||||||
|
@ -29,14 +30,29 @@ public interface Beacon extends BlockState, InventoryHolder {
|
||||||
/**
|
/**
|
||||||
* Returns the primary effect set on the beacon
|
* Returns the primary effect set on the beacon
|
||||||
*
|
*
|
||||||
* @return the primary effect
|
* @return the primary effect or null if not set
|
||||||
*/
|
*/
|
||||||
PotionEffect getPrimaryEffect();
|
PotionEffect getPrimaryEffect();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the primary effect on this beacon, or null to clear.
|
||||||
|
*
|
||||||
|
* @param effect new primary effect
|
||||||
|
*/
|
||||||
|
void setPrimaryEffect(PotionEffectType effect);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the secondary effect set on the beacon.
|
* Returns the secondary effect set on the beacon.
|
||||||
*
|
*
|
||||||
* @return the secondary effect or null if no secondary effect
|
* @return the secondary effect or null if no secondary effect
|
||||||
*/
|
*/
|
||||||
PotionEffect getSecondaryEffect();
|
PotionEffect getSecondaryEffect();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the secondary effect on this beacon, or null to clear. Note that tier
|
||||||
|
* must be >= 4 for this effect to be active.
|
||||||
|
*
|
||||||
|
* @param effect desired secondary effect
|
||||||
|
*/
|
||||||
|
void setSecondaryEffect(PotionEffectType effect);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue