Package org.bukkit.entity
Interface Panda
- All Superinterfaces:
Ageable
,Animals
,Attributable
,Breedable
,CommandSender
,Creature
,Damageable
,Entity
,LivingEntity
,Lootable
,Metadatable
,Mob
,Nameable
,Permissible
,PersistentDataHolder
,ProjectileSource
,ServerOperator
,Sittable
Panda entity.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.bukkit.entity.Entity
Entity.Spigot
-
Method Summary
Modifier and TypeMethodDescriptionGets this Panda's hidden gene.Gets this Panda's main gene.int
Gets how many ticks the panda will be unhappy forboolean
isEating()
Gets whether the Panda is eatingboolean
isOnBack()
Gets whether the Panda is on its backboolean
Gets whether the Panda is rollingboolean
isScared()
Gets whether the Panda is scaredboolean
Gets whether the Panda is sneezingvoid
setEating
(boolean flag) Sets the Panda's eating status.void
setHiddenGene
(Panda.Gene gene) Sets this Panda's hidden gene.void
setMainGene
(Panda.Gene gene) Sets this Panda's main gene.void
setOnBack
(boolean flag) Sets whether the Panda is on its backvoid
setRolling
(boolean flag) Sets whether the Panda is rollingvoid
setSneezing
(boolean flag) Sets whether the Panda is sneezingMethods inherited from interface org.bukkit.entity.Ageable
getAge, isAdult, setAdult, setAge, setBaby
Methods inherited from interface org.bukkit.entity.Animals
getBreedCause, getLoveModeTicks, isBreedItem, isBreedItem, isLoveMode, setBreedCause, setLoveModeTicks
Methods inherited from interface org.bukkit.attribute.Attributable
getAttribute
Methods inherited from interface org.bukkit.entity.Breedable
canBreed, getAgeLock, setAgeLock, setBreed
Methods inherited from interface org.bukkit.command.CommandSender
getName, sendMessage, sendMessage, sendMessage, sendMessage
Methods inherited from interface org.bukkit.entity.Damageable
damage, damage, getAbsorptionAmount, getHealth, getMaxHealth, resetMaxHealth, setAbsorptionAmount, setHealth, setMaxHealth
Methods inherited from interface org.bukkit.entity.Entity
addPassenger, addScoreboardTag, eject, 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, getType, getUniqueId, getVehicle, getVelocity, getWidth, getWorld, hasGravity, isCustomNameVisible, isDead, isEmpty, isFrozen, isGlowing, isInsideVehicle, isInvulnerable, isInWater, isOnGround, isPersistent, isSilent, isValid, isVisualFire, leaveVehicle, playEffect, remove, removePassenger, removeScoreboardTag, setCustomNameVisible, setFallDistance, setFireTicks, setFreezeTicks, setGlowing, setGravity, setInvulnerable, setLastDamageCause, setPassenger, setPersistent, setPortalCooldown, setRotation, setSilent, setTicksLived, setVelocity, 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, getKiller, getLastDamage, getLastTwoTargetBlocks, getLeashHolder, getLineOfSight, getMaximumAir, getMaximumNoDamageTicks, getMemory, getNoDamageTicks, getPotionEffect, getRemainingAir, getRemoveWhenFarAway, getTargetBlock, getTargetBlockExact, getTargetBlockExact, hasAI, hasLineOfSight, hasPotionEffect, isClimbing, isCollidable, isGliding, isInvisible, isLeashed, isRiptiding, isSleeping, isSwimming, rayTraceBlocks, rayTraceBlocks, removePotionEffect, setAI, setArrowCooldown, setArrowsInBody, setCanPickupItems, setCollidable, setGliding, setInvisible, setLastDamage, setLeashHolder, setMaximumAir, setMaximumNoDamageTicks, setMemory, setNoDamageTicks, setRemainingAir, setRemoveWhenFarAway, setSwimming, swingMainHand, swingOffHand
Methods inherited from interface org.bukkit.loot.Lootable
getLootTable, getSeed, setLootTable, setSeed
Methods inherited from interface org.bukkit.metadata.Metadatable
getMetadata, hasMetadata, removeMetadata, setMetadata
Methods inherited from interface org.bukkit.entity.Mob
getAmbientSound, getTarget, isAware, setAware, setTarget
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
Methods inherited from interface org.bukkit.entity.Sittable
isSitting, setSitting
-
Method Details
-
getMainGene
Gets this Panda's main gene.- Returns:
- main gene
-
setMainGene
Sets this Panda's main gene.- Parameters:
gene
- main gene
-
getHiddenGene
Gets this Panda's hidden gene.- Returns:
- hidden gene
-
setHiddenGene
Sets this Panda's hidden gene.- Parameters:
gene
- hidden gene
-
isRolling
boolean isRolling()Gets whether the Panda is rolling- Returns:
- Whether the Panda is rolling
-
setRolling
void setRolling(boolean flag) Sets whether the Panda is rolling- Parameters:
flag
- Whether the Panda is rolling
-
isSneezing
boolean isSneezing()Gets whether the Panda is sneezing- Returns:
- Whether the Panda is sneezing
-
setSneezing
void setSneezing(boolean flag) Sets whether the Panda is sneezing- Parameters:
flag
- Whether the Panda is sneezing
-
isOnBack
boolean isOnBack()Gets whether the Panda is on its back- Returns:
- Whether the Panda is on its back
-
setOnBack
void setOnBack(boolean flag) Sets whether the Panda is on its back- Parameters:
flag
- Whether the Panda is on its back
-
isEating
boolean isEating()Gets whether the Panda is eating- Returns:
- Whether the Panda is eating
-
setEating
void setEating(boolean flag) Sets the Panda's eating status. The panda must be holding food for this to work- Parameters:
flag
- Whether the Panda is eating
-
isScared
boolean isScared()Gets whether the Panda is scared- Returns:
- Whether the Panda is scared
-
getUnhappyTicks
int getUnhappyTicks()Gets how many ticks the panda will be unhappy for- Returns:
- The number of ticks the panda will be unhappy for
-