MCLivingEntity Импорт класса 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.
import crafttweaker. api. entity. MCLivingEntity ;
Extending MCEntity MCLivingEntity extends MCEntity . That means all methods available in MCEntity are also available in MCLivingEntity
Methods Return Type: boolean
MCLivingEntity. addPotionEffect ( effectInstanceIn as MCPotionEffectInstance ) as boolean
Return Type: boolean
MCLivingEntity. attackEntityAsMob ( entityIn as MCEntity ) as boolean
Параметр Тип Description entityIn MCEntity No Description Provided
Return Type: void
MCLivingEntity. attackEntityFrom ( damageSource as DamageSource , amount as float ) as void
Параметр Тип Description damageSource DamageSource No Description Provided amount float No Description Provided
Return Type: boolean
MCLivingEntity. canAttack ( target as MCLivingEntity ) as boolean
Return Type: boolean
MCLivingEntity. canAttack ( typeIn as MCEntityType ) as boolean
Параметр Тип Description typeIn MCEntityType No Description Provided
Return Type: boolean
MCLivingEntity. canBeRiddenInWater ( ) as boolean
myMCLivingEntity. canBeRiddenInWater ( ) ;
Return Type: boolean
MCLivingEntity. canBreatheUnderwater ( ) as boolean
myMCLivingEntity. canBreatheUnderwater ( ) ;
Return Type: boolean
MCLivingEntity. canEquip ( item as MCItemDefinition ) as boolean
Return Type: boolean
MCLivingEntity. clearActivePotions ( ) as boolean
myMCLivingEntity. clearActivePotions ( ) ;
Return Type: float
MCLivingEntity. getAIMoveSpeed ( ) as float
myMCLivingEntity. getAIMoveSpeed ( ) ;
Return Type: MCPotionEffectInstance
MCLivingEntity. getActivePotionEffect ( potionIn as MCPotionEffect ) as MCPotionEffectInstance
Return Type: Collection<MCPotionEffectInstance >
MCLivingEntity. getActivePotionEffects ( ) as Collection < MCPotionEffectInstance >
myMCLivingEntity. getActivePotionEffects ( ) ;
Return Type: float
MCLivingEntity. getArmorCoverPercentage ( ) as float
myMCLivingEntity. getArmorCoverPercentage ( ) ;
Return Type: stdlib.Iterable<ItemStack >
MCLivingEntity. getArmorInventoryList ( ) as stdlib .Iterable < ItemStack >
myMCLivingEntity. getArmorInventoryList ( ) ;
Return Type: int
MCLivingEntity. getArrowCountInEntity ( ) as int
myMCLivingEntity. getArrowCountInEntity ( ) ;
Return Type: MCLivingEntity
MCLivingEntity. getAttackingEntity ( ) as MCLivingEntity
myMCLivingEntity. getAttackingEntity ( ) ;
Return Type: int
MCLivingEntity. getBeeStingCount ( ) as int
myMCLivingEntity. getBeeStingCount ( ) ;
Return Type: float
MCLivingEntity. getHealth ( ) as float
myMCLivingEntity. getHealth ( ) ;
Return Type: ItemStack
MCLivingEntity. getHeldItemMainhand ( ) as ItemStack
myMCLivingEntity. getHeldItemMainhand ( ) ;
Return Type: ItemStack
MCLivingEntity. getHeldItemOffhand ( ) as ItemStack
myMCLivingEntity. getHeldItemOffhand ( ) ;
Return Type: int
MCLivingEntity. getIdleTime ( ) as int
myMCLivingEntity. getIdleTime ( ) ;
Gets the ItemStack in the specific slot.
Return Type: IItemStack
MCLivingEntity. getItemStackFromSlot ( slot as MCEquipmentSlotType ) as IItemStack
Return Type: MCLivingEntity
MCLivingEntity. getLastAttackedEntity ( ) as MCLivingEntity
myMCLivingEntity. getLastAttackedEntity ( ) ;
getLastAttackedEntityTime Return Type: int
MCLivingEntity. getLastAttackedEntityTime ( ) as int
myMCLivingEntity. getLastAttackedEntityTime ( ) ;
Return Type: float
MCLivingEntity. getMaxHealth ( ) as float
myMCLivingEntity. getMaxHealth ( ) ;
Return Type: MCLivingEntity
MCLivingEntity. getRevengeTarget ( ) as MCLivingEntity
myMCLivingEntity. getRevengeTarget ( ) ;
Return Type: int
MCLivingEntity. getRevengeTimer ( ) as int
myMCLivingEntity. getRevengeTimer ( ) ;
Return Type: boolean
MCLivingEntity. getShouldBeDead ( ) as boolean
myMCLivingEntity. getShouldBeDead ( ) ;
Return Type: int
MCLivingEntity. getTotalArmorValue ( ) as int
myMCLivingEntity. getTotalArmorValue ( ) ;
Return Type: void
MCLivingEntity. heal ( healAmount as float ) as void
Параметр Тип Description healAmount float No Description Provided
Return Type: boolean
MCLivingEntity. isAlive ( ) as boolean
myMCLivingEntity. isAlive ( ) ;
Return Type: boolean
MCLivingEntity. isChild ( ) as boolean
myMCLivingEntity. isChild ( ) ;
Return Type: boolean
MCLivingEntity. isEntityUndead ( ) as boolean
myMCLivingEntity. isEntityUndead ( ) ;
Return Type: boolean
MCLivingEntity. isOnLadder ( ) as boolean
myMCLivingEntity. isOnLadder ( ) ;
Return Type: boolean
MCLivingEntity. isPotionActive ( potionIn as MCPotionEffect ) as boolean
Return Type: boolean
MCLivingEntity. isPotionApplicable ( potioneffectIn as MCPotionEffectInstance ) as boolean
Return Type: boolean
MCLivingEntity. isWaterSensitive ( ) as boolean
myMCLivingEntity. isWaterSensitive ( ) ;
Return Type: MCPotionEffectInstance
MCLivingEntity. removeActivePotionEffect ( potioneffectin as MCPotionEffect ) as MCPotionEffectInstance
Параметр Тип Description potioneffectin MCPotionEffect No Description Provided
Return Type: boolean
MCLivingEntity. removePotionEffect ( effectIn as MCPotionEffect ) as boolean
Return Type: void
MCLivingEntity. setAIMoveSpeed ( speedIn as float ) as void
Параметр Тип Description speedIn float No Description Provided
Return Type: void
MCLivingEntity. setArrowCountInEntity ( count as int ) as void
Параметр Тип Description count int No Description Provided
Return Type: void
MCLivingEntity. setBeeStingCount ( p_226300_1_ as int ) as void
Параметр Тип Description p_226300_1_ int No Description Provided
Return Type: void
MCLivingEntity. setHealth ( health as float ) as void
Параметр Тип Description health float No Description Provided
Return Type: void
MCLivingEntity. setIdleTime ( idleTimeIn as int ) as void
Параметр Тип Description idleTimeIn int No Description Provided
Sets a copied given itemStack to the slot
Return Type: void
MCLivingEntity. setItemStackToSlot ( slot as MCEquipmentSlotType , itemStack as IItemStack ) as void
Return Type: void
MCLivingEntity. setLastAttackedEntity ( entityIn as MCEntity ) as void
Параметр Тип Description entityIn MCEntity No Description Provided
Return Type: void
MCLivingEntity. setRevengeTarget ( livingBase as MCLivingEntity ) as void