mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-05 02:22:12 +01:00
SPIGOT-6545: Unable to set Guardian target via API while awareness is disabled
By: DerFrZocker <derrieple@gmail.com>
This commit is contained in:
parent
be93ac366d
commit
95cc961f13
2 changed files with 21 additions and 1 deletions
|
@ -114,7 +114,7 @@ public enum EntityEffect {
|
||||||
*/
|
*/
|
||||||
ENTITY_POOF(20, LivingEntity.class),
|
ENTITY_POOF(20, LivingEntity.class),
|
||||||
/**
|
/**
|
||||||
* Guardian sets laser target.
|
* Guardian plays the attack sound effect.
|
||||||
*/
|
*/
|
||||||
GUARDIAN_TARGET(21, Guardian.class),
|
GUARDIAN_TARGET(21, Guardian.class),
|
||||||
// 22-28 player internal flags
|
// 22-28 player internal flags
|
||||||
|
|
|
@ -2,6 +2,26 @@ package org.bukkit.entity;
|
||||||
|
|
||||||
public interface Guardian extends Monster {
|
public interface Guardian extends Monster {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets whether the guardian laser should show or not.
|
||||||
|
*
|
||||||
|
* A target must be present. If no target is present the laser will not show
|
||||||
|
* and the method will return false.
|
||||||
|
*
|
||||||
|
* @param activated whether the laser is active
|
||||||
|
* @return true if the laser was activated otherwise false
|
||||||
|
* @see #getTarget()
|
||||||
|
* @see #setTarget(LivingEntity)
|
||||||
|
*/
|
||||||
|
boolean setLaser(boolean activated);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets whether the guardian laser is active or not.
|
||||||
|
*
|
||||||
|
* @return true if the laser is active otherwise false
|
||||||
|
*/
|
||||||
|
boolean hasLaser();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if the Guardian is an elder Guardian
|
* Check if the Guardian is an elder Guardian
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue