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 Entity
Entity.Spigot -
Method Summary
Modifier and TypeMethodDescriptionGets the location that this end crystal is pointing its beam to.booleanReturn whether or not this end crystal is showing the bedrock slate underneath it.voidsetBeamTarget(Location location) Sets the location that this end crystal is pointing to.voidsetShowingBottom(boolean showing) Sets whether or not this end crystal is showing the bedrock slate underneath it.Methods inherited from interface CommandSender
getName, sendMessage, sendMessage, sendMessage, sendMessageMethods inherited from interface Entity
addPassenger, addScoreboardTag, copy, copy, createSnapshot, eject, getAsString, getBoundingBox, getEntityId, getFacing, getFallDistance, getFireTicks, getFreezeTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getMaxFreezeTicks, getNearbyEntities, getPassenger, getPassengers, getPistonMoveReaction, getPortalCooldown, getPose, getScoreboardTags, getServer, getSpawnCategory, getSwimHighSpeedSplashSound, getSwimSound, getSwimSplashSound, getTicksLived, getTrackedBy, getType, getUniqueId, getVehicle, getVelocity, getWidth, getWorld, hasGravity, isCustomNameVisible, isDead, isEmpty, isFrozen, isGlowing, isInsideVehicle, isInvulnerable, isInWater, isInWorld, isOnGround, isPersistent, isSilent, isValid, isVisibleByDefault, isVisualFire, leaveVehicle, playEffect, remove, removePassenger, removeScoreboardTag, setCustomNameVisible, setFallDistance, setFireTicks, setFreezeTicks, setGlowing, setGravity, setInvulnerable, setLastDamageCause, setPassenger, setPersistent, setPortalCooldown, setRotation, setSilent, setTicksLived, setVelocity, setVisibleByDefault, setVisualFire, spigot, teleport, teleport, teleport, teleportMethods inherited from interface Metadatable
getMetadata, hasMetadata, removeMetadata, setMetadataMethods inherited from interface Nameable
getCustomName, setCustomNameMethods inherited from interface Permissible
addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachmentMethods inherited from interface PersistentDataHolder
getPersistentDataContainerMethods inherited from interface 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
-