public class GlowHorse extends GlowAbstractHorse implements org.bukkit.entity.Horse
height, widthdeathTicks, health, maxHealth, movement, speed, taskManageractive, 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 |
|---|
GlowHorse(org.bukkit.Location location) |
| Modifier and Type | Method and Description |
|---|---|
org.bukkit.entity.Ageable |
createBaby()
Creates a baby clone of this creature, as when right-clicking it with a spawn egg.
|
List<com.flowpowered.network.Message> |
createSpawnMessage()
Creates a list of
Messages which can be sent to a client to spawn this entity. |
protected org.bukkit.Sound |
getAmbientSound()
Get the ambient sound this entity makes randomly, or null for silence.
|
org.bukkit.entity.Horse.Color |
getColor() |
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.inventory.HorseInventory |
getInventory() |
org.bukkit.entity.Horse.Style |
getStyle() |
int |
getTemper() |
org.bukkit.entity.Horse.Variant |
getVariant() |
boolean |
hasReproduced() |
boolean |
isCarryingChest() |
boolean |
isEatingHay() |
void |
setCarryingChest(boolean b) |
void |
setColor(org.bukkit.entity.Horse.Color color) |
void |
setEatingHay(boolean eatingHay) |
void |
setHasReproduced(boolean hasReproduced) |
void |
setInventory(org.bukkit.inventory.HorseInventory inventory) |
void |
setStyle(org.bukkit.entity.Horse.Style style) |
void |
setTemper(int temper) |
void |
setVariant(org.bukkit.entity.Horse.Variant variant) |
protected boolean |
tryFeed(org.bukkit.Material food,
GlowPlayer player)
Determines whether this entity can eat an item while healthy, and if so, applies the effects
of eating it.
|
canBreed, computeDomestication, computeGrowthAmount, getBreedingFoods, getDomestication, getJumpStrength, getMaxDomestication, isTamed, setDomestication, setJumpStrength, setMaxDomestication, setTamedfireEntityTameEvent, getOwner, getOwnerUniqueId, isSitting, setOwner, setOwnerUniqueId, setSittingentityInteract, getAmbientDelaycanGrow, getAge, getAgeLock, getForcedAge, getInLove, getParent, getSoundPitch, grow, isAdult, pulse, setAdult, setAge, setAgeLock, setBaby, setBreed, setForcedAge, setInLove, setParent, setScale, setScaleForAgegetTarget, getType, setTargetaddPotionEffect, 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, updatePotionEffectsMetadataaddAttachment, 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, updateBoundingBoxclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetDomestication, getJumpStrength, getMaxDomestication, setDomestication, setJumpStrength, setMaxDomesticationcanBreed, getAge, getAgeLock, isAdult, setAdult, setAge, setAgeLock, setBaby, setBreedaddPotionEffect, 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, setShieldBlockingDelaydamage, damage, damage, damage, getHealth, getMaxHealth, resetMaxHealth, setHealth, setMaxHealthaddPassenger, 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, teleportgetMetadata, hasMetadata, removeMetadata, setMetadatagetName, sendMessage, sendMessage, sendMessage, sendMessageaddAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachmentprotected boolean tryFeed(org.bukkit.Material food,
GlowPlayer player)
GlowAnimaltryFeed in class GlowAbstractHorsefood - an item that may be foodplayer - the player feeding the entity, for statistical purposespublic void setColor(org.bukkit.entity.Horse.Color color)
setColor in interface org.bukkit.entity.Horsepublic void setStyle(org.bukkit.entity.Horse.Style style)
setStyle in interface org.bukkit.entity.Horsepublic boolean isCarryingChest()
isCarryingChest in interface org.bukkit.entity.Horsepublic void setCarryingChest(boolean b)
setCarryingChest in interface org.bukkit.entity.Horsepublic boolean hasReproduced()
public List<com.flowpowered.network.Message> createSpawnMessage()
GlowEntityMessages which can be sent to a client to spawn this entity.
Implementations in concrete subclasses may return a shallowly immutable list.createSpawnMessage in class GlowAbstractHorseprotected org.bukkit.Sound getHurtSound()
GlowLivingEntitygetHurtSound in class GlowLivingEntityprotected org.bukkit.Sound getDeathSound()
GlowLivingEntitygetDeathSound in class GlowLivingEntityprotected org.bukkit.Sound getAmbientSound()
GlowLivingEntitygetAmbientSound in class GlowLivingEntitypublic org.bukkit.entity.Ageable createBaby()
GlowAgeablecreateBaby in class GlowAgeablepublic org.bukkit.entity.Horse.Variant getVariant()
getVariant in interface org.bukkit.entity.AbstractHorsegetVariant in class GlowAbstractHorsepublic void setVariant(org.bukkit.entity.Horse.Variant variant)
setVariant in interface org.bukkit.entity.AbstractHorsesetVariant in class GlowAbstractHorsepublic org.bukkit.entity.Horse.Color getColor()
getColor in interface org.bukkit.entity.Horsepublic org.bukkit.entity.Horse.Style getStyle()
getStyle in interface org.bukkit.entity.Horsepublic boolean isEatingHay()
public void setEatingHay(boolean eatingHay)
public void setHasReproduced(boolean hasReproduced)
public int getTemper()
public void setTemper(int temper)
public org.bukkit.inventory.HorseInventory getInventory()
getInventory in interface org.bukkit.entity.AbstractHorsegetInventory in interface org.bukkit.entity.HorsegetInventory in interface org.bukkit.inventory.InventoryHolderpublic void setInventory(org.bukkit.inventory.HorseInventory inventory)
Copyright © 2021. All rights reserved.