public ClientHandshake( VarInt protocolVersion, [DataLengthConstraint(Max = 255)] Utf8String serverAddress, ushort serverPort, VarInt nextState) { ProtocolVersion = protocolVersion; ServerAddress = serverAddress; ServerPort = serverPort; NextState = nextState.AsEnum <ProtocolState>(); }
public ClientClickWindow( byte windowID, short slot, sbyte button, short actionNumber, VarInt mode, Slot clickedItem) { WindowID = windowID; Slot = slot; Button = button; ActionNumber = actionNumber; Mode = mode.AsEnum <ClickMode>(); ClickedItem = clickedItem; }
public ClientPlayerBlockPlacement( VarInt hand, Position location, VarInt face, float cursorPositionX, float cursorPositionY, float cursorPositionZ, bool insideBlock) { Hand = hand.AsEnum <HandId>(); Location = location; Face = face.AsEnum <FaceDirection>(); CursorPositionX = cursorPositionX; CursorPositionY = cursorPositionY; CursorPositionZ = cursorPositionZ; InsideBlock = insideBlock; }
public ClientUseItem(VarInt hand) { Hand = hand.AsEnum <HandId>(); }
public ClientSetRecipeBookState(VarInt bookId, bool bookOpen, bool filterActive) { BookId = bookId.AsEnum <RecipeBookId>(); BookOpen = bookOpen; FilterActive = filterActive; }
public ClientPlayerDigging(VarInt status, Position location, byte face) { Status = status.AsEnum <DiggingStatus>(); Location = location; Face = (FaceDirection)face; }