Package org.bukkit.entity
Interface Mannequin
- All Superinterfaces:
Attributable,CommandSender,Damageable,Entity,Leashable,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.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(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(MainHand hand) Gets the mannequin's main hand.voidsetModelPartShown(PlayerModelPart part, boolean shown) Sets whether a part of the mannequin model is shown.voidsetPlayerProfile(PlayerProfile profile) Sets the profile of the player used to texture the mannequin.voidSet the mannequin pose.Methods inherited from interface org.bukkit.attribute.Attributable
getAttributeMethods inherited from interface org.bukkit.command.CommandSender
getName, sendMessage, sendMessage, sendMessage, sendMessageMethods inherited from interface org.bukkit.entity.Damageable
damage, damage, damage, getAbsorptionAmount, getHealth, getMaxHealth, resetMaxHealth, setAbsorptionAmount, setHealth, setMaxHealthMethods 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, teleportMethods inherited from interface org.bukkit.entity.Leashable
getLeashHolder, isLeashed, setLeashHolderMethods 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, 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, swingOffHandMethods inherited from interface org.bukkit.metadata.Metadatable
getMetadata, hasMetadata, removeMetadata, setMetadataMethods inherited from interface org.bukkit.Nameable
getCustomName, setCustomNameMethods inherited from interface org.bukkit.permissions.Permissible
addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachmentMethods inherited from interface org.bukkit.persistence.PersistentDataHolder
getPersistentDataContainerMethods inherited from interface org.bukkit.projectiles.ProjectileSource
launchProjectile, launchProjectileMethods 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
-