public class GlowParrot extends GlowTameable implements org.bukkit.entity.Parrot
Modifier and Type | Class and Description |
---|---|
static class |
GlowParrot.Shoulder |
Modifier and Type | Field and Description |
---|---|
static org.bukkit.entity.Parrot.Variant[] |
VARIANTS |
height, width
deathTicks, health, maxHealth, movement, speed, taskManager
active, airDrag, applyDragBeforeAccel, boundingBox, ENTITY_ID_NOBODY, entityId, gravityAccel, liquidDrag, location, metadata, passengerChanged, previousLocation, removed, server, slipMultiplier, teleported, ticksLived, vehicle, velocity, velocityChanged, world, worldLock
Constructor and Description |
---|
GlowParrot(org.bukkit.Location location)
Creates a parrot of a random variant.
|
Modifier and Type | Method and Description |
---|---|
boolean |
entityInteract(GlowPlayer player,
InteractEntityMessage message) |
protected org.bukkit.Sound |
getAmbientSound()
Get the ambient sound this entity makes randomly, or null for silence.
|
protected org.bukkit.Sound |
getDeathSound()
Get the death sound of this entity, or null for silence.
|
protected org.bukkit.Sound |
getHurtSound()
Get the hurt sound of this entity, or null for silence.
|
org.bukkit.entity.LivingEntity |
getImitatedEntity() |
org.bukkit.entity.Player |
getSittingOn()
Returns the owner, if this parrot is sitting on its owner's shoulder.
|
org.bukkit.entity.Parrot.Variant |
getVariant() |
void |
pulse()
Called every game cycle.
|
void |
setImitatedEntity(org.bukkit.entity.LivingEntity livingEntity) |
void |
setSittingOn(org.bukkit.entity.Player player,
GlowParrot.Shoulder shoulder)
Sits on the given player's shoulder.
|
void |
setVariant(org.bukkit.entity.Parrot.Variant variant) |
fireEntityTameEvent, getOwner, getOwnerUniqueId, isSitting, isTamed, setOwner, setOwnerUniqueId, setSitting, setTamed
computeGrowthAmount, getAmbientDelay, getBreedingFoods, tryFeed
canBreed, canGrow, createBaby, createSpawnMessage, getAge, getAgeLock, getForcedAge, getInLove, getParent, getSoundPitch, grow, isAdult, setAdult, setAge, setAgeLock, setBaby, setBreed, setForcedAge, setInLove, setParent, setScale, setScaleForAge
getTarget, getType, setTarget
addPotionEffect, addPotionEffect, addPotionEffects, canTakeDamage, clearActivePotionEffects, createUpdateMessage, damage, getActiveItem, getActivePotionEffects, getArrowsStuck, getAttribute, getAttributeManager, getCanPickupItems, getDeathTicks, getEquipment, getEquipmentMonitor, getEyeHeight, getEyeHeight, getEyeLocation, getHandRaisedTime, getHeadYaw, getHealth, getItemUseRemainingTime, getKiller, getLastDamage, getLastDamager, getLastTwoTargetBlocks, getLastTwoTargetBlocks, getLineOfSight, getMaxHealth, getMaximumAir, getMaximumNoDamageTicks, getMovement, getNoDamageTicks, getPlayerDamageTick, getPotionEffect, getRemainingAir, getRemoveWhenFarAway, getShieldBlockingDelay, getSoundVolume, getSpeed, getState, getTargetBlock, getTargetBlock, getTaskManager, getVelocityFromMovement, hasAI, hasLineOfSight, hasPotionEffect, isArthropod, isCollidable, isFallFlying, isGliding, isHandRaised, isUndead, isWithinSolidBlock, jump, launchProjectile, launchProjectile, launchProjectile, launchProjectile, playAnimation, pulsePhysics, removePotionEffect, reset, resetMaxHealth, setAI, setArrowsStuck, setCanPickupItems, setCollidable, setFallFlying, setGliding, setHeadYaw, setHealth, setKiller, setLastDamage, setLastDamager, setMaxHealth, setMaximumAir, setMaximumNoDamageTicks, setMovement, setNoDamageTicks, setOnGround, setPlayerDamageTick, setRemainingAir, setRemoveWhenFarAway, setShieldBlockingDelay, setSpeed, setState, tryUseTotem, updatePotionEffectsMetadata
addAttachment, addAttachment, addAttachment, addAttachment, addPassenger, addScoreboardTag, collide, createAfterSpawnMessage, damage, damage, damage, eject, equals, fromMobSpawner, getCardinalFacing, getChunk, getCustomName, getCustomTags, getDismountLocation, getEffectivePermissions, getEntityId, getFacing, getFallDistance, getFireTicks, getGravityAccel, getHeight, getLastDamageCause, getLeashedEntities, getLeashHolder, getLocation, getLocation, getMaxFireTicks, getMetadata, getMetadata, getMountLocation, getName, getNearbyEntities, getOrigin, getPassenger, getPassengers, getPistonMoveReaction, getPortalCooldown, getScoreboardTags, getServer, getTicksLived, getUniqueId, getVehicle, getVelocity, getWidth, getWorld, hasDefaultLandingBehavior, hasFriction, hasGravity, hashCode, hasMetadata, hasMoved, hasPermission, hasPermission, hasRotated, intersects, isCustomNameVisible, isDead, isEmpty, isGlowing, isInsideVehicle, isInvulnerable, isLeashed, isOnGround, isOp, isPermissionSet, isPermissionSet, isRemoved, isSilent, isTeleported, isTouchingMaterial, isValid, isWithinDistance, isWithinDistance, leaveVehicle, playEffect, playEffectKnownAndSelf, recalculatePermissions, remove, removeAttachment, removeMetadata, removePassenger, removeScoreboardTag, sendMessage, sendMessage, setAirDrag, setApplyDragBeforeAccel, setBoundingBox, setCustomName, setCustomNameVisible, setFallDistance, setFireTicks, setFriction, setGlowing, setGravity, setGravityAccel, setInvulnerable, setLastDamageCause, setLeashHolder, setLeashHolderUniqueId, setLiquidDrag, setMetadata, setOp, setPassenger, setPortalCooldown, setRawLocation, setRawLocation, setSilent, setSize, setTicksLived, setUniqueId, setVelocity, shouldSave, spigot, teleport, teleport, teleport, teleport, teleportToEnd, teleportToSpawn, toString, updateBoundingBox
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
canBreed, getAge, getAgeLock, isAdult, setAdult, setAge, setAgeLock, setBaby, setBreed
addPotionEffect, addPotionEffect, addPotionEffects, getActiveItem, getActivePotionEffects, getArrowsStuck, getCanPickupItems, getEquipment, getEyeHeight, getEyeHeight, getEyeLocation, getHandRaisedTime, getItemUseRemainingTime, getKiller, getLastDamage, getLastTwoTargetBlocks, getLeashHolder, getLineOfSight, getMaximumAir, getMaximumNoDamageTicks, getNoDamageTicks, getPotionEffect, getRemainingAir, getRemoveWhenFarAway, getShieldBlockingDelay, getTargetBlock, hasAI, hasLineOfSight, hasPotionEffect, isCollidable, isGliding, isHandRaised, isLeashed, playAnimation, removePotionEffect, setAI, setArrowsStuck, setCanPickupItems, setCollidable, setGliding, setKiller, setLastDamage, setLeashHolder, setMaximumAir, setMaximumNoDamageTicks, setNoDamageTicks, setRemainingAir, setRemoveWhenFarAway, setShieldBlockingDelay
damage, damage, damage, damage, getHealth, getMaxHealth, resetMaxHealth, setHealth, setMaxHealth
addPassenger, addScoreboardTag, eject, fromMobSpawner, getChunk, getEntityId, getFallDistance, getFireTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getNearbyEntities, getOrigin, getPassenger, getPassengers, getPistonMoveReaction, getPortalCooldown, getScoreboardTags, getServer, getTicksLived, getType, getUniqueId, getVehicle, getVelocity, getWidth, getWorld, hasGravity, isCustomNameVisible, isDead, isEmpty, isGlowing, isInsideVehicle, isInvulnerable, isOnGround, isSilent, isValid, leaveVehicle, playEffect, remove, removePassenger, removeScoreboardTag, setCustomNameVisible, setFallDistance, setFireTicks, setGlowing, setGravity, setInvulnerable, setLastDamageCause, setPassenger, setPortalCooldown, setSilent, setTicksLived, setVelocity, spigot, teleport, teleport, teleport, teleport
getMetadata, hasMetadata, removeMetadata, setMetadata
getName, sendMessage, sendMessage, sendMessage, sendMessage
addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachment
launchProjectile, launchProjectile
public GlowParrot(org.bukkit.Location location)
location
- the initial locationpublic void pulse()
GlowEntity
pulse
in class GlowAgeable
public org.bukkit.entity.Parrot.Variant getVariant()
getVariant
in interface org.bukkit.entity.Parrot
public void setVariant(org.bukkit.entity.Parrot.Variant variant)
setVariant
in interface org.bukkit.entity.Parrot
public org.bukkit.entity.LivingEntity getImitatedEntity()
public void setImitatedEntity(org.bukkit.entity.LivingEntity livingEntity)
public org.bukkit.entity.Player getSittingOn()
public void setSittingOn(org.bukkit.entity.Player player, GlowParrot.Shoulder shoulder)
player
- the player whose shoulder to sit onshoulder
- which shoulder to sit onpublic boolean entityInteract(GlowPlayer player, InteractEntityMessage message)
entityInteract
in class GlowAnimal
protected org.bukkit.Sound getHurtSound()
GlowLivingEntity
getHurtSound
in class GlowLivingEntity
protected org.bukkit.Sound getDeathSound()
GlowLivingEntity
getDeathSound
in class GlowLivingEntity
protected org.bukkit.Sound getAmbientSound()
GlowLivingEntity
getAmbientSound
in class GlowLivingEntity
Copyright © 2021. All rights reserved.