Interface Target

All Known Implementing Classes:
GameProfileTarget, PlayerTarget, UniqueIdTarget, UsernameTarget

public interface Target
Abstraction for (possibly offline) target players.
  • Method Details

    • byUsername

      static Target byUsername(String username)
      Create the target by their username.
    • byUniqueId

      static Target byUniqueId(UUID uniqueId)
      Create the target by their unique ID.
    • byPlayer

      static Target byPlayer(HumanEntity player)
      Create the target from a player object.
    • byGameProfile

      static Target byGameProfile(UUID uniqueId, String userName)
      Create the target by their unique ID and username.