public final class AlpinePlayer
extends java.lang.Object
Constructor and Description |
---|
AlpinePlayer(@NotNull org.bukkit.entity.Player bukkitPlayer,
@NotNull com.alpineclient.plugin.util.object.HandshakeData data) |
AlpinePlayer(@NotNull org.bukkit.entity.Player bukkitPlayer,
@NotNull java.lang.String platform,
@NotNull java.lang.String version) |
Modifier and Type | Method and Description |
---|---|
void |
deleteWaypoint(@NotNull java.util.UUID id)
Requests the player delete a waypoint with a given UUID.
|
@NotNull org.bukkit.entity.Player |
getBukkitPlayer()
Get the underlying Bukkit player object.
|
@NotNull java.lang.String |
getClientBrand()
Get the full client brand consisting of their version
and platform.
|
@NotNull java.util.List<java.lang.String> |
getMods()
Deprecated.
functionality removed; no replacement
|
@NotNull java.lang.String |
getPlatform()
Get the mod platform the user is on.
|
@NotNull java.lang.String |
getVersion()
Get the Minecraft version the user is on.
|
void |
sendCooldown(@NotNull Cooldown cooldown)
Sends a cooldown to this player.
|
void |
sendNotification(@NotNull Notification notification)
Sends a notification to this player.
|
void |
sendWaypoint(@NotNull Waypoint waypoint)
Sends a waypoint to this player.
|
@ApiStatus.Internal public AlpinePlayer(@NotNull @NotNull org.bukkit.entity.Player bukkitPlayer, @NotNull @NotNull com.alpineclient.plugin.util.object.HandshakeData data)
@ApiStatus.Internal public AlpinePlayer(@NotNull @NotNull org.bukkit.entity.Player bukkitPlayer, @NotNull @NotNull java.lang.String platform, @NotNull @NotNull java.lang.String version)
@NotNull public @NotNull org.bukkit.entity.Player getBukkitPlayer()
Player
@NotNull public @NotNull java.lang.String getPlatform()
e.g. fabric
, forge
@NotNull public @NotNull java.lang.String getVersion()
e.g. 1.8.9
, 1.20
@Deprecated @ApiStatus.ScheduledForRemoval(inVersion="1.4.0") @NotNull public @NotNull java.util.List<java.lang.String> getMods()
e.g. ["sodium", "lithium", "alpineclient"]
@NotNull public @NotNull java.lang.String getClientBrand()
e.g. 1.18.2-fabric
public void sendNotification(@NotNull @NotNull Notification notification)
notification
- the notification to sendpublic void sendWaypoint(@NotNull @NotNull Waypoint waypoint)
waypoint
- the waypoint to sendpublic void deleteWaypoint(@NotNull @NotNull java.util.UUID id)
id
- the waypoint to deletepublic void sendCooldown(@NotNull @NotNull Cooldown cooldown)
If you intend to utilize the Cooldowns module, you must first declare
the capability with AlpineClientApi.registerCapabilities(Plugin, Capability...)
.
cooldown
- the cooldown to send