Class LocationTarget
java.lang.Object
org.yuemi.mmomechanics.api.skill.target.LocationTarget
- All Implemented Interfaces:
Target
A Target implementation representing a specific Block or World Location.
-
Constructor Summary
ConstructorsConstructorDescriptionLocationTarget(@NotNull org.bukkit.Location location) Constructs a LocationTarget. -
Method Summary
-
Constructor Details
-
LocationTarget
public LocationTarget(@NotNull @NotNull org.bukkit.Location location) Constructs a LocationTarget.- Parameters:
location- the targeted location
-
-
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
@Nullable public @Nullable 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
-