-
Method Summary
@Nullable org.bukkit.entity.Entity
Get the previously selected entity
@NotNull org.bukkit.entity.Player
@NotNull org.bukkit.entity.Entity
default boolean
Check if the player is unselecting the entity
-
Method Details
-
getPlayer
@NotNull
@NotNull org.bukkit.entity.Player getPlayer()
Get the player
- Returns:
- the
Player
-
getSelectedEntity
@NotNull
@NotNull org.bukkit.entity.Entity getSelectedEntity()
Get the selected entity
- Returns:
- the
Entity
-
getOldSelection
@Nullable
@Nullable org.bukkit.entity.Entity getOldSelection()
Get the previously selected entity
- Returns:
- the
Entity
-
isUnselection
default boolean isUnselection()
Check if the player is unselecting the entity
- Returns:
- true if unselecting