public interface IEntityLivingBase<T extends net.minecraft.entity.EntityLivingBase> extends IEntity<T>
| Modifier and Type | Method and Description |
|---|---|
void |
addPotionEffect(int effect,
int duration,
int strength,
boolean hideParticles)
Works the same as the /effect command
|
boolean |
canBreatheUnderwater() |
boolean |
canSeeEntity(IEntity entity) |
void |
clearPotionEffects()
Clears all potion effects
|
void |
dismountEntity(IEntity entity) |
float |
getAbsorptionAmount() |
float |
getAIMoveSpeed() |
IItemStack |
getArmor(int slot)
Note not all Living Entities support this
|
int |
getArrowCountInEntity() |
IEntityLivingBase |
getAttackTarget() |
int |
getAttackTargetTime() |
double |
getFollowRange() |
float |
getHealth() |
IItemStack |
getHeldItem()
Note not all Living Entities support this
|
double |
getKnockbackResistance() |
IEntity |
getLastAttacker() |
int |
getLastAttackerTime() |
IBlock |
getLookingAtBlock(int maxDistance) |
IBlock |
getLookingAtBlock(int maxDistance,
boolean stopOnBlock,
boolean stopOnLiquid,
boolean stopOnCollision) |
IEntity[] |
getLookingAtEntities(IEntity[] ignoreEntities,
int maxDistance,
double offset,
double range,
boolean stopOnBlock,
boolean stopOnLiquid,
boolean stopOnCollision) |
IEntity[] |
getLookingAtEntities(int maxDistance,
double offset,
double range) |
IEntity[] |
getLookingAtEntities(int maxDistance,
double offset,
double range,
boolean stopOnBlock,
boolean stopOnLiquid,
boolean stopOnCollision) |
IPos |
getLookingAtPos(int maxDistance)
Returns an IPos object corresponding to the final obstructed point following along the
entity's look vector.
|
IPos |
getLookingAtPos(int maxDistance,
boolean stopOnBlock,
boolean stopOnLiquid,
boolean stopOnCollision) |
IPos |
getLookVector() |
double |
getMaxHealth() |
T |
getMCEntity()
Expert use only
|
double |
getMeleeStrength() |
int |
getPotionEffect(int effect) |
double |
getSpeed() |
int |
getTotalArmorValue() |
int |
getType() |
void |
hurt(float damage) |
void |
hurt(float damage,
IDamageSource damageSource) |
void |
hurt(float damage,
IEntity source) |
boolean |
isAttacking() |
boolean |
isChild() |
boolean |
isOnLadder() |
void |
renderBrokenItemStack(IItemStack itemStack) |
void |
setAbsorptionAmount(float amount) |
void |
setAIMoveSpeed(float speed) |
void |
setArmor(int slot,
IItemStack item)
Note not all Living Entities support this
|
void |
setArrowCountInEntity(int count) |
void |
setAttackTarget(IEntityLivingBase living) |
void |
setFollowRange(double range) |
void |
setHealth(float health) |
void |
setHeldItem(IItemStack item)
Note not all Living Entities support this
|
void |
setKnockbackResistance(double knockbackResistance) |
void |
setLastAttacker(IEntity p_130011_1_) |
void |
setMaxHealth(double health) |
int |
setMaxHurtTime() |
void |
setMaxHurtTime(int time) |
void |
setMeleeStrength(double attackDamage) |
void |
setSpeed(double speed) |
void |
swingHand()
Makes the entity swing its hand
|
boolean |
typeOf(int type) |
capturesDrops, clearStoredData, clearTempData, despawn, dropItem, extinguish, getAge, getAllNbt, getBlockX, getBlockY, getBlockZ, getCapturedDrops, getDimension, getEntityId, getHeight, getMotion, getMotionX, getMotionY, getMotionZ, getMount, getNbt, getNbtOptional, getPitch, getPosition, getRider, getRotation, getStoredData, getStoredDataKeys, getSurroundingEntities, getSurroundingEntities, getTempData, getTempDataKeys, getTypeName, getUniqueID, getWidth, getWorld, getX, getY, getYOffset, getZ, hasCollided, hasCollidedHorizontally, hasCollidedVertically, hasStoredData, hasTempData, inFire, inLava, inWater, isAirborne, isAlive, isBurning, isSneaking, isSprinting, knockback, knockback, knockback, removeStoredData, removeTempData, setBurning, setCapturedDrops, setCapturesDrops, setDimension, setImmune, setInvisible, setMotion, setMotion, setMotionX, setMotionY, setMotionZ, setMount, setNbt, setPitch, setPosition, setPosition, setRider, setRotation, setRotation, setSneaking, setSprinting, setStoredData, setTempData, setX, setY, setZ, spawnParticle, storeAsClone, updateEntityfloat getHealth()
void setHealth(float health)
health - The new health of this entityvoid hurt(float damage)
void hurt(float damage,
IEntity source)
void hurt(float damage,
IDamageSource damageSource)
void setMaxHurtTime(int time)
int setMaxHurtTime()
double getMaxHealth()
double getFollowRange()
double getKnockbackResistance()
double getSpeed()
double getMeleeStrength()
void setMaxHealth(double health)
void setFollowRange(double range)
void setKnockbackResistance(double knockbackResistance)
void setSpeed(double speed)
void setMeleeStrength(double attackDamage)
boolean isAttacking()
void setAttackTarget(IEntityLivingBase living)
living - Entity which this entity will attackIEntityLivingBase getAttackTarget()
int getAttackTargetTime()
void setLastAttacker(IEntity p_130011_1_)
IEntity getLastAttacker()
int getLastAttackerTime()
boolean canBreatheUnderwater()
int getType()
boolean typeOf(int type)
boolean canSeeEntity(IEntity entity)
entity - Entity to checkIPos getLookVector()
IBlock getLookingAtBlock(int maxDistance, boolean stopOnBlock, boolean stopOnLiquid, boolean stopOnCollision)
IBlock getLookingAtBlock(int maxDistance)
maxDistance - The max distance to perform checks before stoppingIPos getLookingAtPos(int maxDistance, boolean stopOnBlock, boolean stopOnLiquid, boolean stopOnCollision)
IPos getLookingAtPos(int maxDistance)
maxDistance - The max distance to perform checks before stoppingIEntity[] getLookingAtEntities(IEntity[] ignoreEntities, int maxDistance, double offset, double range, boolean stopOnBlock, boolean stopOnLiquid, boolean stopOnCollision)
maxDistance - The max distance to perform checks before stoppingrange - The radius to check for surrounding entities at every point on the vectorIEntity[] getLookingAtEntities(int maxDistance, double offset, double range, boolean stopOnBlock, boolean stopOnLiquid, boolean stopOnCollision)
IEntity[] getLookingAtEntities(int maxDistance, double offset, double range)
T getMCEntity()
getMCEntity in interface IEntity<T extends net.minecraft.entity.EntityLivingBase>void swingHand()
void addPotionEffect(int effect,
int duration,
int strength,
boolean hideParticles)
effect - duration - The duration in secondsstrength - The amplifier of the potion effecthideParticles - Whether or not you want to hide potion particlesvoid clearPotionEffects()
int getPotionEffect(int effect)
effect - Potion effect to checkIItemStack getHeldItem()
void setHeldItem(IItemStack item)
item - The item to be setIItemStack getArmor(int slot)
slot - Slot of what armor piece to get, 0:boots, 1:pants, 2:body, 3:headvoid setArmor(int slot,
IItemStack item)
slot - Slot of what armor piece to set, 0:boots, 1:pants, 2:body, 3:headitem - Item to be setboolean isChild()
void renderBrokenItemStack(IItemStack itemStack)
boolean isOnLadder()
int getTotalArmorValue()
int getArrowCountInEntity()
void setArrowCountInEntity(int count)
void dismountEntity(IEntity entity)
void setAIMoveSpeed(float speed)
float getAIMoveSpeed()
void setAbsorptionAmount(float amount)
float getAbsorptionAmount()