Interface Endermite

All Superinterfaces:
Attributable, Audience, CommandSender, Creature, Damageable, Enemy, Entity, Frictional, HoverEventSource<HoverEvent.ShowEntity>, Leashable, LivingEntity, Lootable, Metadatable, Mob, Monster, Nameable, Permissible, PersistentDataHolder, PersistentDataViewHolder, Pointered, ProjectileSource, ServerOperator, Sound.Emitter

public interface Endermite extends Monster
  • Method Details

    • isPlayerSpawned

      @Deprecated boolean isPlayerSpawned()
      Deprecated.
      this functionality no longer exists
      Gets whether this Endermite was spawned by a player. An Endermite spawned by a player will be attacked by nearby Enderman.
      Returns:
      player spawned status
    • setPlayerSpawned

      @Deprecated void setPlayerSpawned(boolean playerSpawned)
      Deprecated.
      this functionality no longer exists
      Sets whether this Endermite was spawned by a player. An Endermite spawned by a player will be attacked by nearby Enderman.
      Parameters:
      playerSpawned - player spawned status
    • setLifetimeTicks

      void setLifetimeTicks(int ticks)
      Sets how many ticks this endermite has been living for. If this value is greater than 2400, this endermite will despawn.
      Parameters:
      ticks - lifetime ticks
    • getLifetimeTicks

      int getLifetimeTicks()
      Gets how long this endermite has been living for. This value will tick up while LivingEntity.getRemoveWhenFarAway() is false. If this value is greater than 2400, this endermite will despawn.
      Returns:
      lifetime ticks