ServerBound

class Object
trait Matchable
class Any

Type members

Classlikes

case
class AdvancementTab(action: VarInt, tabId: Option[String])

TODO: Document

TODO: Document

case
class ArmSwing(hand: VarInt)

ArmSwing is sent by the client when the player left clicks (to swing their arm).

ArmSwing is sent by the client when the player left clicks (to swing their arm).

case
class ArmSwing_Handsfree(empty: Unit)
case
class ArmSwing_Handsfree_ID(entityId: Int, animation: UByte)
case
class ChatMessage(message: String)

ChatMessage is sent by the client when it sends a chat message or executes a command (prefixed by '/').

ChatMessage is sent by the client when it sends a chat message or executes a command (prefixed by '/').

case
class ClickWindow(id: UByte, slot: Short, button: UByte, actionNumber: UShort, mode: VarInt, clickedItem: Slot)

ClickWindow is sent when the client clicks in a window.

ClickWindow is sent when the client clicks in a window.

case
class ClickWindowButton(id: UByte, button: UByte)

ClickWindowButton is used for clicking an enchantment, lectern, stonecutter, or loom.

ClickWindowButton is used for clicking an enchantment, lectern, stonecutter, or loom.

case
class ClickWindow_u8(id: UByte, slot: Short, button: UByte, actionNumber: UShort, mode: UByte, clickedItem: Slot)
case
class ClientAbilities_f32(flags: UByte, flyingSpeed: Float, walkingSpeed: Float)

ClientAbilities is used to modify the players current abilities. Currently flying is the only one

ClientAbilities is used to modify the players current abilities. Currently flying is the only one

case
case
class ClientSettings(locale: String, viewDistance: UByte, chatMode: VarInt, chatColors: Boolean, displayedSkinParts: UByte, mainHand: VarInt)

ClientSettings is sent by the client to update its current settings.

ClientSettings is sent by the client to update its current settings.

case
class ClientSettings_u8(locale: String, viewDistance: UByte, chatMode: UByte, chatColors: Boolean, displayedSkinParts: UByte, mainHand: VarInt)
case
class ClientSettings_u8_Handsfree(locale: String, viewDistance: UByte, chatMode: UByte, chatColors: Boolean, displayedSkinParts: UByte)
case
class ClientSettings_u8_Handsfree_Difficulty(locale: String, viewDistance: UByte, chatMode: UByte, chatColors: Boolean, difficulty: UByte, displayedSkinParts: UByte)
case
class ClientStatus(actionId: VarInt)

ClientStatus is sent to update the client's status

ClientStatus is sent to update the client's status

case
class ClientStatus_u8(actionId: UByte)
case
class CloseWindow(id: UByte)

CloseWindow is sent when the client closes a window.

CloseWindow is sent when the client closes a window.

case
class ConfirmTransactionServerbound(id: UByte, actionNumber: Short, accepted: Boolean)

ConfirmTransactionServerbound is a reply to ConfirmTransaction.

ConfirmTransactionServerbound is a reply to ConfirmTransaction.

case
class CraftRecipeRequest(windowId: UByte, recipe: VarInt, makeAll: Boolean)

CraftRecipeRequest is sent when player clicks a recipe in the crafting book.

CraftRecipeRequest is sent when player clicks a recipe in the crafting book.

case
class CraftingBookData(action: VarInt, recipeId: Option[Int], craftingBookOpen: Option[Boolean], craftingFilter: Option[Boolean])

CraftingBookData is sent when the player interacts with the crafting book.

CraftingBookData is sent when the player interacts with the crafting book.

case
class CreativeInventoryAction(slot: Short, clickedItem: Slot)

CreativeInventoryAction is sent when the client clicks in the creative inventory. This is used to spawn items in creative.

CreativeInventoryAction is sent when the client clicks in the creative inventory. This is used to spawn items in creative.

case
class EditBook(newBook: Slot, isSigning: Boolean, hand: VarInt)
case
class EnchantItem(id: UByte, enchantment: UByte)

EnchantItem is sent when the client enchants an item.

EnchantItem is sent when the client enchants an item.

case
class GenerateStructure(location: Position, levels: VarInt, keepJigsaws: Boolean)

Sent when Generate is pressed on the Jigsaw Block interface.

Sent when Generate is pressed on the Jigsaw Block interface.

case
class HeldItemChange(slot: Short)

HeldItemChange is sent when the player changes the currently active hotbar slot.

HeldItemChange is sent when the player changes the currently active hotbar slot.

case
case
class KeepAliveServerbound_i64(id: Long)

KeepAliveServerbound is sent by a client as a response to a KeepAliveClientbound. If the client doesn't reply the server may disconnect the client.

KeepAliveServerbound is sent by a client as a response to a KeepAliveClientbound. If the client doesn't reply the server may disconnect the client.

case
class LockDifficulty(locked: Boolean)
case
class NameItem(itemName: String)
case
class PickItem(slotToUse: VarInt)
case
class Player(onGround: Boolean)

Player is used to update whether the player is on the ground or not.

Player is used to update whether the player is on the ground or not.

case
class PlayerAction(entityId: VarInt, actionId: VarInt, jumpBoost: VarInt)

PlayerAction is sent when a player preforms various actions.

PlayerAction is sent when a player preforms various actions.

case
class PlayerAction_i32(entityId: Int, actionId: Byte, jumpBoost: Int)
case
class PlayerBlockPlacement_f32(location: Position, face: VarInt, hand: VarInt, cursorX: Float, cursorY: Float, cursorZ: Float)

PlayerBlockPlacement is sent when the client tries to place a block.

PlayerBlockPlacement is sent when the client tries to place a block.

case
class PlayerBlockPlacement_insideblock(hand: VarInt, location: Position, face: VarInt, cursorX: Float, cursorY: Float, cursorZ: Float, insideBlock: Boolean)
case
class PlayerBlockPlacement_u8(location: Position, face: VarInt, hand: VarInt, cursorX: UByte, cursorY: UByte, cursorZ: UByte)
case
class PlayerBlockPlacement_u8_Item(location: Position, face: UByte, hand: Slot, cursorX: UByte, cursorY: UByte, cursorZ: UByte)
case
class PlayerBlockPlacement_u8_Item_u8y(x: Int, y: UByte, z: Int, face: UByte, hand: Slot, cursorX: UByte, cursorY: UByte, cursorZ: UByte)
case
class PlayerDigging(status: VarInt, location: Position, face: UByte)

PlayerDigging is sent when the client starts/stops digging a block. It also can be sent for droppping items and eating/shooting.

PlayerDigging is sent when the client starts/stops digging a block. It also can be sent for droppping items and eating/shooting.

case
class PlayerDigging_u8(status: UByte, location: Position, face: UByte)
case
class PlayerDigging_u8_u8y(status: UByte, x: Int, y: UByte, z: Int, face: UByte)
case
class PlayerLook(yaw: Float, pitch: Float, onGround: Boolean)

PlayerLook is used to update the player's rotation.

PlayerLook is used to update the player's rotation.

case
class PlayerPosition(x: Double, y: Double, z: Double, onGround: Boolean)

PlayerPosition is used to update the player's position.

PlayerPosition is used to update the player's position.

case
class PlayerPositionLook(x: Double, y: Double, z: Double, yaw: Float, pitch: Float, onGround: Boolean)

PlayerPositionLook is a combination of PlayerPosition and PlayerLook.

PlayerPositionLook is a combination of PlayerPosition and PlayerLook.

case
class PlayerPositionLook_HeadY(x: Double, feetY: Double, headY: Double, z: Double, yaw: Float, pitch: Float, onGround: Boolean)
case
class PlayerPosition_HeadY(x: Double, feetY: Double, headY: Double, z: Double, onGround: Boolean)
case

PluginMessageServerbound is used for custom messages between the client and server. This is mainly for plugins/mods but vanilla has a few channels registered too.

PluginMessageServerbound is used for custom messages between the client and server. This is mainly for plugins/mods but vanilla has a few channels registered too.

case
class PluginMessageServerbound_i16(channel: String, data: LenPrefixedByteSeq[Short])
case
class QueryBlockNBT(transactionId: VarInt, location: Position)
case
class QueryEntityNBT(transactionId: VarInt, entityId: VarInt)
case
class ResourcePackStatus(result: VarInt)

ResourcePackStatus informs the server of the client's current progress in activating the requested resource pack

ResourcePackStatus informs the server of the client's current progress in activating the requested resource pack

case
class ResourcePackStatus_hash(hash: String, result: VarInt)
case
class SelectTrade(selectedSlot: VarInt)
case
class SetBeaconEffect(primaryEffect: VarInt, secondaryEffect: VarInt)
case
class SetDifficulty(newDifficulty: UByte)
case
class SetDisplayedRecipe(recipeId: String)

SetDisplayedRecipe replaces CraftingBookData, type 0.

SetDisplayedRecipe replaces CraftingBookData, type 0.

case
class SetRecipeBookState(bookId: VarInt, bookOpen: Boolean, filterActive: Boolean)

SetRecipeBookState replaces CraftingBookData, type 1.

SetRecipeBookState replaces CraftingBookData, type 1.

case
class SetSign(location: Position, line1: String, line2: String, line3: String, line4: String)

SetSign sets the text on a sign after placing it.

SetSign sets the text on a sign after placing it.

case
class SetSign_i16y(x: Int, y: Short, z: Int, line1: String, line2: String, line3: String, line4: String)
case
class SpectateTeleport(target: UUID)

SpectateTeleport is sent by clients in spectator mode to teleport to a player.

SpectateTeleport is sent by clients in spectator mode to teleport to a player.

case
class SteerBoat(leftPaddleTurning: Boolean, rightPaddleTurning: Boolean)

SteerBoat is used to visually update the boat paddles.

SteerBoat is used to visually update the boat paddles.

case
class SteerVehicle(sideways: Float, forward: Float, flags: UByte)

SteerVehicle is sent by the client when steers or preforms an action on a vehicle.

SteerVehicle is sent by the client when steers or preforms an action on a vehicle.

case
class SteerVehicle_jump_unmount(sideways: Float, forward: Float, jump: Boolean, unmount: Boolean)
case
class TabComplete(text: String, assumeCommand: Boolean, hasTarget: Boolean, target: Option[Position])

TabComplete is sent by the client when the client presses tab in the chat box.

TabComplete is sent by the client when the client presses tab in the chat box.

case
class TabComplete_NoAssume(text: String, hasTarget: Boolean, target: Option[Position])
case
class TabComplete_NoAssume_NoTarget(text: String)
case
class TeleportConfirm(teleportId: VarInt)

TeleportConfirm is sent by the client as a reply to a telport from the server.

TeleportConfirm is sent by the client as a reply to a telport from the server.

case
class UpdateCommandBlock(location: Position, command: String, mode: VarInt, flags: UByte)
case
class UpdateCommandBlockMinecart(entityId: VarInt, command: String, trackOutput: Boolean)
case
class UpdateJigsawBlock_Joint(location: Position, name: String, target: String, pool: String, finalState: String, jointType: String)
case
class UpdateJigsawBlock_Type(location: Position, attachmentType: String, targetPool: String, finalState: String)
case
class UpdateStructureBlock(location: Position, action: VarInt, mode: VarInt, name: String, offsetX: Byte, offsetY: Byte, offsetZ: Byte, sizeX: Byte, sizeY: Byte, sizeZ: Byte, mirror: VarInt, rotation: VarInt, metadata: String, integrity: Float, seed: VarLong, flags: Byte)
case
class UseEntity_Hand(targetId: VarInt, ty: VarInt, targetX: Option[Float], targetY: Option[Float], targetZ: Option[Float], hand: Option[VarInt])
case
class UseEntity_Handsfree(targetId: VarInt, ty: VarInt, targetX: Option[Float], targetY: Option[Float], targetZ: Option[Float])
case
class UseEntity_Handsfree_i32(targetId: Int, ty: UByte)
case
class UseEntity_Sneakflag(targetId: VarInt, ty: VarInt, targetX: Option[Float], targetY: Option[Float], targetZ: Option[Float], hand: Option[VarInt], sneaking: Boolean)

UseEntity is sent when the user interacts (right clicks) or attacks (left clicks) an entity.

UseEntity is sent when the user interacts (right clicks) or attacks (left clicks) an entity.

case
class UseItem(hand: VarInt)

UseItem is sent when the client tries to use an item.

UseItem is sent when the client tries to use an item.

case
class VehicleMove(x: Double, y: Double, z: Double, yaw: Float, pitch: Float)

Sent by the client when in a vehicle instead of the normal move packet.

Sent by the client when in a vehicle instead of the normal move packet.