public abstract class GlowAbstractHorse extends GlowTameable implements org.bukkit.entity.AbstractHorse
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 |
|---|
GlowAbstractHorse(org.bukkit.Location location,
org.bukkit.entity.EntityType type,
double maxHealth) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canBreed() |
protected int |
computeDomestication(org.bukkit.Material food)
Returns the amount to increment the domestication
(progress toward taming) when the given food is consumed by an untamed adult mob, before
applying the maximum domestication.
|
protected int |
computeGrowthAmount(org.bukkit.Material material)
Computes the growth amount using a specific material for the current ageable creature.
|
List<com.flowpowered.network.Message> |
createSpawnMessage()
Creates a list of
Messages which can be sent to a client to spawn this entity. |
Set<org.bukkit.Material> |
getBreedingFoods()
Returns an immutable set containing the breeding foods for the current animal.
|
int |
getDomestication() |
double |
getJumpStrength() |
int |
getMaxDomestication() |
org.bukkit.entity.Horse.Variant |
getVariant() |
boolean |
isTamed() |
void |
setDomestication(int domestication) |
void |
setJumpStrength(double jumpStrength) |
void |
setMaxDomestication(int maxDomestication) |
void |
setTamed(boolean tamed) |
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.
|
fireEntityTameEvent, getOwner, getOwnerUniqueId, isSitting, setOwner, setOwnerUniqueId, setSittingentityInteract, getAmbientDelaycanGrow, createBaby, 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, getAmbientSound, getArrowsStuck, getAttribute, getAttributeManager, getCanPickupItems, getDeathSound, getDeathTicks, getEquipment, getEquipmentMonitor, getEyeHeight, getEyeHeight, getEyeLocation, getHandRaisedTime, getHeadYaw, getHealth, getHurtSound, 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, waitgetAge, 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, removeAttachmentpublic GlowAbstractHorse(org.bukkit.Location location,
org.bukkit.entity.EntityType type,
double maxHealth)
protected boolean tryFeed(org.bukkit.Material food,
GlowPlayer player)
GlowAnimaltryFeed in class GlowAnimalfood - an item that may be foodplayer - the player feeding the entity, for statistical purposespublic 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 GlowAgeablepublic org.bukkit.entity.Horse.Variant getVariant()
getVariant in interface org.bukkit.entity.AbstractHorsepublic void setVariant(org.bukkit.entity.Horse.Variant variant)
setVariant in interface org.bukkit.entity.AbstractHorsepublic boolean canBreed()
canBreed in interface org.bukkit.entity.AgeablecanBreed in class GlowAgeablepublic Set<org.bukkit.Material> getBreedingFoods()
GlowAnimalgetBreedingFoods in class GlowAnimalprotected int computeDomestication(org.bukkit.Material food)
food - the food to consumeprotected int computeGrowthAmount(org.bukkit.Material material)
GlowAgeablecomputeGrowthAmount in class GlowAnimalmaterial - The food used to compute the growth amount.public int getDomestication()
getDomestication in interface org.bukkit.entity.AbstractHorsepublic void setDomestication(int domestication)
setDomestication in interface org.bukkit.entity.AbstractHorsepublic int getMaxDomestication()
getMaxDomestication in interface org.bukkit.entity.AbstractHorsepublic void setMaxDomestication(int maxDomestication)
setMaxDomestication in interface org.bukkit.entity.AbstractHorsepublic double getJumpStrength()
getJumpStrength in interface org.bukkit.entity.AbstractHorsepublic void setJumpStrength(double jumpStrength)
setJumpStrength in interface org.bukkit.entity.AbstractHorsepublic boolean isTamed()
isTamed in interface org.bukkit.entity.TameableisTamed in class GlowTameablepublic void setTamed(boolean tamed)
setTamed in interface org.bukkit.entity.TameablesetTamed in class GlowTameableCopyright © 2021. All rights reserved.