BedrockPlayerImpl

Undocumented in source.
class BedrockPlayerImpl : BedrockPlayer (
uint __protocol
) if (
supportedBedrockProtocols.canFind(__protocol)
) {}

Constructors

this
this(PlayerInfo info, World world, EntityPosition position)
Undocumented in source.

Members

Functions

experienceUpdated
void experienceUpdated()
Undocumented in source. Be warned that the author may not have intended to support it.
firstspawn
void firstspawn()
Undocumented in source. Be warned that the author may not have intended to support it.
flush
void flush()
Undocumented in source. Be warned that the author may not have intended to support it.
fromBlockPosition
BlockPosition fromBlockPosition(Types.BlockPosition blockPosition)
Undocumented in source. Be warned that the author may not have intended to support it.
fromSlot
Slot fromSlot(Types.Slot slot)
Undocumented in source. Be warned that the author may not have intended to support it.
fromSlots
Slot[] fromSlots(Types.Slot[] slots)
Undocumented in source. Be warned that the author may not have intended to support it.
handleAdventureSettingsPacket
void handleAdventureSettingsPacket(uint flags, uint unknown1, uint permissions, uint permissionLevel, uint customPermissions, long eid)
Undocumented in source. Be warned that the author may not have intended to support it.
handleAnimatePacket
void handleAnimatePacket(uint action, long eid, float unknown2)
Undocumented in source. Be warned that the author may not have intended to support it.
handleCommandRequestPacket
void handleCommandRequestPacket(string command, uint type, string requestId, uint playerId)
Undocumented in source. Be warned that the author may not have intended to support it.
handleCommandRequestPacket
void handleCommandRequestPacket(string command, uint type, Types.McpeUuid uuid, string requestId, uint playerId, bool internal)
Undocumented in source. Be warned that the author may not have intended to support it.
handleEntityEventPacket
void handleEntityEventPacket(long eid, ubyte evid, int unknown)
Undocumented in source. Be warned that the author may not have intended to support it.
handleInteractPacket
void handleInteractPacket(ubyte action, long target, typeof(Play.Interact.targetPosition) position)
Undocumented in source. Be warned that the author may not have intended to support it.
handleMobEquipmentPacket
void handleMobEquipmentPacket(long eid, Types.Slot item, ubyte inventorySlot, ubyte hotbarSlot, ubyte unknown)
Undocumented in source. Be warned that the author may not have intended to support it.
handleMovePlayerPacket
void handleMovePlayerPacket(long eid, typeof(Play.MovePlayer.position) position, float pitch, float bodyYaw, float yaw, ubyte mode, bool onGround, long unknown7, int unknown8, int unknown9)
Undocumented in source. Be warned that the author may not have intended to support it.
handlePlayerActionPacket
void handlePlayerActionPacket(long eid, typeof(Play.PlayerAction.action) action, Types.BlockPosition position, int face)
Undocumented in source. Be warned that the author may not have intended to support it.
handleResourcePackChunkDataRequestPacket
void handleResourcePackChunkDataRequestPacket(string id, uint index)
Undocumented in source. Be warned that the author may not have intended to support it.
handleResourcePackClientResponsePacket
void handleResourcePackClientResponsePacket(ubyte status, string[] packIds)
Undocumented in source. Be warned that the author may not have intended to support it.
handleRiderJumpPacket
void handleRiderJumpPacket(long eid)
Undocumented in source. Be warned that the author may not have intended to support it.
handleSetPlayerGameTypePacket
void handleSetPlayerGameTypePacket(int gamemode)
Undocumented in source. Be warned that the author may not have intended to support it.
handleTextChatPacket
void handleTextChatPacket(bool unknown1, string sender, string message, string xuid)
Undocumented in source. Be warned that the author may not have intended to support it.
healthUpdated
void healthUpdated()
Undocumented in source. Be warned that the author may not have intended to support it.
hungerUpdated
void hungerUpdated()
Undocumented in source. Be warned that the author may not have intended to support it.
onEffectAdded
void onEffectAdded(Effect effect, bool modified)
Undocumented in source. Be warned that the author may not have intended to support it.
onEffectRemoved
void onEffectRemoved(Effect effect)
Undocumented in source. Be warned that the author may not have intended to support it.
recalculateSpeed
void recalculateSpeed()
Undocumented in source. Be warned that the author may not have intended to support it.
sendAddEntity
void sendAddEntity(Entity entity)
Undocumented in source. Be warned that the author may not have intended to support it.
sendAddItemEntity
void sendAddItemEntity(ItemEntity item)
Undocumented in source. Be warned that the author may not have intended to support it.
sendAddList
void sendAddList(Player[] players)
Undocumented in source. Be warned that the author may not have intended to support it.
sendAddPlayer
void sendAddPlayer(Player player)
Undocumented in source. Be warned that the author may not have intended to support it.
sendAnimation
void sendAnimation(Entity entity)
Undocumented in source. Be warned that the author may not have intended to support it.
sendArmorEquipment
void sendArmorEquipment(Player player)
Undocumented in source. Be warned that the author may not have intended to support it.
sendBlocks
void sendBlocks(PlacedBlock[] blocks)
Undocumented in source. Be warned that the author may not have intended to support it.
sendChangeDimension
void sendChangeDimension(Dimension from, Dimension to)
Undocumented in source. Be warned that the author may not have intended to support it.
sendChunk
void sendChunk(Chunk chunk)
Undocumented in source. Be warned that the author may not have intended to support it.
sendCommands
void sendCommands()
Undocumented in source. Be warned that the author may not have intended to support it.
sendCompletedMessages
void sendCompletedMessages(string[] messages)
Undocumented in source. Be warned that the author may not have intended to support it.
sendDeathAnimation
void sendDeathAnimation(Entity entity)
Undocumented in source. Be warned that the author may not have intended to support it.
sendDeathSequence
void sendDeathSequence()
Undocumented in source. Be warned that the author may not have intended to support it.
sendDespawnEntity
void sendDespawnEntity(Entity entity)
Undocumented in source. Be warned that the author may not have intended to support it.
sendDifficulty
void sendDifficulty(Difficulty difficulty)
Undocumented in source. Be warned that the author may not have intended to support it.
sendDoDaylightCycle
void sendDoDaylightCycle(bool cycle)
Undocumented in source. Be warned that the author may not have intended to support it.
sendEntityEquipment
void sendEntityEquipment(Player player)
Undocumented in source. Be warned that the author may not have intended to support it.
sendExplosion
void sendExplosion(EntityPosition position, float radius, Vector3!byte[] updates)
Undocumented in source. Be warned that the author may not have intended to support it.
sendGamemode
void sendGamemode()
Undocumented in source. Be warned that the author may not have intended to support it.
sendHeld
void sendHeld()
Undocumented in source. Be warned that the author may not have intended to support it.
sendHideTitles
void sendHideTitles()
Undocumented in source. Be warned that the author may not have intended to support it.
sendHurtAnimation
void sendHurtAnimation(Entity entity)
Undocumented in source. Be warned that the author may not have intended to support it.
sendInventory
void sendInventory(ubyte flag, bool[] slots)
Undocumented in source. Be warned that the author may not have intended to support it.
sendJoinPacket
void sendJoinPacket()
Undocumented in source. Be warned that the author may not have intended to support it.
sendLightning
void sendLightning(Lightning lightning)
Undocumented in source. Be warned that the author may not have intended to support it.
sendMap
void sendMap(Map map)
Undocumented in source. Be warned that the author may not have intended to support it.
sendMetadata
void sendMetadata(Entity entity)
Undocumented in source. Be warned that the author may not have intended to support it.
sendMotion
void sendMotion(EntityPosition motion)
Undocumented in source. Be warned that the author may not have intended to support it.
sendMotionUpdates
void sendMotionUpdates(Entity[] entities)
Undocumented in source. Be warned that the author may not have intended to support it.
sendMovementUpdates
void sendMovementUpdates(Entity[] entities)
Undocumented in source. Be warned that the author may not have intended to support it.
sendMusic
void sendMusic(EntityPosition position, ubyte instrument, uint pitch)
Undocumented in source. Be warned that the author may not have intended to support it.
sendOpenContainer
void sendOpenContainer(ubyte type, ushort slots, BlockPosition position)
Undocumented in source. Be warned that the author may not have intended to support it.
sendPacket
void sendPacket(T packet)
Undocumented in source. Be warned that the author may not have intended to support it.
sendPassenger
void sendPassenger(ubyte mode, uint passenger, uint vehicle)
Undocumented in source. Be warned that the author may not have intended to support it.
sendPermissionLevel
void sendPermissionLevel(PermissionLevel )
Undocumented in source. Be warned that the author may not have intended to support it.
sendPickupItem
void sendPickupItem(Entity picker, Entity picked)
Undocumented in source. Be warned that the author may not have intended to support it.
sendPosition
void sendPosition()
Undocumented in source. Be warned that the author may not have intended to support it.
sendRawMessageImpl
void sendRawMessageImpl(string message)
Undocumented in source. Be warned that the author may not have intended to support it.
sendRemoveList
void sendRemoveList(Player[] players)
Undocumented in source. Be warned that the author may not have intended to support it.
sendResetTitles
void sendResetTitles()
Undocumented in source. Be warned that the author may not have intended to support it.
sendResourcePack
void sendResourcePack()
Undocumented in source. Be warned that the author may not have intended to support it.
sendRespawnPacket
void sendRespawnPacket()
Undocumented in source. Be warned that the author may not have intended to support it.
sendSettingsPacket
void sendSettingsPacket()
Undocumented in source. Be warned that the author may not have intended to support it.
sendSpawnEntity
void sendSpawnEntity(Entity entity)
Undocumented in source. Be warned that the author may not have intended to support it.
sendSpawnPosition
void sendSpawnPosition()
Undocumented in source. Be warned that the author may not have intended to support it.
sendTile
void sendTile(Tile tile, bool translatable)
Undocumented in source. Be warned that the author may not have intended to support it.
sendTime
void sendTime(uint time)
Undocumented in source. Be warned that the author may not have intended to support it.
sendTipImpl
void sendTipImpl(Message[] messages)
Undocumented in source. Be warned that the author may not have intended to support it.
sendTitleImpl
void sendTitleImpl(Title title, Subtitle subtitle, uint fadeIn, uint stay, uint fadeOut)
Undocumented in source. Be warned that the author may not have intended to support it.
sendTranslationMessageImpl
void sendTranslationMessageImpl(string message, string[] params)
Undocumented in source. Be warned that the author may not have intended to support it.
sendUpdateLatency
void sendUpdateLatency(Player[] players)
Undocumented in source. Be warned that the author may not have intended to support it.
sendWeather
void sendWeather(bool raining, bool thunderous, uint time, uint intensity)
Undocumented in source. Be warned that the author may not have intended to support it.
sendWorldGamemode
void sendWorldGamemode(Gamemode gamemode)
Undocumented in source. Be warned that the author may not have intended to support it.
setAsReadyToSpawn
void setAsReadyToSpawn()
Undocumented in source. Be warned that the author may not have intended to support it.
spawnToItself
void spawnToItself()
Undocumented in source. Be warned that the author may not have intended to support it.
toBlockPosition
Types.BlockPosition toBlockPosition(BlockPosition vector)
Undocumented in source. Be warned that the author may not have intended to support it.
toSlot
Types.Slot toSlot(Slot slot)
Undocumented in source. Be warned that the author may not have intended to support it.
toSlots
Types.Slot[] toSlots(Slot[] slots)
Undocumented in source. Be warned that the author may not have intended to support it.
transfer
void transfer(string ip, ushort port)
Undocumented in source. Be warned that the author may not have intended to support it.
unloadChunk
void unloadChunk(ChunkPosition pos)
Undocumented in source. Be warned that the author may not have intended to support it.

Mixins

__anonymous
mixin generateHandlers!(Play.Packets)
Undocumented in source.

Properties

world
World world [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

convertGamemode
uint convertGamemode(uint gamemode)
Undocumented in source. Be warned that the author may not have intended to support it.
loadCreativeInventory
bool loadCreativeInventory(Files files)
Undocumented in source. Be warned that the author may not have intended to support it.
metadataOf
Metadata metadataOf(SelMetadata metadata)
Undocumented in source. Be warned that the author may not have intended to support it.
toUUID
Types.McpeUuid toUUID(UUID uuid)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

stringof
enum string stringof;
Undocumented in source.

Inherited Members

From BedrockPlayer

resourcePackChunks
ubyte[][] resourcePackChunks;
Undocumented in source.
resourcePackSize
size_t resourcePackSize;
Undocumented in source.
resourcePackId
string resourcePackId;
Undocumented in source.
resourcePackHash
string resourcePackHash;
Undocumented in source.
updateResourcePacks
void updateResourcePacks(UUID uuid, void[] rp)
Undocumented in source. Be warned that the author may not have intended to support it.
send_commands
bool send_commands;
Undocumented in source.
xuid
long xuid [@property getter]

Gets the player's XBOX user id. It's always the same value for the same user, if authenticated. It's 0 if the server is not in online mode. This value can be used to retrieve more informations about the player using the XBOX live services.

deviceOs
DeviceOS deviceOs [@property getter]

Gets the player's operative system, as indicated by the client in the login packet.

deviceModel
string deviceModel [@property getter]

Gets the player's device model (name and identifier) as indicated by the client in the login packet.

disconnectImpl
void disconnectImpl(Translation translation)
Undocumented in source. Be warned that the author may not have intended to support it.
operator
bool operator [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
encodeServerMessage
string encodeServerMessage(Message[] messages)

Encodes a Message[] into a string that can be parsed by the client. Every instance of Translation is translated server-side.

sendMessageImpl
void sendMessageImpl(Message[] messages)

Creates a string message that can be displayed by the client.

sendRawMessageImpl
void sendRawMessageImpl(string message)
Undocumented in source.
sendTranslationMessageImpl
void sendTranslationMessageImpl(string message, string[] params)
Undocumented in source.
registerCommand
Command registerCommand(Command command)
Undocumented in source. Be warned that the author may not have intended to support it.
unregisterCommand
bool unregisterCommand(Command command)
Undocumented in source. Be warned that the author may not have intended to support it.
sendCommands
void sendCommands()
Undocumented in source.
handleBlockBreaking
bool handleBlockBreaking()
Undocumented in source. Be warned that the author may not have intended to support it.

Meta