Package com.winterhavenmc.library.messagebuilder.pipeline.adapters.owner


package com.winterhavenmc.library.messagebuilder.pipeline.adapters.owner
Provides support for extracting ownership information from objects and applying it to macro placeholders.

The Ownable interface represents objects that expose an ownership relationship, such as pets, protected containers, or permission-locked regions. Ownership is resolved via AnimalTamer, allowing compatibility with OfflinePlayer and other tamable or controllable entities.

The OwnerAdapter binds to objects that either implement Ownable or are Tameable. This allows server operators to use macros such as {OBJECT.OWNER} in their messages, which are populated with the name of the owner.

Common use cases include:

  • Displaying the owner of a DeathChest or claimable region
  • Indicating the tamer of a wolf, cat, or other pet
  • Describing access-controlled resources in player messages
  • Class
    Description
    Represents an object that has a concept of ownership, expressed through an AnimalTamer.
    Adapter that extracts ownership information from objects that either implement Ownable or are Tameable Bukkit entities.