public interface Enderman extends Monster
限定符和类型 | 方法和说明 |
---|---|
BlockData |
getCarriedBlock()
获取末影人手持的方块的方块数据对象.
|
MaterialData |
getCarriedMaterial()
获取末影人手持的方块的id和数据.
|
void |
setCarriedBlock(BlockData blockData)
设置末影人手持的方块的方块数据对象.
|
void |
setCarriedMaterial(MaterialData material)
设置末影人手持的方块的id和数据.
|
addPotionEffect, addPotionEffect, addPotionEffects, getActivePotionEffects, getCanPickupItems, getEquipment, getEyeHeight, getEyeHeight, getEyeLocation, getKiller, getLastDamage, getLastTwoTargetBlocks, getLeashHolder, getLineOfSight, getMaximumAir, getMaximumNoDamageTicks, getNoDamageTicks, getPotionEffect, getRemainingAir, getRemoveWhenFarAway, getTargetBlock, getTargetBlockExact, getTargetBlockExact, hasAI, hasLineOfSight, hasPotionEffect, isCollidable, isGliding, isLeashed, isRiptiding, isSwimming, rayTraceBlocks, rayTraceBlocks, removePotionEffect, setAI, setCanPickupItems, setCollidable, setGliding, setLastDamage, setLeashHolder, setMaximumAir, setMaximumNoDamageTicks, setNoDamageTicks, setRemainingAir, setRemoveWhenFarAway, setSwimming
getAttribute
damage, damage, getHealth, getMaxHealth, resetMaxHealth, setHealth, setMaxHealth
addPassenger, addScoreboardTag, eject, getBoundingBox, getEntityId, getFacing, 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, isPersistent, isSilent, isValid, leaveVehicle, playEffect, remove, removePassenger, removeScoreboardTag, setCustomNameVisible, setFallDistance, setFireTicks, setGlowing, setGravity, setInvulnerable, setLastDamageCause, setPassenger, setPersistent, setPortalCooldown, setSilent, setTicksLived, setVelocity, teleport, teleport, teleport, teleport
getMetadata, hasMetadata, removeMetadata, setMetadata
getName, sendMessage, sendMessage
addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachment
isOp, setOp
getCustomName, setCustomName
launchProjectile, launchProjectile
getLootTable, getSeed, setLootTable, setSeed
MaterialData getCarriedMaterial()
原文:Gets the id and data of the block that the Enderman is carrying.
void setCarriedMaterial(MaterialData material)
原文:Sets the id and data of the block that the Enderman is carrying.
material
- 要设置的手持方块的数据BlockData getCarriedBlock()
原文:Gets the data of the block that the Enderman is carrying.
void setCarriedBlock(BlockData blockData)
原文:Sets the data of the block that the Enderman is carrying.
blockData
- 为该方块设置的BlockData对象, 设为null移除末影人手持的方块