Package org.bukkit.entity
Interface EnderCrystal
- All Superinterfaces:
CommandSender
,Entity
,Metadatable
,Nameable
,Permissible
,PersistentDataHolder
,ServerOperator
A crystal that heals nearby EnderDragons
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.bukkit.entity.Entity
Entity.Spigot
-
Method Summary
Modifier and TypeMethodDescriptionGets the location that this end crystal is pointing its beam to.boolean
Return whether or not this end crystal is showing the bedrock slate underneath it.void
setBeamTarget(Location location)
Sets the location that this end crystal is pointing to.void
setShowingBottom(boolean showing)
Sets whether or not this end crystal is showing the bedrock slate underneath it.Methods inherited from interface org.bukkit.command.CommandSender
getName, sendMessage, sendMessage, sendMessage, sendMessage
Methods inherited from interface org.bukkit.entity.Entity
addPassenger, addScoreboardTag, eject, getBoundingBox, getEntityId, getFacing, getFallDistance, getFireTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getNearbyEntities, getPassenger, getPassengers, getPistonMoveReaction, getPortalCooldown, getPose, getScoreboardTags, getServer, getTicksLived, getType, getUniqueId, getVehicle, getVelocity, getWidth, getWorld, hasGravity, isCustomNameVisible, isDead, isEmpty, isGlowing, isInsideVehicle, isInvulnerable, isInWater, isOnGround, isPersistent, isSilent, isValid, leaveVehicle, playEffect, remove, removePassenger, removeScoreboardTag, setCustomNameVisible, setFallDistance, setFireTicks, setGlowing, setGravity, setInvulnerable, setLastDamageCause, setPassenger, setPersistent, setPortalCooldown, setRotation, setSilent, setTicksLived, setVelocity, spigot, teleport, teleport, teleport, teleport
Methods inherited from interface org.bukkit.metadata.Metadatable
getMetadata, hasMetadata, removeMetadata, setMetadata
Methods inherited from interface org.bukkit.Nameable
getCustomName, setCustomName
Methods inherited from interface org.bukkit.permissions.Permissible
addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachment
Methods inherited from interface org.bukkit.persistence.PersistentDataHolder
getPersistentDataContainer
Methods inherited from interface org.bukkit.permissions.ServerOperator
isOp, setOp
-
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
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
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
-