Class EntityTarget
java.lang.Object
org.yuemi.mmomechanics.api.skill.target.EntityTarget
- All Implemented Interfaces:
Target
A Target implementation representing a specific Entity.
-
Constructor Summary
ConstructorsConstructorDescriptionEntityTarget(@NotNull org.bukkit.entity.Entity entity) Constructs an EntityTarget. -
Method Summary
-
Constructor Details
-
EntityTarget
public EntityTarget(@NotNull @NotNull org.bukkit.entity.Entity entity) Constructs an EntityTarget.- Parameters:
entity- the targeted entity
-
-
Method Details
-
getLocation
@NotNull public @NotNull org.bukkit.Location getLocation()Description copied from interface:TargetGets the location of this target.- Specified by:
getLocationin interfaceTarget- Returns:
- the target location
-
getAsEntity
@NotNull public @NotNull org.bukkit.entity.Entity getAsEntity()Description copied from interface:TargetGets this target as a Bukkit Entity, if applicable.- Specified by:
getAsEntityin interfaceTarget- Returns:
- the target entity, or null if it represents a location
-
equals
-
hashCode
public int hashCode() -
toString
-