Package org.bukkit.entity
Interface Llama
- All Superinterfaces:
- AbstractHorse,- Ageable,- Animals,- Attributable,- Audience,- Breedable,- ChestedHorse,- CommandSender,- Creature,- Damageable,- DataComponentView,- Entity,- Frictional,- HoverEventSource<HoverEvent.ShowEntity>,- InventoryHolder,- Leashable,- LivingEntity,- Lootable,- Metadatable,- Mob,- Nameable,- Permissible,- PersistentDataHolder,- PersistentDataViewHolder,- Pointered,- ProjectileSource,- RangedEntity,- ServerOperator,- Sound.Emitter,- Tameable,- Vehicle
- All Known Subinterfaces:
- TraderLlama
Represents a Llama.
- 
Nested Class SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic enumRepresents the base color that the llama has.Nested classes/interfaces inherited from interface org.bukkit.entity.EntityEntity.Spigot
- 
Method SummaryModifier and TypeMethodDescriptionGet the llama that this llama is following.Gets the llama that is currently following behind this llama.getColor()Gets the llama's color.Get the object's inventory.intGets the llama's strength.booleanChecks if another llama is currently following behind this llama.booleanChecks if this llama is in a caravan.voidjoinCaravan(@NotNull Llama llama) Joins a caravan, with the provided llama being the leader of the caravan.voidLeaves the current caravan that they are in.voidsetColor(@NotNull Llama.Color color) Sets the llama's color.voidsetStrength(int strength) Sets the llama's strength.Methods inherited from interface org.bukkit.entity.AbstractHorsegetDomestication, getJumpStrength, getMaxDomestication, getVariant, isEating, isEatingGrass, isEatingHaystack, isRearing, setDomestication, setEating, setEatingGrass, setEatingHaystack, setJumpStrength, setMaxDomestication, setRearing, setVariantMethods inherited from interface org.bukkit.entity.AgeablegetAge, isAdult, setAdult, setAge, setBabyMethods inherited from interface org.bukkit.entity.AnimalsgetBreedCause, getLoveModeTicks, isBreedItem, isBreedItem, isLoveMode, setBreedCause, setLoveModeTicksMethods inherited from interface org.bukkit.attribute.AttributablegetAttribute, registerAttributeMethods inherited from interface net.kyori.adventure.audience.AudienceclearResourcePacks, clearTitle, deleteMessage, deleteMessage, filterAudience, forEachAudience, hideBossBar, openBook, openBook, playSound, playSound, playSound, removeResourcePacks, removeResourcePacks, removeResourcePacks, removeResourcePacks, removeResourcePacks, resetTitle, sendActionBar, sendActionBar, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendPlayerListFooter, sendPlayerListFooter, sendPlayerListHeader, sendPlayerListHeader, sendPlayerListHeaderAndFooter, sendPlayerListHeaderAndFooter, sendResourcePacks, sendResourcePacks, sendResourcePacks, sendTitlePart, showBossBar, showDialog, showTitle, stopSound, stopSoundMethods inherited from interface org.bukkit.entity.BreedablecanBreed, getAgeLock, setAgeLock, setBreedMethods inherited from interface org.bukkit.entity.ChestedHorseisCarryingChest, setCarryingChestMethods inherited from interface org.bukkit.command.CommandSendergetName, name, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendPlainMessage, sendRichMessage, sendRichMessageMethods inherited from interface org.bukkit.entity.Damageabledamage, damage, damage, getAbsorptionAmount, getHealth, getMaxHealth, heal, heal, resetMaxHealth, setAbsorptionAmount, setHealth, setMaxHealthMethods inherited from interface io.papermc.paper.datacomponent.DataComponentViewgetData, getDataOrDefault, hasDataMethods inherited from interface org.bukkit.entity.EntityaddPassenger, addScoreboardTag, asHoverEvent, broadcastHurtAnimation, collidesAt, copy, copy, createSnapshot, eject, fromMobSpawner, getAsString, getBoundingBox, getChunk, getEntityId, getEntitySpawnReason, getFacing, getFallDistance, getFireTicks, getFreezeTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getMaxFreezeTicks, getNearbyEntities, getOrigin, getPassenger, getPassengers, getPickItemStack, getPistonMoveReaction, getPitch, getPortalCooldown, getPose, getScheduler, getScoreboardEntryName, getScoreboardTags, getServer, getSpawnCategory, getSwimHighSpeedSplashSound, getSwimSound, getSwimSplashSound, getTicksLived, getTrackedBy, getTrackedPlayers, getType, getUniqueId, getVehicle, getVisualFire, getWidth, getWorld, getX, getY, getYaw, getZ, hasFixedPose, hasGravity, hasNoPhysics, isCustomNameVisible, isDead, isEmpty, isFreezeTickingLocked, isFrozen, isGlowing, isInBubbleColumn, isInLava, isInPowderedSnow, isInRain, isInsideVehicle, isInvisible, isInvulnerable, isInWater, isInWaterOrBubbleColumn, isInWaterOrRain, isInWaterOrRainOrBubbleColumn, isInWorld, isOnGround, isPersistent, isSilent, isSneaking, isTicking, isTrackedBy, isUnderWater, isValid, isVisibleByDefault, isVisualFire, leaveVehicle, lockFreezeTicks, lookAt, lookAt, playEffect, remove, removePassenger, removeScoreboardTag, setCustomNameVisible, setFallDistance, setFireTicks, setFreezeTicks, setGlowing, setGravity, setInvisible, setInvulnerable, setLastDamageCause, setNoPhysics, setPassenger, setPersistent, setPortalCooldown, setPose, setPose, setRotation, setSilent, setSneaking, setTicksLived, setVisibleByDefault, setVisualFire, setVisualFire, spawnAt, spawnAt, spigot, teamDisplayName, teleport, teleport, teleport, teleport, teleport, teleport, teleportAsync, teleportAsync, teleportAsync, wouldCollideUsingMethods inherited from interface io.papermc.paper.entity.FrictionalgetFrictionState, setFrictionStateMethods inherited from interface net.kyori.adventure.text.event.HoverEventSourceasHoverEventMethods inherited from interface io.papermc.paper.entity.LeashablegetLeashHolder, isLeashed, setLeashHolderMethods inherited from interface org.bukkit.entity.LivingEntityaddPotionEffect, addPotionEffect, addPotionEffects, attack, broadcastSlotBreak, broadcastSlotBreak, canBreatheUnderwater, canUseEquipmentSlot, clearActiveItem, clearActivePotionEffects, completeUsingActiveItem, damageItemStack, damageItemStack, getActiveItem, getActiveItemHand, getActiveItemRemainingTime, getActiveItemUsedTime, getActivePotionEffects, getArrowCooldown, getArrowsInBody, getArrowsStuck, getBeeStingerCooldown, getBeeStingersInBody, getBodyYaw, getCanPickupItems, getCategory, getCollidableExemptions, getCombatTracker, getDeathSound, getDrinkingSound, getEatingSound, getEyeHeight, getEyeHeight, getEyeLocation, getFallDamageSound, getFallDamageSoundBig, getFallDamageSoundSmall, getForwardsMovement, getHandRaised, getHandRaisedTime, getHurtDirection, getHurtSound, getItemInUse, getItemInUseTicks, getItemUseRemainingTime, getKiller, getLastDamage, getLastTwoTargetBlocks, getLeashHolder, getLineOfSight, getMaximumAir, getMaximumNoDamageTicks, getMemory, getNextArrowRemoval, getNextBeeStingerRemoval, getNoActionTicks, getNoDamageTicks, getPotionEffect, getRemainingAir, getRemoveWhenFarAway, getShieldBlockingDelay, getSidewaysMovement, getTargetBlock, getTargetBlock, getTargetBlock, getTargetBlockExact, getTargetBlockExact, getTargetBlockFace, getTargetBlockFace, getTargetBlockFace, getTargetBlockInfo, getTargetBlockInfo, getTargetEntity, getTargetEntity, getTargetEntityInfo, getTargetEntityInfo, getUpwardsMovement, hasActiveItem, hasAI, hasLineOfSight, hasLineOfSight, hasPotionEffect, isClimbing, isCollidable, isGliding, isHandRaised, isJumping, isLeashed, isRiptiding, isSleeping, isSwimming, knockback, playHurtAnimation, playPickupItemAnimation, playPickupItemAnimation, rayTraceBlocks, rayTraceBlocks, rayTraceEntities, rayTraceEntities, removePotionEffect, setActiveItemRemainingTime, setAI, setArrowCooldown, setArrowsInBody, setArrowsInBody, setArrowsStuck, setBeeStingerCooldown, setBeeStingersInBody, setBodyYaw, setCanPickupItems, setCollidable, setGliding, setHurtDirection, setItemInUseTicks, setJumping, setKiller, setLastDamage, setLeashHolder, setMaximumAir, setMaximumNoDamageTicks, setMemory, setNextArrowRemoval, setNextBeeStingerRemoval, setNoActionTicks, setNoDamageTicks, setRemainingAir, setRemoveWhenFarAway, setRiptiding, setShieldBlockingDelay, setSwimming, startUsingItem, swingHand, swingMainHand, swingOffHandMethods inherited from interface org.bukkit.loot.LootableclearLootTable, getLootTable, getSeed, hasLootTable, setLootTable, setSeedMethods inherited from interface org.bukkit.metadata.MetadatablegetMetadata, hasMetadata, removeMetadata, setMetadataMethods inherited from interface org.bukkit.entity.MobgetAmbientSound, getEquipment, getHeadRotationSpeed, getMaxHeadPitch, getPathfinder, getPossibleExperienceReward, getTarget, isAggressive, isAware, isInDaylight, isLeftHanded, lookAt, lookAt, lookAt, lookAt, lookAt, lookAt, setAggressive, setAware, setLeftHanded, setLootTable, setTargetMethods inherited from interface org.bukkit.NameablecustomName, customName, getCustomName, setCustomNameMethods inherited from interface org.bukkit.permissions.PermissibleaddAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, permissionValue, permissionValue, recalculatePermissions, removeAttachmentMethods inherited from interface org.bukkit.persistence.PersistentDataHoldergetPersistentDataContainerMethods inherited from interface net.kyori.adventure.pointer.Pointeredget, getOrDefault, getOrDefaultFrom, pointersMethods inherited from interface org.bukkit.projectiles.ProjectileSourcelaunchProjectile, launchProjectile, launchProjectileMethods inherited from interface com.destroystokyo.paper.entity.RangedEntityisChargingAttack, rangedAttack, setChargingAttackMethods inherited from interface org.bukkit.permissions.ServerOperatorisOp, setOpMethods inherited from interface org.bukkit.entity.TameablegetOwner, getOwnerUniqueId, isTamed, setOwner, setTamedMethods inherited from interface org.bukkit.entity.VehiclegetVelocity, setVelocity
- 
Method Details- 
getColorGets the llama's color.- Returns:
- a Llama.Colorrepresenting the llama's color
 
- 
setColorSets the llama's color.- Parameters:
- color- a- Llama.Colorfor this llama
 
- 
getStrengthint getStrength()Gets the llama's strength. A higher strength llama will have more inventory slots and be more threatening to entities.- Returns:
- llama strength [1,5]
 
- 
setStrengthvoid setStrength(int strength) Sets the llama's strength. A higher strength llama will have more inventory slots and be more threatening to entities. Inventory slots are equal to strength * 3.- Parameters:
- strength- llama strength [1,5]
 
- 
getInventoryDescription copied from interface:InventoryHolderGet the object's inventory.- Specified by:
- getInventoryin interface- AbstractHorse
- Specified by:
- getInventoryin interface- InventoryHolder
- Returns:
- The inventory.
 
- 
inCaravanboolean inCaravan()Checks if this llama is in a caravan. This means that this llama is currently following another llama.- Returns:
- is in caravan
 
- 
joinCaravanJoins a caravan, with the provided llama being the leader of the caravan. This llama will then follow the provided llama.- Parameters:
- llama- head of caravan to join
 
- 
leaveCaravanvoid leaveCaravan()Leaves the current caravan that they are in.
- 
getCaravanHeadGet the llama that this llama is following.Does not necessarily mean the leader of the entire caravan. - Returns:
- the llama currently being followed
 
- 
hasCaravanTailboolean hasCaravanTail()Checks if another llama is currently following behind this llama.- Returns:
- true if being followed in the caravan
 
- 
getCaravanTailGets the llama that is currently following behind this llama.- Returns:
- the llama following this llama, or null if none is following them
 
 
-