Class NetworkPlayerServerInfo
- java.lang.Object
-
- de.dytanic.cloudnet.ext.bridge.player.NetworkPlayerServerInfo
-
- All Implemented Interfaces:
de.dytanic.cloudnet.driver.serialization.SerializableObject
public final class NetworkPlayerServerInfo extends java.lang.Object implements de.dytanic.cloudnet.driver.serialization.SerializableObject
-
-
Field Summary
Fields Modifier and Type Field Description protected de.dytanic.cloudnet.driver.network.HostAndPortaddressprotected doublehealthprotected intlevelprotected WorldPositionlocationprotected doublemaxHealthprotected java.lang.Stringnameprotected NetworkServiceInfonetworkServiceprotected doublesaturationstatic java.lang.reflect.TypeTYPEprotected java.util.UUIDuniqueIdprotected java.lang.StringxBoxId
-
Constructor Summary
Constructors Constructor Description NetworkPlayerServerInfo()NetworkPlayerServerInfo(java.util.UUID uniqueId, java.lang.String name, java.lang.String xBoxId, double health, double maxHealth, double saturation, int level, WorldPosition location, de.dytanic.cloudnet.driver.network.HostAndPort address, NetworkServiceInfo networkService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description de.dytanic.cloudnet.driver.network.HostAndPortgetAddress()doublegetHealth()intgetLevel()WorldPositiongetLocation()doublegetMaxHealth()java.lang.StringgetName()NetworkServiceInfogetNetworkService()doublegetSaturation()java.util.UUIDgetUniqueId()java.lang.StringgetXBoxId()voidread(@NotNull de.dytanic.cloudnet.driver.serialization.ProtocolBuffer buffer)voidsetAddress(de.dytanic.cloudnet.driver.network.HostAndPort address)voidsetHealth(double health)voidsetLevel(int level)voidsetLocation(WorldPosition location)voidsetMaxHealth(double maxHealth)voidsetName(java.lang.String name)voidsetNetworkService(NetworkServiceInfo networkService)voidsetSaturation(double saturation)voidsetUniqueId(java.util.UUID uniqueId)voidsetXBoxId(java.lang.String xBoxId)voidwrite(@NotNull de.dytanic.cloudnet.driver.serialization.ProtocolBuffer buffer)
-
-
-
Field Detail
-
TYPE
public static final java.lang.reflect.Type TYPE
-
uniqueId
protected java.util.UUID uniqueId
-
name
protected java.lang.String name
-
xBoxId
protected java.lang.String xBoxId
-
health
protected double health
-
maxHealth
protected double maxHealth
-
saturation
protected double saturation
-
level
protected int level
-
location
protected WorldPosition location
-
address
protected de.dytanic.cloudnet.driver.network.HostAndPort address
-
networkService
protected NetworkServiceInfo networkService
-
-
Constructor Detail
-
NetworkPlayerServerInfo
public NetworkPlayerServerInfo(java.util.UUID uniqueId, java.lang.String name, java.lang.String xBoxId, double health, double maxHealth, double saturation, int level, WorldPosition location, de.dytanic.cloudnet.driver.network.HostAndPort address, NetworkServiceInfo networkService)
-
NetworkPlayerServerInfo
public NetworkPlayerServerInfo()
-
-
Method Detail
-
getUniqueId
public java.util.UUID getUniqueId()
-
setUniqueId
public void setUniqueId(java.util.UUID uniqueId)
-
getName
public java.lang.String getName()
-
setName
public void setName(java.lang.String name)
-
getXBoxId
public java.lang.String getXBoxId()
-
setXBoxId
public void setXBoxId(java.lang.String xBoxId)
-
getHealth
public double getHealth()
-
setHealth
public void setHealth(double health)
-
getMaxHealth
public double getMaxHealth()
-
setMaxHealth
public void setMaxHealth(double maxHealth)
-
getSaturation
public double getSaturation()
-
setSaturation
public void setSaturation(double saturation)
-
getLevel
public int getLevel()
-
setLevel
public void setLevel(int level)
-
getLocation
public WorldPosition getLocation()
-
setLocation
public void setLocation(WorldPosition location)
-
getAddress
public de.dytanic.cloudnet.driver.network.HostAndPort getAddress()
-
setAddress
public void setAddress(de.dytanic.cloudnet.driver.network.HostAndPort address)
-
getNetworkService
public NetworkServiceInfo getNetworkService()
-
setNetworkService
public void setNetworkService(NetworkServiceInfo networkService)
-
write
public void write(@NotNull @NotNull de.dytanic.cloudnet.driver.serialization.ProtocolBuffer buffer)- Specified by:
writein interfacede.dytanic.cloudnet.driver.serialization.SerializableObject
-
read
public void read(@NotNull @NotNull de.dytanic.cloudnet.driver.serialization.ProtocolBuffer buffer)- Specified by:
readin interfacede.dytanic.cloudnet.driver.serialization.SerializableObject
-
-