Interface Target
- All Known Implementing Classes:
GameProfileTarget
,PlayerTarget
,UniqueIdTarget
,UsernameTarget
public interface Target
Abstraction for (possibly offline) target players.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Target
byGameProfile
(UUID uniqueId, String userName) Create the target by their unique ID and username.static Target
byPlayer
(HumanEntity player) Create the target from a player object.static Target
byUniqueId
(UUID uniqueId) Create the target by their unique ID.static Target
byUsername
(String username) Create the target by their username.
-
Method Details
-
byUsername
-
byUniqueId
-
byPlayer
Create the target from a player object. -
byGameProfile
-