MCLivingEntity
Importing the class
It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.
Extending MCEntity
MCLivingEntity extends MCEntity. That means all methods available in MCEntity are also available in MCLivingEntity
Methods
Return Type: boolean
Parameter | Type | Description |
---|---|---|
Parameter effectInstanceIn | Type MCPotionEffectInstance | Description No Description Provided |
Return Type: boolean
Parameter | Type | Description |
---|---|---|
Parameter entityIn | Type MCEntity | Description No Description Provided |
Return Type: void
Parameter | Type | Description |
---|---|---|
Parameter damageSource | Type DamageSource | Description No Description Provided |
Parameter amount | Type float | Description No Description Provided |
Return Type: boolean
Parameter | Type | Description |
---|---|---|
Parameter target | Type MCLivingEntity | Description No Description Provided |
Return Type: boolean
Parameter | Type | Description |
---|---|---|
Parameter typeIn | Type MCEntityType | Description No Description Provided |
Return Type: boolean
Return Type: boolean
Return Type: boolean
Parameter | Type | Description |
---|---|---|
Parameter item | Type MCItemDefinition | Description No Description Provided |
Return Type: boolean
Return Type: float
Return Type: MCPotionEffectInstance
Parameter | Type | Description |
---|---|---|
Parameter potionIn | Type MCPotionEffect | Description No Description Provided |
Return Type: Collection<MCPotionEffectInstance>
Return Type: MCPotionEffectInstance[MCPotionEffect]
Return Type: float
Return Type: stdlib.Iterable<ItemStack>
Return Type: int
Return Type: MCLivingEntity
Return Type: AttributeInstance?
Parameter | Type | Description |
---|---|---|
Parameter attribute | Type Attribute | Description No Description Provided |
Return Type: int
Return Type: float
Gets the ItemStack in the specific hand.
Returns: The ItemStack in the specific hand.
Return Type: IItemStack
Parameter | Type | Description |
---|---|---|
Parameter hand | Type MCHand | Description No Description Provided |
Return Type: ItemStack
Return Type: ItemStack
Return Type: int
Gets the ItemStack in the specific slot.
Returns: The ItemStack in the specific slot.
Return Type: IItemStack
Parameter | Type | Description |
---|---|---|
Parameter slot | Type MCEquipmentSlotType | Description No Description Provided |
Return Type: MCLivingEntity
Return Type: int
Return Type: float
Return Type: MCLivingEntity
Return Type: int
Return Type: boolean
Return Type: int
Return Type: void
Parameter | Type | Description |
---|---|---|
Parameter healAmount | Type float | Description No Description Provided |
Return Type: boolean
Return Type: boolean
Return Type: boolean
Return Type: boolean
Return Type: boolean
Parameter | Type | Description |
---|---|---|
Parameter potionIn | Type MCPotionEffect | Description No Description Provided |
Return Type: boolean
Parameter | Type | Description |
---|---|---|
Parameter potioneffectIn | Type MCPotionEffectInstance | Description No Description Provided |
Return Type: boolean
Return Type: MCPotionEffectInstance
Parameter | Type | Description |
---|---|---|
Parameter potioneffectin | Type MCPotionEffect | Description No Description Provided |
Return Type: boolean
Parameter | Type | Description |
---|---|---|
Parameter effectIn | Type MCPotionEffect | Description No Description Provided |
Return Type: void
Parameter | Type | Description |
---|---|---|
Parameter speedIn | Type float | Description No Description Provided |
Return Type: void
Parameter | Type | Description |
---|---|---|
Parameter count | Type int | Description No Description Provided |
Return Type: void
Parameter | Type | Description |
---|---|---|
Parameter p_226300_1_ | Type int | Description No Description Provided |
Return Type: void
Parameter | Type | Description |
---|---|---|
Parameter health | Type float | Description No Description Provided |
Sets a copied given itemStack to the hand
Return Type: void
Parameter | Type | Description |
---|---|---|
Parameter hand | Type MCHand | Description No Description Provided |
Parameter itemStack | Type IItemStack | Description No Description Provided |
Return Type: void
Parameter | Type | Description |
---|---|---|
Parameter idleTimeIn | Type int | Description No Description Provided |
Sets a copied given itemStack to the slot
Return Type: void
Parameter | Type | Description |
---|---|---|
Parameter slot | Type MCEquipmentSlotType | Description No Description Provided |
Parameter itemStack | Type IItemStack | Description No Description Provided |
Return Type: void
Parameter | Type | Description |
---|---|---|
Parameter entityIn | Type MCEntity | Description No Description Provided |
Return Type: void
Parameter | Type | Description |
---|---|---|
Parameter livingBase | Type MCLivingEntity | Description No Description Provided |