程序包 cn.nukkit.entity

类 EntityLiving

所有已实现的接口:
EntityDamageable, Metadatable, Cloneable
直接已知子类:
EntityCreature, EntityNPCEntity

public abstract class EntityLiving extends Entity implements EntityDamageable
作者:
MagicDroidX (Nukkit Project)
  • 字段详细资料

    • attackTime

      protected int attackTime
    • invisible

      protected boolean invisible
    • movementSpeed

      protected float movementSpeed
    • turtleTicks

      protected int turtleTicks
  • 构造器详细资料

  • 方法详细资料

    • getGravity

      protected float getGravity()
      覆盖:
      getGravity 在类中 Entity
    • getDrag

      protected float getDrag()
      覆盖:
      getDrag 在类中 Entity
    • initEntity

      protected void initEntity()
      覆盖:
      initEntity 在类中 Entity
    • setHealth

      public void setHealth(float health)
      覆盖:
      setHealth 在类中 Entity
    • saveNBT

      public void saveNBT()
      覆盖:
      saveNBT 在类中 Entity
    • hasLineOfSight

      public boolean hasLineOfSight(Entity entity)
    • collidingWith

      public void collidingWith(Entity ent)
    • attack

      @PowerNukkitDifference(info="Using new method to play sounds", since="1.4.0.0-PN") public boolean attack(EntityDamageEvent source)
      覆盖:
      attack 在类中 Entity
    • knockBack

      public void knockBack(Entity attacker, double damage, double x, double z)
    • knockBack

      public void knockBack(Entity attacker, double damage, double x, double z, double base)
    • kill

      public void kill()
      覆盖:
      kill 在类中 Entity
    • entityBaseTick

      public boolean entityBaseTick()
      覆盖:
      entityBaseTick 在类中 Entity
    • entityBaseTick

      public boolean entityBaseTick(int tickDiff)
      覆盖:
      entityBaseTick 在类中 Entity
    • getDrops

      public Item[] getDrops()
    • getLineOfSight

      public Block[] getLineOfSight(int maxDistance)
    • getLineOfSight

      public Block[] getLineOfSight(int maxDistance, int maxLength)
    • getLineOfSight

      @Deprecated public Block[] getLineOfSight(int maxDistance, int maxLength, Map<Integer,Object> transparent)
      已过时。
    • getLineOfSight

      public Block[] getLineOfSight(int maxDistance, int maxLength, Integer[] transparent)
    • getTargetBlock

      public Block getTargetBlock(int maxDistance)
    • getTargetBlock

      @Deprecated public Block getTargetBlock(int maxDistance, Map<Integer,Object> transparent)
      已过时。
    • getTargetBlock

      public Block getTargetBlock(int maxDistance, Integer[] transparent)
    • setMovementSpeed

      public void setMovementSpeed(float speed)
    • getMovementSpeed

      public float getMovementSpeed()
    • getAirTicks

      public int getAirTicks()
    • setAirTicks

      public void setAirTicks(int ticks)
    • blockedByShield

      @PowerNukkitOnly @Since("1.4.0.0-PN") protected boolean blockedByShield(EntityDamageEvent source)
    • onBlock

      @PowerNukkitOnly protected void onBlock(Entity entity, boolean animate)
    • isBlocking

      @PowerNukkitOnly public boolean isBlocking()
    • setBlocking

      @PowerNukkitOnly public void setBlocking(boolean value)
    • isPersistent

      @PowerNukkitOnly @Since("1.4.0.0-PN") public boolean isPersistent()
    • setPersistent

      @PowerNukkitOnly @Since("1.4.0.0-PN") public void setPersistent(boolean persistent)
    • preAttack

      @PowerNukkitOnly @Since("1.4.0.0-PN") public void preAttack(Player player)
    • postAttack

      @PowerNukkitOnly @Since("1.4.0.0-PN") public void postAttack(Player player)