LivingEntity
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 Entity
LivingEntity extends Entity. That means all methods available in Entity are also available in LivingEntity
Methods
Return Type: boolean
Parameter | Type |
---|---|
Parameter effectInstance | Type MobEffectInstance |
Return Type: boolean
Parameter | Type |
---|---|
Parameter effectInstance | Type MobEffectInstance |
Parameter entity | Type Entity? |
Return Type: boolean
Return Type: boolean
Parameter | Type |
---|---|
Parameter target | Type LivingEntity |
Return Type: boolean
Parameter | Type |
---|---|
Parameter effectInstance | Type MobEffectInstance |
Return Type: boolean
Return Type: boolean
Return Type: boolean
Return Type: boolean
Return Type: boolean
Parameter | Type |
---|---|
Parameter fluid | Type Fluid |
Return Type: boolean
Parameter | Type |
---|---|
Parameter stack | Type ItemStack |
Parameter | Type |
---|---|
Parameter source | Type DamageSource |
Return Type: boolean
Parameter | Type |
---|---|
Parameter entity | Type Entity |
Parameter | Type |
---|---|
Parameter effectInstance | Type MobEffectInstance |
Parameter entity | Type Entity? |
Return Type: float
Return Type: Collection<MobEffectInstance>
Return Type: MobEffectInstance[MobEffect]
Return Type: float
Return Type: int
Return Type: int
Return Type: AttributeInstance?
Parameter | Type |
---|---|
Parameter attribute | Type Attribute |
Return Type: double
Parameter | Type |
---|---|
Parameter attribute | Type Attribute |
Return Type: double
Parameter | Type |
---|---|
Parameter attribute | Type Attribute |
Return Type: Direction?
Return Type: MobEffectInstance?
Parameter | Type |
---|---|
Parameter effect | Type MobEffect |
Return Type: int
Return Type: float
Return Type: ItemStack
Parameter | Type |
---|---|
Parameter slot | Type EquipmentSlot |
Return Type: ItemStack
Parameter | Type |
---|---|
Parameter hand | Type InteractionHand |
Return Type: double
Return Type: LivingEntity?
Return Type: BlockPos?
Return Type: DamageSource?
Return Type: LivingEntity?
Return Type: int
Return Type: LivingEntity
Return Type: int
Return Type: ResourceLocation
Return Type: HumanoidArm
Return Type: ItemStack
Return Type: float
Return Type: MobType
Return Type: int
Return Type: ItemStack
Return Type: Random
Return Type: float
Return Type: BlockPos?
Return Type: float
Return Type: int
Return Type: float
Parameter | Type |
---|---|
Parameter partialTicks | Type float |
Return Type: int
Return Type: ItemStack
Return Type: int
Return Type: InteractionHand
Return Type: double
Parameter | Type |
---|---|
Parameter lookingEntity | Type Entity? |
Return Type: float
Return Type: boolean
Parameter | Type |
---|---|
Parameter effect | Type MobEffect |
Return Type: boolean
Parameter | Type |
---|---|
Parameter slot | Type EquipmentSlot |
Return Type: boolean
Parameter | Type |
---|---|
Parameter entity | Type Entity |
Parameter | Type |
---|---|
Parameter amount | Type float |
Return Type: boolean
Return Type: boolean
Return Type: boolean
Return Type: boolean
Return Type: boolean
Return Type: boolean
Parameter | Type |
---|---|
Parameter source | Type DamageSource |
Return Type: boolean
Return Type: boolean
Return Type: boolean
Parameter | Type |
---|---|
Parameter item | Type ItemDefinition |
Return Type: boolean
Parameter | Type |
---|---|
Parameter predicate | Type Predicate<ItemStack> |
Return Type: boolean
Return Type: boolean
Return Type: boolean
Return Type: boolean
Return Type: boolean
Return Type: boolean
Parameter | Type |
---|---|
Parameter x | Type double |
Parameter y | Type double |
Parameter z | Type double |
Return Type: boolean
Return Type: boolean
Parameter | Type |
---|---|
Parameter effect | Type MobEffect |
Return Type: MobEffectInstance?
Parameter | Type |
---|---|
Parameter effect | Type MobEffect? |
Parameter | Type |
---|---|
Parameter absorption | Type float |
Parameter | Type |
---|---|
Parameter count | Type int |
Parameter | Type |
---|---|
Parameter discardFriction | Type boolean |
Parameter | Type |
---|---|
Parameter health | Type float |
Parameter | Type |
---|---|
Parameter hand | Type InteractionHand |
Parameter stack | Type ItemStack |
Parameter | Type |
---|---|
Parameter jumping | Type boolean |
Parameter | Type |
---|---|
Parameter entity | Type LivingEntity? |
Parameter | Type |
---|---|
Parameter player | Type Player? |
Parameter | Type |
---|---|
Parameter entity | Type Entity |
Parameter | Type |
---|---|
Parameter idleTime | Type int |
Parameter | Type |
---|---|
Parameter pos | Type BlockPos |
Parameter | Type |
---|---|
Parameter speed | Type float |
Parameter | Type |
---|---|
Parameter count | Type int |
Return Type: boolean
Parameter | Type |
---|---|
Parameter pos | Type BlockPos |
Parameter | Type |
---|---|
Parameter param0 | Type InteractionHand |
Parameter | Type |
---|---|
Parameter hand | Type InteractionHand |
Parameter | Type |
---|---|
Parameter hand | Type InteractionHand |
Parameter updateSelf | Type boolean |
Parameter | Type |
---|---|
Parameter vec | Type Vec3 |
Properties
Name | Type | Has Getter | Has Setter |
---|---|---|---|
Name absorptionAmount | Type float | Has Getter true | Has Setter false |
Name activeEFfectsMap | Type MobEffectInstance[MobEffect] | Has Getter true | Has Setter false |
Name activeEffects | Type Collection<MobEffectInstance> | Has Getter true | Has Setter false |
Name armorCoverPercentage | Type float | Has Getter true | Has Setter false |
Name armorValue | Type int | Has Getter true | Has Setter false |
Name arrowCount | Type int | Has Getter true | Has Setter false |
Name attackable | Type boolean | Has Getter true | Has Setter false |
Name bedOrientation | Type Direction? | Has Getter true | Has Setter false |
Name canBeSeenAsEnemy | Type boolean | Has Getter true | Has Setter false |
Name canBeSeenByAnyone | Type boolean | Has Getter true | Has Setter false |
Name canBreatheUnderwater | Type boolean | Has Getter true | Has Setter false |
Name fallFlyingTicks | Type int | Has Getter true | Has Setter false |
Name health | Type float | Has Getter true | Has Setter false |
Name isAffectedByPotions | Type boolean | Has Getter true | Has Setter false |
Name isAutoSpinAttack | Type boolean | Has Getter true | Has Setter false |
Name isBaby | Type boolean | Has Getter true | Has Setter false |
Name isBlocking | Type boolean | Has Getter true | Has Setter false |
Name isCurrentlyGlowing | Type boolean | Has Getter true | Has Setter false |
Name isDeadOrDying | Type boolean | Has Getter true | Has Setter false |
Name isFallFlying | Type boolean | Has Getter true | Has Setter false |
Name isInvertedHealAndHarm | Type boolean | Has Getter true | Has Setter false |
Name isSensitiveToWater | Type boolean | Has Getter true | Has Setter false |
Name isSleeping | Type boolean | Has Getter true | Has Setter false |
Name isSuppressingSlidingDownLadder | Type boolean | Has Getter true | Has Setter false |
Name isUsingItem | Type boolean | Has Getter true | Has Setter false |
Name isVisuallySwimming | Type boolean | Has Getter true | Has Setter false |
Name jumpBoostPower | Type double | Has Getter true | Has Setter false |
Name killCredit | Type LivingEntity? | Has Getter true | Has Setter false |
Name lastClimbablePos | Type BlockPos? | Has Getter true | Has Setter false |
Name lastDamageSource | Type DamageSource? | Has Getter true | Has Setter false |
Name lastHurtByMob | Type LivingEntity? | Has Getter true | Has Setter false |
Name lastHurtByMobTimestamp | Type int | Has Getter true | Has Setter false |
Name lastHurtMob | Type LivingEntity | Has Getter true | Has Setter false |
Name lastHurtMobTimestamp | Type int | Has Getter true | Has Setter false |
Name lootTable | Type ResourceLocation | Has Getter true | Has Setter false |
Name mainArm | Type HumanoidArm | Has Getter true | Has Setter false |
Name mainHandItem | Type ItemStack | Has Getter true | Has Setter false |
Name maxHealth | Type float | Has Getter true | Has Setter false |
Name mobType | Type MobType | Has Getter true | Has Setter false |
Name noActionTime | Type int | Has Getter true | Has Setter false |
Name offHandItem | Type ItemStack | Has Getter true | Has Setter false |
Name random | Type Random | Has Getter true | Has Setter false |
Name scale | Type float | Has Getter true | Has Setter false |
Name shouldDiscardFriction | Type boolean | Has Getter true | Has Setter false |
Name sleepingPos | Type BlockPos? | Has Getter true | Has Setter false |
Name speed | Type float | Has Getter true | Has Setter false |
Name stingerCount | Type int | Has Getter true | Has Setter false |
Name ticksUsingItem | Type int | Has Getter true | Has Setter false |
Name useItem | Type ItemStack | Has Getter true | Has Setter false |
Name useItemRemainingTicks | Type int | Has Getter true | Has Setter false |
Name usedItemHand | Type InteractionHand | Has Getter true | Has Setter false |
Name voicePitch | Type float | Has Getter true | Has Setter false |