Interface Creaking

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

@NullMarked public interface Creaking extends Monster
Represents a Creaking.
  • Method Details

    • getHome

      @Nullable Location getHome()
      Gets the home location for this creaking (where its CreakingHeart could be found).
      Returns:
      the location of the home if available, null otherwise
    • activate

      void activate(Player player)
      Activates this creaking to target and follow a player.
      Parameters:
      player - the target
    • deactivate

      void deactivate()
      Deactivates the creaking, clearing its current attack target and marking it as inactive.
    • isActive

      boolean isActive()
      Returns if this creaking is currently active and hunting.
      Returns:
      true if active
      See Also: