MCLivingEntity

Diese Klasse importieren

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

Methoden

addPotionEffect

Return Type: boolean

MCLivingEntity.addPotionEffect(effectInstanceIn as MCPotionEffectInstance) as boolean
ParameterTypeBeschreibung
effectInstanceInMCPotionEffectInstanceNo Description Provided
attackEntityAsMob

Return Type: boolean

MCLivingEntity.attackEntityAsMob(entityIn as MCEntity) as boolean
ParameterTypeBeschreibung
entityInMCEntityNo Description Provided
attackEntityFrom

Return Type: void

MCLivingEntity.attackEntityFrom(damageSource as DamageSource, amount as float) as void
ParameterTypeBeschreibung
damageSourceDamageSourceNo Description Provided
amountfloatNo Description Provided
canAttack

Return Type: boolean

MCLivingEntity.canAttack(target as MCLivingEntity) as boolean
ParameterTypeBeschreibung
targetMCLivingEntityNo Description Provided
canAttack

Return Type: boolean

MCLivingEntity.canAttack(typeIn as MCEntityType) as boolean
ParameterTypeBeschreibung
typeInMCEntityTypeNo Description Provided
canBeRiddenInWater

Return Type: boolean

MCLivingEntity.canBeRiddenInWater() as boolean
myMCLivingEntity.canBeRiddenInWater();
canBreatheUnderwater

Return Type: boolean

MCLivingEntity.canBreatheUnderwater() as boolean
myMCLivingEntity.canBreatheUnderwater();
canEquip

Return Type: boolean

MCLivingEntity.canEquip(item as MCItemDefinition) as boolean
ParameterTypeBeschreibung
itemMCItemDefinitionNo Description Provided
clearActivePotions

Return Type: boolean

MCLivingEntity.clearActivePotions() as boolean
myMCLivingEntity.clearActivePotions();
getAIMoveSpeed

Return Type: float

MCLivingEntity.getAIMoveSpeed() as float
myMCLivingEntity.getAIMoveSpeed();
getActivePotionEffect

Return Type: MCPotionEffectInstance

MCLivingEntity.getActivePotionEffect(potionIn as MCPotionEffect) as MCPotionEffectInstance
ParameterTypeBeschreibung
potionInMCPotionEffectNo Description Provided
getActivePotionEffects

Return Type: Collection<MCPotionEffectInstance>

MCLivingEntity.getActivePotionEffects() as Collection<MCPotionEffectInstance>
myMCLivingEntity.getActivePotionEffects();
getActivePotionMap

Return Type: MCPotionEffectInstance[MCPotionEffect]

MCLivingEntity.getActivePotionMap() as MCPotionEffectInstance[MCPotionEffect]
myMCLivingEntity.getActivePotionMap();
getArmorCoverPercentage

Return Type: float

MCLivingEntity.getArmorCoverPercentage() as float
myMCLivingEntity.getArmorCoverPercentage();
getArmorInventoryList

Return Type: stdlib.Iterable<ItemStack>

MCLivingEntity.getArmorInventoryList() as stdlib.Iterable<ItemStack>
myMCLivingEntity.getArmorInventoryList();
getArrowCountInEntity

Return Type: int

MCLivingEntity.getArrowCountInEntity() as int
myMCLivingEntity.getArrowCountInEntity();
getAttackingEntity

Return Type: MCLivingEntity

MCLivingEntity.getAttackingEntity() as MCLivingEntity
myMCLivingEntity.getAttackingEntity();
getBeeStingCount

Return Type: int

MCLivingEntity.getBeeStingCount() as int
myMCLivingEntity.getBeeStingCount();
getHealth

Return Type: float

MCLivingEntity.getHealth() as float
myMCLivingEntity.getHealth();
getHeldItemMainhand

Return Type: ItemStack

MCLivingEntity.getHeldItemMainhand() as ItemStack
myMCLivingEntity.getHeldItemMainhand();
getHeldItemOffhand

Return Type: ItemStack

MCLivingEntity.getHeldItemOffhand() as ItemStack
myMCLivingEntity.getHeldItemOffhand();
getIdleTime

Return Type: int

MCLivingEntity.getIdleTime() as int
myMCLivingEntity.getIdleTime();
getItemStackFromSlot

Gets the ItemStack in the specific slot.

Return Type: IItemStack

MCLivingEntity.getItemStackFromSlot(slot as MCEquipmentSlotType) as IItemStack
ParameterTypeBeschreibung
slotMCEquipmentSlotTypeNo Description Provided
getLastAttackedEntity

Return Type: MCLivingEntity

MCLivingEntity.getLastAttackedEntity() as MCLivingEntity
myMCLivingEntity.getLastAttackedEntity();
getLastAttackedEntityTime

Return Type: int

MCLivingEntity.getLastAttackedEntityTime() as int
myMCLivingEntity.getLastAttackedEntityTime();
getMaxHealth

Return Type: float

MCLivingEntity.getMaxHealth() as float
myMCLivingEntity.getMaxHealth();
getRevengeTarget

Return Type: MCLivingEntity

MCLivingEntity.getRevengeTarget() as MCLivingEntity
myMCLivingEntity.getRevengeTarget();
getRevengeTimer

Return Type: int

MCLivingEntity.getRevengeTimer() as int
myMCLivingEntity.getRevengeTimer();
getShouldBeDead

Return Type: boolean

MCLivingEntity.getShouldBeDead() as boolean
myMCLivingEntity.getShouldBeDead();
getTotalArmorValue

Return Type: int

MCLivingEntity.getTotalArmorValue() as int
myMCLivingEntity.getTotalArmorValue();
heal

Return Type: void

MCLivingEntity.heal(healAmount as float) as void
ParameterTypeBeschreibung
healAmountfloatNo Description Provided
isAlive

Return Type: boolean

MCLivingEntity.isAlive() as boolean
myMCLivingEntity.isAlive();
isChild

Return Type: boolean

MCLivingEntity.isChild() as boolean
myMCLivingEntity.isChild();
isEntityUndead

Return Type: boolean

MCLivingEntity.isEntityUndead() as boolean
myMCLivingEntity.isEntityUndead();
isOnLadder

Return Type: boolean

MCLivingEntity.isOnLadder() as boolean
myMCLivingEntity.isOnLadder();
isPotionActive

Return Type: boolean

MCLivingEntity.isPotionActive(potionIn as MCPotionEffect) as boolean
ParameterTypeBeschreibung
potionInMCPotionEffectNo Description Provided
isPotionApplicable

Return Type: boolean

MCLivingEntity.isPotionApplicable(potioneffectIn as MCPotionEffectInstance) as boolean
ParameterTypeBeschreibung
potioneffectInMCPotionEffectInstanceNo Description Provided
isWaterSensitive

Return Type: boolean

MCLivingEntity.isWaterSensitive() as boolean
myMCLivingEntity.isWaterSensitive();
removeActivePotionEffect

Return Type: MCPotionEffectInstance

MCLivingEntity.removeActivePotionEffect(potioneffectin as MCPotionEffect) as MCPotionEffectInstance
ParameterTypeBeschreibung
potioneffectinMCPotionEffectNo Description Provided
removePotionEffect

Return Type: boolean

MCLivingEntity.removePotionEffect(effectIn as MCPotionEffect) as boolean
ParameterTypeBeschreibung
effectInMCPotionEffectNo Description Provided
setAIMoveSpeed

Return Type: void

MCLivingEntity.setAIMoveSpeed(speedIn as float) as void
ParameterTypeBeschreibung
speedInfloatNo Description Provided
setArrowCountInEntity

Return Type: void

MCLivingEntity.setArrowCountInEntity(count as int) as void
ParameterTypeBeschreibung
countintNo Description Provided
setBeeStingCount

Return Type: void

MCLivingEntity.setBeeStingCount(p_226300_1_ as int) as void
ParameterTypeBeschreibung
p_226300_1_intNo Description Provided
setHealth

Return Type: void

MCLivingEntity.setHealth(health as float) as void
ParameterTypeBeschreibung
healthfloatNo Description Provided
setIdleTime

Return Type: void

MCLivingEntity.setIdleTime(idleTimeIn as int) as void
ParameterTypeBeschreibung
idleTimeInintNo Description Provided
setItemStackToSlot

Sets a copied given itemStack to the slot

Return Type: void

MCLivingEntity.setItemStackToSlot(slot as MCEquipmentSlotType, itemStack as IItemStack) as void
ParameterTypeBeschreibung
slotMCEquipmentSlotTypeNo Description Provided
itemStackIItemStackNo Description Provided
setLastAttackedEntity

Return Type: void

MCLivingEntity.setLastAttackedEntity(entityIn as MCEntity) as void
ParameterTypeBeschreibung
entityInMCEntityNo Description Provided
setRevengeTarget

Return Type: void

MCLivingEntity.setRevengeTarget(livingBase as MCLivingEntity) as void
ParameterTypeBeschreibung
livingBaseMCLivingEntityNo Description Provided