Interface Endermite

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

public interface Endermite extends Monster
  • Method Details

    • isPlayerSpawned

      boolean isPlayerSpawned()
      Gets whether this Endermite was spawned by a player from throwing an ender pearl An Endermite spawned by a player might be attacked by nearby Enderman depending on purpur.yml settings
      Returns:
      player spawned status
    • setPlayerSpawned

      void setPlayerSpawned(boolean playerSpawned)
      Sets whether this Endermite was spawned by a player from throwing an ender pearl An Endermite spawned by a player might be attacked by nearby Enderman depending on purpur.yml settings
      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