接口 Mannequin
- 所有超级接口:
Attributable,CommandSender,Damageable,Entity,Leashable,LivingEntity,Metadatable,Nameable,Permissible,PersistentDataHolder,ProjectileSource,ServerOperator
Represents a mannequin.
-
嵌套类概要
从接口继承的嵌套类/接口 org.bukkit.entity.Entity
Entity.Spigot -
方法概要
修饰符和类型方法说明Gets the description which shows as part of the mannequin's name.Gets the mannequin's main hand.Gets the profile of the player used to texture the mannequin.booleanGets whether the mannequin description is hidden.booleanGets whether this mannequin can be moved/pushed.booleanGets whether a part of the mannequin model is shown.voidsetDescription(@Nullable String description) Sets the description which shows as part of the mannequin's name.voidsetHideDescription(boolean hide) Sets whether the mannequin description is hidden.voidsetImmovable(boolean immovable) Sets whether this mannequin can be moved/pushed.voidsetMainHand(@NotNull MainHand hand) Gets the mannequin's main hand.voidsetModelPartShown(@NotNull PlayerModelPart part, boolean shown) Sets whether a part of the mannequin model is shown.voidsetPlayerProfile(@Nullable PlayerProfile profile) Sets the profile of the player used to texture the mannequin.voidSet the mannequin pose.从接口继承的方法 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
-
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
-