EntityLivingBase

open class EntityLivingBase(entityLivingBase: MCEntityLivingBase) : Entity

Functions

Link copied to clipboard
fun addPotionEffect(effect: PotionEffect)
Link copied to clipboard
fun canSeeEntity(other: Entity): Boolean
fun canSeeEntity(other: MCEntity): Boolean
Link copied to clipboard
fun clearPotionEffects()
Link copied to clipboard
fun getAbsorption(): Float
Link copied to clipboard
fun getActivePotionEffects(): List<PotionEffect>
Link copied to clipboard
fun getAge(): Int
Link copied to clipboard
fun getArmorValue(): Int
Link copied to clipboard
fun getHP(): Float
Link copied to clipboard
fun getItemInSlot(slot: Int): Item?

Gets the item currently in the entity's specified inventory slot. 0 for main hand, 1-4 for armor (2 for offhand in 1.12.2, and everything else shifted over).

Link copied to clipboard
fun getMaxHP(): Float
Link copied to clipboard
fun isPotionActive(potionEffect: PotionEffect): Boolean
fun isPotionActive(id: Int): Boolean
fun isPotionActive(potion: Potion): Boolean
Link copied to clipboard
fun setAbsorption(absorption: Float): EntityLivingBase
Link copied to clipboard
fun setHP(health: Float): EntityLivingBase
Link copied to clipboard
open override fun toString(): String

Properties

Link copied to clipboard
val entityLivingBase: MCEntityLivingBase

Inheritors

Link copied to clipboard

Sources

Link copied to clipboard