public class GlowAgeable extends GlowCreature implements org.bukkit.entity.Ageable
Modifier and Type | Field and Description |
---|---|
protected float |
height |
protected float |
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 |
---|
GlowAgeable(org.bukkit.Location location,
org.bukkit.entity.EntityType type,
double maxHealth)
Creates a new ageable creature.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canBreed() |
boolean |
canGrow()
Gets whether this entity can grow when fed.
|
protected int |
computeGrowthAmount(org.bukkit.Material material)
Computes the growth amount using a specific material for the current ageable creature.
|
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
Message s which can be sent to a client to spawn this entity. |
boolean |
entityInteract(GlowPlayer player,
InteractEntityMessage message) |
int |
getAge() |
boolean |
getAgeLock() |
int |
getForcedAge() |
int |
getInLove() |
GlowAgeable |
getParent() |
protected float |
getSoundPitch()
The pitch of the sounds this entity makes.
|
void |
grow(int age)
Grows an ageable creature.
|
boolean |
isAdult() |
void |
pulse()
Called every game cycle.
|
void |
setAdult() |
void |
setAge(int age) |
void |
setAgeLock(boolean ageLock) |
void |
setBaby() |
void |
setBreed(boolean breed) |
void |
setForcedAge(int forcedAge) |
void |
setInLove(int inLove) |
void |
setParent(GlowAgeable parent) |
protected void |
setScale(float scale) |
void |
setScaleForAge(boolean isAdult) |
getTarget, getType, setTarget
addPotionEffect, addPotionEffect, addPotionEffects, canTakeDamage, clearActivePotionEffects, createUpdateMessage, damage, getActiveItem, getActivePotionEffects, getAmbientDelay, 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, 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
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
public GlowAgeable(org.bukkit.Location location, org.bukkit.entity.EntityType type, double maxHealth)
location
- The location of the creature.type
- The type of monster.maxHealth
- The max health of the creature.public void pulse()
GlowEntity
pulse
in class GlowLivingEntity
public final void setAge(int age)
setAge
in interface org.bukkit.entity.Ageable
public final boolean getAgeLock()
getAgeLock
in interface org.bukkit.entity.Ageable
public final void setBaby()
setBaby
in interface org.bukkit.entity.Ageable
public final void setAdult()
setAdult
in interface org.bukkit.entity.Ageable
public final boolean isAdult()
isAdult
in interface org.bukkit.entity.Ageable
public boolean canBreed()
canBreed
in interface org.bukkit.entity.Ageable
public boolean canGrow()
public void setBreed(boolean breed)
setBreed
in interface org.bukkit.entity.Ageable
public void setScaleForAge(boolean isAdult)
public List<com.flowpowered.network.Message> createSpawnMessage()
GlowEntity
Message
s which can be sent to a client to spawn this entity.
Implementations in concrete subclasses may return a shallowly immutable list.createSpawnMessage
in class GlowCreature
protected final void setScale(float scale)
public boolean entityInteract(GlowPlayer player, InteractEntityMessage message)
entityInteract
in class GlowLivingEntity
public org.bukkit.entity.Ageable createBaby()
protected float getSoundPitch()
GlowLivingEntity
getSoundPitch
in class GlowLivingEntity
public void grow(int age)
age
- The age to add to the ageable creature.protected int computeGrowthAmount(org.bukkit.Material material)
material
- The food used to compute the growth amount.public int getAge()
getAge
in interface org.bukkit.entity.Ageable
public void setAgeLock(boolean ageLock)
setAgeLock
in interface org.bukkit.entity.Ageable
public int getForcedAge()
public void setForcedAge(int forcedAge)
public int getInLove()
public void setInLove(int inLove)
public GlowAgeable getParent()
public void setParent(GlowAgeable parent)
Copyright © 2021. All rights reserved.