Package org.bukkit.entity
Interface Mannequin
- All Superinterfaces:
Attributable
,CommandSender
,Damageable
,Entity
,LivingEntity
,Metadatable
,Nameable
,Permissible
,PersistentDataHolder
,ProjectileSource
,ServerOperator
Represents a mannequin.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.bukkit.entity.Entity
Entity.Spigot
-
Method Summary
Modifier and TypeMethodDescriptionGets 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.boolean
Gets whether the mannequin description is hidden.boolean
Gets whether this mannequin can be moved/pushed.boolean
Gets whether a part of the mannequin model is shown.void
setDescription
(String description) Sets the description which shows as part of the mannequin's name.void
setHideDescription
(boolean hide) Sets whether the mannequin description is hidden.void
setImmovable
(boolean immovable) Sets whether this mannequin can be moved/pushed.void
setMainHand
(MainHand hand) Gets the mannequin's main hand.void
setModelPartShown
(PlayerModelPart part, boolean shown) Sets whether a part of the mannequin model is shown.void
setPlayerProfile
(PlayerProfile profile) Sets the profile of the player used to texture the mannequin.void
Set the mannequin pose.Methods inherited from interface org.bukkit.attribute.Attributable
getAttribute
Methods inherited from interface org.bukkit.command.CommandSender
getName, sendMessage, sendMessage, sendMessage, sendMessage
Methods inherited from interface org.bukkit.entity.Damageable
damage, damage, damage, getAbsorptionAmount, getHealth, getMaxHealth, resetMaxHealth, setAbsorptionAmount, setHealth, setMaxHealth
Methods inherited from interface 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
Methods inherited from interface 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, getLeashHolder, getLineOfSight, getMaximumAir, getMaximumNoDamageTicks, getMemory, getNoActionTicks, getNoDamageTicks, getPotionEffect, getRemainingAir, getRemoveWhenFarAway, getTargetBlock, getTargetBlockExact, getTargetBlockExact, getWaypointColor, getWaypointStyle, hasAI, hasLineOfSight, hasPotionEffect, isClimbing, isCollidable, isGliding, isInvisible, isLeashed, isRiptiding, isSleeping, isSwimming, playHurtAnimation, rayTraceBlocks, rayTraceBlocks, removePotionEffect, setAI, setArrowCooldown, setArrowsInBody, setCanPickupItems, setCollidable, setGliding, setInvisible, setItemInUseTicks, setLastDamage, setLeashHolder, setMaximumAir, setMaximumNoDamageTicks, setMemory, setNoActionTicks, setNoDamageTicks, setRemainingAir, setRemoveWhenFarAway, setRiptiding, setSwimming, setWaypointColor, setWaypointStyle, swingMainHand, swingOffHand
Methods inherited from interface org.bukkit.metadata.Metadatable
getMetadata, hasMetadata, removeMetadata, setMetadata
Methods inherited from interface org.bukkit.Nameable
getCustomName, setCustomName
Methods inherited from interface org.bukkit.permissions.Permissible
addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachment
Methods inherited from interface org.bukkit.persistence.PersistentDataHolder
getPersistentDataContainer
Methods inherited from interface org.bukkit.projectiles.ProjectileSource
launchProjectile, launchProjectile
Methods inherited from interface org.bukkit.permissions.ServerOperator
isOp, setOp
-
Method Details
-
getMainHand
Gets the mannequin's main hand.- Returns:
- the mannequin's main hand
-
setMainHand
Gets the mannequin's main hand.- Parameters:
hand
- the mannequin's main hand
-
isModelPartShown
Gets whether a part of the mannequin model is shown.- Parameters:
part
- model part- Returns:
- if it is shown
-
setModelPartShown
Sets whether a part of the mannequin model is shown.- Parameters:
part
- model partshown
- whether it is shown
-
getPlayerProfile
Gets the profile of the player used to texture the mannequin.- Returns:
- 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.
- Parameters:
profile
- the profile of the player texture.- Throws:
IllegalArgumentException
- if the profile does not contain the necessary information
-
setPose
Set the mannequin pose.- Parameters:
pose
- new pose- Throws:
IllegalArgumentException
- if the pose is not valid for a mannequin
-
isImmovable
boolean isImmovable()Gets whether this mannequin can be moved/pushed.- Returns:
- whether immovable
-
setImmovable
void setImmovable(boolean immovable) Sets whether this mannequin can be moved/pushed.- Parameters:
immovable
- new state
-
getDescripion
Gets the description which shows as part of the mannequin's name.- Returns:
- description the description text
-
setDescription
Sets the description which shows as part of the mannequin's name.- Parameters:
description
- the description to show or null for default
-
isHideDescription
boolean isHideDescription()Gets whether the mannequin description is hidden.- Returns:
- hide description status
-
setHideDescription
void setHideDescription(boolean hide) Sets whether the mannequin description is hidden.- Parameters:
hide
- whether to hide description
-