Interface EnderCrystal

All Superinterfaces:
Audience, CommandSender, Entity, HoverEventSource<HoverEvent.ShowEntity>, Metadatable, Nameable, Permissible, PersistentDataHolder, Pointered, ServerOperator, Sound.Emitter

public interface EnderCrystal extends Entity
A crystal that heals nearby EnderDragons
  • Method Details

    • isShowingBottom

      boolean isShowingBottom()
      Return whether or not this end crystal is showing the bedrock slate underneath it.
      Returns:
      true if the bottom is being shown
    • setShowingBottom

      void setShowingBottom(boolean showing)
      Sets whether or not this end crystal is showing the bedrock slate underneath it.
      Parameters:
      showing - whether the bedrock slate should be shown
    • getBeamTarget

      @Nullable @Nullable Location getBeamTarget()
      Gets the location that this end crystal is pointing its beam to.
      Returns:
      the location that the beam is pointed to, or null if the beam is not shown
    • setBeamTarget

      void setBeamTarget(@Nullable @Nullable Location location)
      Sets the location that this end crystal is pointing to. Passing a null value will remove the current beam.
      Parameters:
      location - the location to point the beam to
      Throws:
      IllegalArgumentException - for differing worlds