public class PlayerRef implementsComponent,MetricProvider,IMessageReceiver
Class PlayerRef. Provides playerref functionality for the Hytale server.
java.lang.Object > PlayerRef
Field Summary
language
private
String
language
Field language.
entity
private
Ref
entity
Field entity.
holder
private
Holder
holder
Field holder.
worldUuid
private
UUID
worldUuid
Field worldUuid.
transform
private
Transform
transform
Field transform.
headRotation
private
Vector3f
headRotation
Field headRotation.
store
final
Store
store
Field store.
MAX_REFERRAL_DATA_SIZE
final
int
MAX_REFERRAL_DATA_SIZE
Field MAX_REFERRAL_DATA_SIZE.
handler
final
PacketHandler
handler
Field handler.
pongTypes
final
PongType[]
pongTypes
Field pongTypes.
pingInfos
final
PacketHandler.PingInfo[]
pingInfos
Field pingInfos.
recorder
final
PacketStatsRecorder
recorder
Field recorder.
impl
final
PacketStatsRecorderImpl
impl
Field impl.
entityRef
final
Ref
entityRef
Field entityRef.
component
final
MovementStatesComponent
component
Field component.
entityRef2
final
Ref
entityRef2
Field entityRef2.
component2
final
MovementManager
component2
Field component2.
entityRef3
final
Ref
entityRef3
Field entityRef3.
component3
final
CameraManager
component3
Field component3.
Method Detail
getComponentType
public
PlayerRef>
getComponentType
()
Method getComponentType.
PlayerRef
public
public
PlayerRef
(@Nonnull final Holder holder, @Nonnull final UUID uuid, @Nonnull final String username, @Nonnull final String language, @Nonnull final PacketHandler packetHandler, @Nonnull final ChunkTracker chunkTracker)
Method PlayerRef.
- Parameters:
@Nonnull final Holderholder@Nonnull final UUIDuuid@Nonnull final Stringusername@Nonnull final Stringlanguage@Nonnull final PacketHandlerpacketHandler@Nonnull final ChunkTrackerchunkTracker
isValid
public
boolean
isValid
()
Method isValid.
SkipSentryException
public
new
SkipSentryException
()
Method SkipSentryException.
getUuid
public
UUID
getUuid
()
Method getUuid.
getUsername
public
String
getUsername
()
Method getUsername.
getHiddenPlayersManager
Method getHiddenPlayersManager.
getLanguage
public
String
getLanguage
()
Method getLanguage.
setLanguage
public
void
setLanguage
(@Nonnull final String language)
Method setLanguage.
- Parameters:
@Nonnull final Stringlanguage
getWorldUuid
public
UUID
getWorldUuid
()
Method getWorldUuid.
updatePosition
public
void
updatePosition
(@Nonnull final World world, @Nonnull final Transform transform, @Nonnull final Vector3f headRotation)
Method updatePosition.
- Parameters:
@Nonnull final Worldworld@Nonnull final Transformtransform@Nonnull final Vector3fheadRotation
referToServer
public
void
referToServer
(@Nonnull final String host, final int port)
Method referToServer.
- Parameters:
@Nonnull final Stringhostfinal intport
ClientReferral
public
new
ClientReferral
(new HostAddress(host, (short)
Method ClientReferral.
- Parameters:
newHostAddress(host(short(short
ServerMessage
public
new
ServerMessage
(ChatType.Chat, message.getFormattedMessage()
Method ServerMessage.
- Parameters:
ChatType.ChatChatType.Chatmessage.getFormattedMessage(message.getFormattedMessage(
ArrayCodec
public
new
ArrayCodec
((Codec)
Method ArrayCodec.
- Parameters:
(Codec(Codec