接口 EnderCrystal
- 所有超级接口:
CommandSender
,Entity
,Metadatable
,Nameable
,Permissible
,ServerOperator
一个水晶,能治疗附近的末影龙
-
方法概要
修饰符和类型方法说明Gets 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.从接口继承的方法 org.bukkit.command.CommandSender
getName, sendMessage, sendMessage
从接口继承的方法 org.bukkit.entity.Entity
addPassenger, addScoreboardTag, eject, getEntityId, getFallDistance, getFireTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getNearbyEntities, getPassenger, getPassengers, getPistonMoveReaction, getPortalCooldown, getScoreboardTags, getServer, getTicksLived, getType, getUniqueId, getVehicle, getVelocity, getWidth, getWorld, hasGravity, isCustomNameVisible, isDead, isEmpty, isGlowing, isInsideVehicle, isInvulnerable, isOnGround, isSilent, isValid, leaveVehicle, playEffect, remove, removePassenger, removeScoreboardTag, setCustomNameVisible, setFallDistance, setFireTicks, setGlowing, setGravity, setInvulnerable, setLastDamageCause, setPassenger, setPortalCooldown, setSilent, setTicksLived, setVelocity, teleport, teleport, teleport, teleport
从接口继承的方法 org.bukkit.metadata.Metadatable
getMetadata, hasMetadata, removeMetadata, setMetadata
从接口继承的方法 org.bukkit.Nameable
getCustomName, setCustomName
从接口继承的方法 org.bukkit.permissions.Permissible
addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachment
从接口继承的方法 org.bukkit.permissions.ServerOperator
isOp, setOp
-
方法详细资料
-
isShowingBottom
boolean isShowingBottom()Return whether or not this end crystal is showing the bedrock slate underneath it.- 返回:
- 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.- 参数:
showing
- whether the bedrock slate should be shown
-
getBeamTarget
Location getBeamTarget()Gets the location that this end crystal is pointing its beam to.- 返回:
- 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.- 参数:
location
- the location to point the beam to- 抛出:
IllegalArgumentException
- for differing worlds
-