Interface Endermite

All Superinterfaces:
Entity, HoverEventSource<HoverEvent.ShowEntity>, LivingEntity, Mob, SchedulerSource, Sound.Emitter, Sound.Source.Provider

public interface Endermite extends Mob
An endermite (minecraft:endermite): a tiny monster that goes after players, and that the endermen go after. It vanishes once it has lived two minutes, unless it is persistent.

Like every entity, change it from the region thread owning its chunk.

Since:
0.1.0
  • Field Details

    • MAX_LIFE

      static final int MAX_LIFE
      How many ticks an endermite lives before it vanishes: two minutes.
      Since:
      0.1.0
      See Also:
  • Method Details

    • life

      int life()
      Returns how many ticks this endermite has lived., its time as a persistent one left out
      Returns:
      how many ticks this endermite has lived
      Since:
      0.1.0
    • setLife

      void setLife(int ticks)
      Sets how many ticks this endermite has lived: it vanishes once that reaches 2400.
      Parameters:
      ticks - the time it lived, 0 or more
      Since:
      0.1.0