接口 Mannequin
- 所有超级接口:
Attributable,CommandSender,Damageable,Entity,Leashable,LivingEntity,Metadatable,Nameable,Permissible,PersistentDataHolder,ProjectileSource,ServerOperator
代表一个假人模型。
-
嵌套类概要
从接口继承的嵌套类/接口 org.bukkit.entity.Entity
Entity.Spigot -
方法概要
修饰符和类型方法说明已过时。Gets the description which shows as part of the mannequin's name.获取假人的主手。获取用于给假人添加纹理的玩家配置文件。boolean获取假人描述是否隐藏。boolean获取此假人是否可以被移动/推动。boolean获取假人模型的某一部分是否显示。voidsetDescription(@Nullable String description) 设置显示为假人名称一部分的描述。voidsetHideDescription(boolean hide) 设置假人描述是否隐藏。voidsetImmovable(boolean immovable) 设置此假人是否可以被移动/推动。voidsetMainHand(@NotNull MainHand hand) 设置假人的主手。voidsetModelPartShown(@NotNull PlayerModelPart part, boolean shown) 设置假人模型的某一部分是否显示。voidsetPlayerProfile(@Nullable PlayerProfile profile) 设置用于给假人添加纹理的玩家配置文件。void设置假人姿势。从接口继承的方法 org.bukkit.attribute.Attributable
getAttribute从接口继承的方法 org.bukkit.command.CommandSender
getName, sendMessage, sendMessage, sendMessage, sendMessage从接口继承的方法 org.bukkit.entity.Damageable
damage, damage, damage, getAbsorptionAmount, getHealth, getMaxHealth, resetMaxHealth, setAbsorptionAmount, setHealth, setMaxHealth从接口继承的方法 org.bukkit.entity.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, teleport从接口继承的方法 org.bukkit.entity.Leashable
getLeashHolder, isLeashed, setLeashHolder从接口继承的方法 org.bukkit.entity.LivingEntity
addPotionEffect, addPotionEffect, addPotionEffects, attack, canBreatheUnderwater, getActivePotionEffects, getArrowCooldown, getArrowsInBody, getCanPickupItems, getCategory, getCollidableExemptions, getDeathSound, getDrinkingSound, getEatingSound, getEquipment, getEyeHeight, getEyeHeight, getEyeLocation, getFallDamageSound, getFallDamageSoundBig, getFallDamageSoundSmall, getHurtSound, getItemInUse, getItemInUseTicks, getKiller, getLastDamage, getLastTwoTargetBlocks, getLineOfSight, getMaximumAir, getMaximumNoDamageTicks, getMemory, getNoActionTicks, getNoDamageTicks, getPotionEffect, getRemainingAir, getRemoveWhenFarAway, getTargetBlock, getTargetBlockExact, getTargetBlockExact, getWaypointColor, getWaypointStyle, hasAI, hasLineOfSight, hasPotionEffect, isClimbing, isCollidable, isGliding, isInvisible, isRiptiding, isSleeping, isSwimming, playHurtAnimation, rayTraceBlocks, rayTraceBlocks, removePotionEffect, setAI, setArrowCooldown, setArrowsInBody, setCanPickupItems, setCollidable, setGliding, setInvisible, setItemInUseTicks, setLastDamage, setMaximumAir, setMaximumNoDamageTicks, setMemory, setNoActionTicks, setNoDamageTicks, setRemainingAir, setRemoveWhenFarAway, setRiptiding, setSwimming, setWaypointColor, setWaypointStyle, swingMainHand, swingOffHand从接口继承的方法 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.persistence.PersistentDataHolder
getPersistentDataContainer从接口继承的方法 org.bukkit.projectiles.ProjectileSource
launchProjectile, launchProjectile从接口继承的方法 org.bukkit.permissions.ServerOperator
isOp, setOp
-
方法详细资料
-
getMainHand
获取假人的主手。原文:Gets the mannequin's main hand.
- 返回:
- the mannequin's main hand
-
setMainHand
设置假人的主手。原文:Gets the mannequin's main hand.
- 参数:
hand- the mannequin's main hand
-
isModelPartShown
获取假人模型的某一部分是否显示。原文:Gets whether a part of the mannequin model is shown.
- 参数:
part- model part- 返回:
- if it is shown
-
setModelPartShown
设置假人模型的某一部分是否显示。原文:Sets whether a part of the mannequin model is shown.
- 参数:
part- model partshown- whether it is shown
-
getPlayerProfile
获取用于给假人添加纹理的玩家配置文件。原文:Gets the profile of the player used to texture the mannequin.
- 返回:
- the profile of the owning player
-
setPlayerProfile
设置用于给假人添加纹理的玩家配置文件。原文:Sets the profile of the player used to texture the mannequin.
The profile must already contain a skin texture for it to be displayed.
- 参数:
profile- the profile of the player texture.- 抛出:
IllegalArgumentException- if the profile does not contain the necessary information
-
setPose
设置假人姿势。原文:Set the mannequin pose.
- 参数:
pose- new pose- 抛出:
IllegalArgumentException- if the pose is not valid for a mannequin
-
isImmovable
boolean isImmovable()获取此假人是否可以被移动/推动。原文:Gets whether this mannequin can be moved/pushed.
- 返回:
- whether immovable
-
setImmovable
void setImmovable(boolean immovable) 设置此假人是否可以被移动/推动。原文:Sets whether this mannequin can be moved/pushed.
- 参数:
immovable- new state
-
getDescripion
已过时。获取显示为假人名称一部分的描述。原文:Gets the description which shows as part of the mannequin's name.
- 返回:
- description the description text
-
getDescription
Gets the description which shows as part of the mannequin's name.- 返回:
- description the description text
-
setDescription
设置显示为假人名称一部分的描述。原文:Sets the description which shows as part of the mannequin's name.
- 参数:
description- the description to show or null for default
-
isHideDescription
boolean isHideDescription()获取假人描述是否隐藏。原文:Gets whether the mannequin description is hidden.
- 返回:
- hide description status
-
setHideDescription
void setHideDescription(boolean hide) 设置假人描述是否隐藏。原文:Sets whether the mannequin description is hidden.
- 参数:
hide- whether to hide description
-