JavaPlayerImpl

Undocumented in source.
class JavaPlayerImpl : JavaPlayer (
uint __protocol
) if (
supportedJavaProtocols.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.
flush
void flush()
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.
handleAnimationPacket
void handleAnimationPacket(uint hand)
Undocumented in source. Be warned that the author may not have intended to support it.
handleChatMessagePacket
void handleChatMessagePacket(string message)
Undocumented in source. Be warned that the author may not have intended to support it.
handleClickWindowPacket
void handleClickWindowPacket(ubyte window, ushort slot, ubyte button, ushort actionId, uint mode, Types.Slot item)
Undocumented in source. Be warned that the author may not have intended to support it.
handleClientStatus
void handleClientStatus(uint aid)
Undocumented in source. Be warned that the author may not have intended to support it.
handleClientStatusPacket
void handleClientStatusPacket(uint aid)
Undocumented in source. Be warned that the author may not have intended to support it.
handleCloseWindowPacket
void handleCloseWindowPacket(ubyte window)
Undocumented in source. Be warned that the author may not have intended to support it.
handleConfirmTransactionPacket
void handleConfirmTransactionPacket(ubyte window, ushort action, bool accepted)
Undocumented in source. Be warned that the author may not have intended to support it.
handleCreativeInventoryActionPacket
void handleCreativeInventoryActionPacket(ushort slot, Types.Slot item)
Undocumented in source. Be warned that the author may not have intended to support it.
handleEnchantItemPacket
void handleEnchantItemPacket(ubyte window, ubyte enchantment)
Undocumented in source. Be warned that the author may not have intended to support it.
handleEntityActionPacket
void handleEntityActionPacket(uint eid, uint action, uint jumpBoost)
Undocumented in source. Be warned that the author may not have intended to support it.
handleHeldItemChangePacket
void handleHeldItemChangePacket(ushort slot)
Undocumented in source. Be warned that the author may not have intended to support it.
handlePlayerAbilitiesPacket
void handlePlayerAbilitiesPacket(ubyte flags, float flyingSpeed, float walkingSpeed)
Undocumented in source. Be warned that the author may not have intended to support it.
handlePlayerBlockPlacementPacket
void handlePlayerBlockPlacementPacket(ulong position, uint face, uint hand, typeof(Serverbound.PlayerBlockPlacement.cursorPosition) cursorPosition)
Undocumented in source. Be warned that the author may not have intended to support it.
handlePlayerDiggingPacket
void handlePlayerDiggingPacket(uint status, ulong position, ubyte face)
Undocumented in source. Be warned that the author may not have intended to support it.
handlePlayerLookPacket
void handlePlayerLookPacket(float yaw, float pitch, bool onGround)
Undocumented in source. Be warned that the author may not have intended to support it.
handlePlayerPositionAndLookPacket
void handlePlayerPositionAndLookPacket(typeof(Serverbound.PlayerPositionAndLook.position) position, float yaw, float pitch, bool onGround)
Undocumented in source. Be warned that the author may not have intended to support it.
handlePlayerPositionPacket
void handlePlayerPositionPacket(typeof(Serverbound.PlayerPosition.position) position, bool onGround)
Undocumented in source. Be warned that the author may not have intended to support it.
handlePluginMessagePacket
void handlePluginMessagePacket(string channel, ubyte[] bytes)
Undocumented in source. Be warned that the author may not have intended to support it.
handleSpectatePacket
void handleSpectatePacket(UUID uuid)
Undocumented in source. Be warned that the author may not have intended to support it.
handleSteerBoatPacket
void handleSteerBoatPacket(bool right, bool left)
Undocumented in source. Be warned that the author may not have intended to support it.
handleSteerVehiclePacket
void handleSteerVehiclePacket(float sideways, float forward, ubyte flags)
Undocumented in source. Be warned that the author may not have intended to support it.
handleTabCompletePacket
void handleTabCompletePacket(string text, bool command, bool hasPosition, ulong position)
Undocumented in source. Be warned that the author may not have intended to support it.
handleTeleportConfirmPacket
void handleTeleportConfirmPacket(uint id)
Undocumented in source. Be warned that the author may not have intended to support it.
handleUpdateSignPacket
void handleUpdateSignPacket(ulong position, string[4] texts)
Undocumented in source. Be warned that the author may not have intended to support it.
handleUseEntityPacket
void handleUseEntityPacket(uint eid, uint type, typeof(Serverbound.UseEntity.targetPosition) targetPosition, uint hand)
Undocumented in source. Be warned that the author may not have intended to support it.
handleUseItemPacket
void handleUseItemPacket(uint hand)
Undocumented in source. Be warned that the author may not have intended to support it.
handleVehicleMovePacket
void handleVehicleMovePacket(typeof(Serverbound.VehicleMove.position) position, float yaw, float pitch)
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.
metadataOf
Metadata metadataOf(SelMetadata metadata)
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.
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.
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.
sendMessageImpl
void sendMessageImpl(Message[] messages)
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 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.
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.
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.
toSlots
Types.Slot[] toSlots(Slot[] slots)
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!(Serverbound.Packets)
Undocumented in source.

Static functions

toSlot
Types.Slot toSlot(Slot slot)
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 JavaPlayer

resourcePack
string resourcePack;
resourcePackPort
string resourcePackPort;
resourcePack2Hash
string resourcePack2Hash;
resourcePack3Hash
string resourcePack3Hash;
Undocumented in source.
ulongPosition
ulong ulongPosition(BlockPosition position)
Undocumented in source. Be warned that the author may not have intended to support it.
blockPosition
BlockPosition blockPosition(ulong position)
Undocumented in source. Be warned that the author may not have intended to support it.
convertDimension
byte convertDimension(Dimension dimension)
Undocumented in source. Be warned that the author may not have intended to support it.
updateResourcePacks
void updateResourcePacks(void[] rp2, void[] rp3, string url, ushort port)
Undocumented in source. Be warned that the author may not have intended to support it.
tick
void tick()
Undocumented in source. Be warned that the author may not have intended to support it.
world
World world [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
disconnectImpl
void disconnectImpl(Translation translation)
Undocumented in source. Be warned that the author may not have intended to support it.
encodeMessage
JSONValue encodeMessage(Message[] messages)

Encodes a message into a JSONValue that can be parsed and displayed by the client. More info on the format: wiki.vg/Chat

handleClientStatus
void handleClientStatus()
Undocumented in source. Be warned that the author may not have intended to support it.
handleResourcePackStatusPacket
void handleResourcePackStatusPacket(uint status)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta