public static class Player.Spigot extends Entity.Spigot
Constructor and Description |
---|
Spigot() |
Modifier and Type | Method and Description |
---|---|
boolean |
getCollidesWithEntities()
Deprecated.
|
Set<Player> |
getHiddenPlayers()
Gets all players hidden with
Player.hidePlayer(org.bukkit.entity.Player) . |
String |
getLocale()
Deprecated.
|
InetSocketAddress |
getRawAddress()
Gets the connection address of this player, regardless of whether it
has been spoofed or not.
|
void |
playEffect(Location location,
Effect effect,
int id,
int data,
float offsetX,
float offsetY,
float offsetZ,
float speed,
int particleCount,
int radius)
Deprecated.
|
void |
respawn()
Respawns the player if dead.
|
void |
sendMessage(net.md_5.bungee.api.chat.BaseComponent... components)
Sends an array of components as a single message to the sender.
|
void |
sendMessage(net.md_5.bungee.api.chat.BaseComponent component)
Sends this sender a chat component.
|
void |
sendMessage(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 player
|
void |
sendMessage(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 player
|
void |
setCollidesWithEntities(boolean collides)
Deprecated.
|
isInvulnerable
public InetSocketAddress getRawAddress()
@Deprecated public void playEffect(Location location, Effect effect, int id, int data, float offsetX, float offsetY, float offsetZ, float speed, int particleCount, int radius)
@Deprecated public boolean getCollidesWithEntities()
LivingEntity.isCollidable()
@Deprecated public void setCollidesWithEntities(boolean collides)
LivingEntity.setCollidable(boolean)
collides
- whether the player should collide with entities or
not.public void respawn()
@Deprecated public String getLocale()
Player.getLocale()
public Set<Player> getHiddenPlayers()
Player.hidePlayer(org.bukkit.entity.Player)
.public void sendMessage(net.md_5.bungee.api.chat.BaseComponent component)
CommandSender.Spigot
sendMessage
in class CommandSender.Spigot
component
- the components to sendpublic void sendMessage(net.md_5.bungee.api.chat.BaseComponent... components)
CommandSender.Spigot
sendMessage
in class CommandSender.Spigot
components
- the components to sendpublic void sendMessage(net.md_5.bungee.api.ChatMessageType position, net.md_5.bungee.api.chat.BaseComponent component)
position
- the screen positioncomponent
- the components to sendpublic void sendMessage(net.md_5.bungee.api.ChatMessageType position, net.md_5.bungee.api.chat.BaseComponent... components)
position
- the screen positioncomponents
- the components to sendCopyright © 2017. All rights reserved.