mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-09 00:22:08 -07:00
Add EnderCrystal#getBeamTarget and EnderCrystal#setBeamTarget(Location)
By: Matthew <stteg@hotmail.com>
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
package org.bukkit.entity;
|
package org.bukkit.entity;
|
||||||
|
|
||||||
|
import org.bukkit.Location;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A crystal that heals nearby EnderDragons
|
* A crystal that heals nearby EnderDragons
|
||||||
*/
|
*/
|
||||||
@@ -20,4 +22,20 @@ public interface EnderCrystal extends Entity {
|
|||||||
* @param showing whether the bedrock slate should be shown
|
* @param showing whether the bedrock slate should be shown
|
||||||
*/
|
*/
|
||||||
void setShowingBottom(boolean showing);
|
void setShowingBottom(boolean showing);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets the location that this end crystal is pointing its beam to.
|
||||||
|
*
|
||||||
|
* @return the location that the beam is pointed to, or null if the beam is not shown
|
||||||
|
*/
|
||||||
|
Location getBeamTarget();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets the location that this end crystal is pointing to. Passing a null
|
||||||
|
* value will remove the current beam.
|
||||||
|
*
|
||||||
|
* @param location the location to point the beam to
|
||||||
|
* @throws IllegalArgumentException for differing worlds
|
||||||
|
*/
|
||||||
|
void setBeamTarget(Location location);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user