From 441c95cf26525bc0eb47ed1ce69dc5f9d1e67d7c Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Wed, 16 Mar 2016 19:53:51 -0400 Subject: [PATCH] Add EnderCrystal#getBeamTarget and EnderCrystal#setBeamTarget(Location) By: Matthew --- .../java/org/bukkit/entity/EnderCrystal.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/paper-api/src/main/java/org/bukkit/entity/EnderCrystal.java b/paper-api/src/main/java/org/bukkit/entity/EnderCrystal.java index 156e2abcc0..684dd764f9 100644 --- a/paper-api/src/main/java/org/bukkit/entity/EnderCrystal.java +++ b/paper-api/src/main/java/org/bukkit/entity/EnderCrystal.java @@ -1,5 +1,7 @@ package org.bukkit.entity; +import org.bukkit.Location; + /** * A crystal that heals nearby EnderDragons */ @@ -20,4 +22,20 @@ public interface EnderCrystal extends Entity { * @param showing whether the bedrock slate should be shown */ 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); }