Package org.bukkit.entity
Class Player.Spigot
- java.lang.Object
-
- org.bukkit.command.CommandSender.Spigot
-
- org.bukkit.entity.Entity.Spigot
-
- org.bukkit.entity.Player.Spigot
-
- Enclosing interface:
- Player
public static class Player.Spigot extends Entity.Spigot
-
-
Constructor Summary
Constructors Constructor Description Spigot()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleangetCollidesWithEntities()Deprecated.Set<Player>getHiddenPlayers()Gets all players hidden withPlayer.hidePlayer(org.bukkit.entity.Player).StringgetLocale()Deprecated.InetSocketAddressgetRawAddress()Gets the connection address of this player, regardless of whether it has been spoofed or not.voidrespawn()Respawns the player if dead.voidsendMessage(net.md_5.bungee.api.chat.BaseComponent component)Sends this sender a chat component.voidsendMessage(net.md_5.bungee.api.chat.BaseComponent... components)Sends an array of components as a single message to the sender.voidsendMessage(net.md_5.bungee.api.ChatMessageType position, net.md_5.bungee.api.chat.BaseComponent component)Sends the component to the specified screen position of this playervoidsendMessage(net.md_5.bungee.api.ChatMessageType position, net.md_5.bungee.api.chat.BaseComponent... components)Sends an array of components as a single message to the specified screen position of this playervoidsetCollidesWithEntities(boolean collides)Deprecated.-
Methods inherited from class org.bukkit.entity.Entity.Spigot
isInvulnerable
-
-
-
-
Method Detail
-
getRawAddress
@NotNull public InetSocketAddress getRawAddress()
Gets the connection address of this player, regardless of whether it has been spoofed or not.- Returns:
- the player's connection address
-
getCollidesWithEntities
@Deprecated public boolean getCollidesWithEntities()
Deprecated.Gets whether the player collides with entities- Returns:
- the player's collision toggle state
-
setCollidesWithEntities
@Deprecated public void setCollidesWithEntities(boolean collides)
Deprecated.Sets whether the player collides with entities- Parameters:
collides- whether the player should collide with entities or not.
-
respawn
public void respawn()
Respawns the player if dead.
-
getLocale
@Deprecated @NotNull public String getLocale()
Deprecated.Gets player locale language.- Returns:
- the player's client language settings
-
getHiddenPlayers
@NotNull public Set<Player> getHiddenPlayers()
Gets all players hidden withPlayer.hidePlayer(org.bukkit.entity.Player).- Returns:
- a Set with all hidden players
-
sendMessage
public void sendMessage(@NotNull net.md_5.bungee.api.chat.BaseComponent component)Description copied from class:CommandSender.SpigotSends this sender a chat component.- Overrides:
sendMessagein classCommandSender.Spigot- Parameters:
component- the components to send
-
sendMessage
public void sendMessage(@NotNull net.md_5.bungee.api.chat.BaseComponent... components)Description copied from class:CommandSender.SpigotSends an array of components as a single message to the sender.- Overrides:
sendMessagein classCommandSender.Spigot- Parameters:
components- the components to send
-
sendMessage
public void sendMessage(@NotNull net.md_5.bungee.api.ChatMessageType position, @NotNull net.md_5.bungee.api.chat.BaseComponent component)Sends the component to the specified screen position of this player- Parameters:
position- the screen positioncomponent- the components to send
-
sendMessage
public void sendMessage(@NotNull net.md_5.bungee.api.ChatMessageType position, @NotNull net.md_5.bungee.api.chat.BaseComponent... components)Sends an array of components as a single message to the specified screen position of this player- Parameters:
position- the screen positioncomponents- the components to send
-
-