public static class Player.Spigot extends Entity.Spigot
Constructor and Description |
---|
Spigot() |
Modifier and Type | Method and Description |
---|---|
boolean |
getAffectsSpawning()
Get whether the player affects mob spawning
|
boolean |
getCollidesWithEntities()
Gets whether the player collides with entities
|
Set<Player> |
getHiddenPlayers()
Gets all players hidden with
Player.hidePlayer(org.bukkit.entity.Player) . |
String |
getLocale()
Gets player locale language.
|
int |
getPing() |
InetSocketAddress |
getRawAddress()
Gets the connection address of this player, regardless of whether it
has been spoofed or not.
|
int |
getViewDistance()
Get the view distance for this player
|
void |
playEffect(Location location,
Effect effect,
int id,
int data,
float offsetX,
float offsetY,
float offsetZ,
float speed,
int particleCount,
int radius) |
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 player
|
void |
sendMessage(net.md_5.bungee.api.chat.BaseComponent component)
Sends the component to the player
|
void |
setAffectsSpawning(boolean affects)
Set whether or not the player affects mob spawning
|
void |
setCollidesWithEntities(boolean collides)
Sets whether the player collides with entities
|
void |
setViewDistance(int viewDistance)
Set the view distance for this player
|
isInvulnerable
public InetSocketAddress getRawAddress()
public void playEffect(Location location, Effect effect, int id, int data, float offsetX, float offsetY, float offsetZ, float speed, int particleCount, int radius)
public boolean getCollidesWithEntities()
public void setCollidesWithEntities(boolean collides)
collides
- whether the player should collide with entities or
not.public void respawn()
public String getLocale()
public Set<Player> getHiddenPlayers()
Player.hidePlayer(org.bukkit.entity.Player)
.public void sendMessage(net.md_5.bungee.api.chat.BaseComponent component)
component
- the components to sendpublic void sendMessage(net.md_5.bungee.api.chat.BaseComponent... components)
components
- the components to sendpublic boolean getAffectsSpawning()
public void setAffectsSpawning(boolean affects)
affects
- whether or not the player should affect
spawning or not.public int getViewDistance()
public void setViewDistance(int viewDistance)
viewDistance
- View distancepublic int getPing()
Copyright © 2022. All rights reserved.