mirror of
https://github.com/Mojang/bedrock-protocol-docs.git
synced 2025-06-07 15:50:44 +00:00
281 lines
15 KiB
XML
281 lines
15 KiB
XML
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
|
|
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
|
<!-- Generated by graphviz version 11.0.0 (20240428.1522)
|
|
-->
|
|
<!-- Title: UpdateTradePacket Pages: 1 -->
|
|
<svg width="576pt" height="530pt"
|
|
viewBox="0.00 0.00 576.00 530.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 526)">
|
|
<title>UpdateTradePacket</title>
|
|
<polygon fill="white" stroke="none" points="-4,4 -4,-526 572,-526 572,4 -4,4"/>
|
|
<!-- 0 -->
|
|
<!-- name: "UpdateTradePacket", typeName: "", id: 0, branchId: 80, recurseId: -1, attributes: 0, notes: "" -->
|
|
<g id="node1" class="node">
|
|
<title>0</title>
|
|
<ellipse fill="none" stroke="black" cx="84.5" cy="-261" rx="84.5" ry="18"/>
|
|
<text text-anchor="middle" x="84.5" y="-255.57" font-family="Times New Roman,serif" font-size="14.00">UpdateTradePacket</text>
|
|
</g>
|
|
<!-- 1 -->
|
|
<!-- name: "Container Id", typeName: "", id: 1, branchId: 0, recurseId: -1, attributes: 0, notes: "" -->
|
|
<g id="node2" class="node">
|
|
<title>1</title>
|
|
<ellipse fill="none" stroke="black" cx="300.47" cy="-504" rx="57.05" ry="18"/>
|
|
<text text-anchor="middle" x="300.47" y="-498.57" font-family="Times New Roman,serif" font-size="14.00">Container Id</text>
|
|
</g>
|
|
<!-- 0->1 -->
|
|
<g id="edge1" class="edge">
|
|
<title>0->1</title>
|
|
<path fill="none" stroke="black" d="M90.34,-279.2C102.36,-320.8 137.58,-423.38 204.99,-477 214.2,-484.32 225.3,-489.66 236.61,-493.55"/>
|
|
<polygon fill="black" stroke="black" points="235.43,-496.85 246.01,-496.41 237.46,-490.15 235.43,-496.85"/>
|
|
</g>
|
|
<!-- 3 -->
|
|
<!-- name: "Container Type", typeName: "", id: 3, branchId: 0, recurseId: -1, attributes: 0, notes: "" -->
|
|
<g id="node4" class="node">
|
|
<title>3</title>
|
|
<ellipse fill="none" stroke="black" cx="300.47" cy="-450" rx="68.53" ry="18"/>
|
|
<text text-anchor="middle" x="300.47" y="-444.57" font-family="Times New Roman,serif" font-size="14.00">Container Type</text>
|
|
</g>
|
|
<!-- 0->3 -->
|
|
<g id="edge3" class="edge">
|
|
<title>0->3</title>
|
|
<path fill="none" stroke="black" d="M93.83,-279.14C110.22,-312.74 149.87,-384.74 204.99,-423 213.04,-428.58 222.22,-433.02 231.63,-436.54"/>
|
|
<polygon fill="black" stroke="black" points="230.28,-439.78 240.87,-439.66 232.52,-433.15 230.28,-439.78"/>
|
|
</g>
|
|
<!-- 5 -->
|
|
<!-- name: "Size", typeName: "", id: 5, branchId: 0, recurseId: -1, attributes: 0, notes: "" -->
|
|
<g id="node6" class="node">
|
|
<title>5</title>
|
|
<ellipse fill="none" stroke="black" cx="300.47" cy="-396" rx="27" ry="18"/>
|
|
<text text-anchor="middle" x="300.47" y="-390.57" font-family="Times New Roman,serif" font-size="14.00">Size</text>
|
|
</g>
|
|
<!-- 0->5 -->
|
|
<g id="edge5" class="edge">
|
|
<title>0->5</title>
|
|
<path fill="none" stroke="black" d="M100.6,-279.05C121.62,-303.03 161.96,-345.12 204.99,-369 222.82,-378.89 244.59,-385.43 262.74,-389.6"/>
|
|
<polygon fill="black" stroke="black" points="261.79,-392.97 272.3,-391.63 263.25,-386.13 261.79,-392.97"/>
|
|
</g>
|
|
<!-- 7 -->
|
|
<!-- name: "Trade Tier", typeName: "", id: 7, branchId: 0, recurseId: -1, attributes: 0, notes: "" -->
|
|
<g id="node8" class="node">
|
|
<title>7</title>
|
|
<ellipse fill="none" stroke="black" cx="300.47" cy="-342" rx="50.07" ry="18"/>
|
|
<text text-anchor="middle" x="300.47" y="-336.57" font-family="Times New Roman,serif" font-size="14.00">Trade Tier</text>
|
|
</g>
|
|
<!-- 0->7 -->
|
|
<g id="edge7" class="edge">
|
|
<title>0->7</title>
|
|
<path fill="none" stroke="black" d="M119.2,-277.83C142.84,-289.23 175.39,-304.15 204.99,-315 218.64,-320 233.67,-324.67 247.65,-328.66"/>
|
|
<polygon fill="black" stroke="black" points="246.56,-331.99 257.14,-331.31 248.45,-325.25 246.56,-331.99"/>
|
|
</g>
|
|
<!-- 9 -->
|
|
<!-- name: "Target Actor ID", typeName: "ActorUniqueID", id: 9, branchId: 0, recurseId: -1, attributes: 256, notes: "" -->
|
|
<g id="node10" class="node">
|
|
<title>9</title>
|
|
<ellipse fill="none" stroke="black" cx="300.47" cy="-288" rx="70.52" ry="18"/>
|
|
<text text-anchor="middle" x="300.47" y="-282.57" font-family="Times New Roman,serif" font-size="14.00">Target Actor ID</text>
|
|
</g>
|
|
<!-- 0->9 -->
|
|
<g id="edge9" class="edge">
|
|
<title>0->9</title>
|
|
<path fill="none" stroke="black" d="M158.24,-270.18C179.9,-272.91 203.66,-275.91 225.41,-278.66"/>
|
|
<polygon fill="black" stroke="black" points="224.72,-282.1 235.08,-279.87 225.59,-275.15 224.72,-282.1"/>
|
|
</g>
|
|
<!-- 11 -->
|
|
<!-- name: "Last Trading Player ID", typeName: "ActorUniqueID", id: 11, branchId: 0, recurseId: -1, attributes: 256, notes: "" -->
|
|
<g id="node12" class="node">
|
|
<title>11</title>
|
|
<ellipse fill="none" stroke="black" cx="300.47" cy="-234" rx="95.47" ry="18"/>
|
|
<text text-anchor="middle" x="300.47" y="-228.57" font-family="Times New Roman,serif" font-size="14.00">Last Trading Player ID</text>
|
|
</g>
|
|
<!-- 0->11 -->
|
|
<g id="edge11" class="edge">
|
|
<title>0->11</title>
|
|
<path fill="none" stroke="black" d="M158.24,-251.82C174.53,-249.76 192.02,-247.56 208.94,-245.42"/>
|
|
<polygon fill="black" stroke="black" points="208.98,-248.95 218.46,-244.22 208.1,-242 208.98,-248.95"/>
|
|
</g>
|
|
<!-- 13 -->
|
|
<!-- name: "Display Name", typeName: "", id: 13, branchId: 0, recurseId: -1, attributes: 0, notes: "" -->
|
|
<g id="node14" class="node">
|
|
<title>13</title>
|
|
<ellipse fill="none" stroke="black" cx="300.47" cy="-180" rx="62.54" ry="18"/>
|
|
<text text-anchor="middle" x="300.47" y="-174.57" font-family="Times New Roman,serif" font-size="14.00">Display Name</text>
|
|
</g>
|
|
<!-- 0->13 -->
|
|
<g id="edge13" class="edge">
|
|
<title>0->13</title>
|
|
<path fill="none" stroke="black" d="M119.2,-244.17C142.84,-232.77 175.39,-217.85 204.99,-207 216.89,-202.64 229.83,-198.54 242.21,-194.91"/>
|
|
<polygon fill="black" stroke="black" points="242.8,-198.38 251.45,-192.27 240.87,-191.65 242.8,-198.38"/>
|
|
</g>
|
|
<!-- 15 -->
|
|
<!-- name: "Use New Trade UI", typeName: "", id: 15, branchId: 0, recurseId: -1, attributes: 0, notes: "" -->
|
|
<g id="node16" class="node">
|
|
<title>15</title>
|
|
<ellipse fill="none" stroke="black" cx="300.47" cy="-126" rx="81" ry="18"/>
|
|
<text text-anchor="middle" x="300.47" y="-120.58" font-family="Times New Roman,serif" font-size="14.00">Use New Trade UI</text>
|
|
</g>
|
|
<!-- 0->15 -->
|
|
<g id="edge15" class="edge">
|
|
<title>0->15</title>
|
|
<path fill="none" stroke="black" d="M100.6,-242.95C121.62,-218.97 161.96,-176.88 204.99,-153 212.65,-148.75 221.03,-145.12 229.54,-142.03"/>
|
|
<polygon fill="black" stroke="black" points="230.55,-145.39 238.92,-138.88 228.32,-138.75 230.55,-145.39"/>
|
|
</g>
|
|
<!-- 17 -->
|
|
<!-- name: "Using Economy Trade", typeName: "", id: 17, branchId: 0, recurseId: -1, attributes: 0, notes: "When set to false, it means the packet comes from the old Trade Component." -->
|
|
<g id="node18" class="node">
|
|
<title>17</title>
|
|
<ellipse fill="none" stroke="black" cx="300.47" cy="-72" rx="94.98" ry="18"/>
|
|
<text text-anchor="middle" x="300.47" y="-66.58" font-family="Times New Roman,serif" font-size="14.00">Using Economy Trade</text>
|
|
</g>
|
|
<!-- 0->17 -->
|
|
<g id="edge17" class="edge">
|
|
<title>0->17</title>
|
|
<path fill="none" stroke="black" d="M93.83,-242.86C110.22,-209.26 149.87,-137.26 204.99,-99 210.38,-95.26 216.28,-92.04 222.41,-89.26"/>
|
|
<polygon fill="black" stroke="black" points="223.57,-92.56 231.51,-85.55 220.93,-86.08 223.57,-92.56"/>
|
|
</g>
|
|
<!-- 19 -->
|
|
<!-- name: "Data Tags", typeName: "CompoundTag", id: 19, branchId: 0, recurseId: -1, attributes: 256, notes: "" -->
|
|
<g id="node20" class="node">
|
|
<title>19</title>
|
|
<ellipse fill="none" stroke="black" cx="300.47" cy="-18" rx="48.57" ry="18"/>
|
|
<text text-anchor="middle" x="300.47" y="-12.57" font-family="Times New Roman,serif" font-size="14.00">Data Tags</text>
|
|
</g>
|
|
<!-- 0->19 -->
|
|
<g id="edge19" class="edge">
|
|
<title>0->19</title>
|
|
<path fill="none" stroke="black" d="M90.34,-242.8C102.36,-201.2 137.58,-98.62 204.99,-45 215.84,-36.37 229.32,-30.5 242.67,-26.51"/>
|
|
<polygon fill="black" stroke="black" points="243.55,-29.89 252.32,-23.96 241.76,-23.13 243.55,-29.89"/>
|
|
</g>
|
|
<!-- 2 -->
|
|
<!-- name: "byte", typeName: "", id: 2, branchId: 0, recurseId: -1, attributes: 512, notes: "" -->
|
|
<g id="node3" class="node">
|
|
<title>2</title>
|
|
<ellipse fill="none" stroke="black" cx="499.97" cy="-504" rx="27" ry="18"/>
|
|
<text text-anchor="middle" x="499.97" y="-498.57" font-family="Times New Roman,serif" font-size="14.00">byte</text>
|
|
</g>
|
|
<!-- 1->2 -->
|
|
<g id="edge2" class="edge">
|
|
<title>1->2</title>
|
|
<path fill="none" stroke="black" d="M357.8,-504C390.97,-504 432.02,-504 461.29,-504"/>
|
|
<polygon fill="black" stroke="black" points="461.15,-507.5 471.15,-504 461.15,-500.5 461.15,-507.5"/>
|
|
</g>
|
|
<!-- 4 -->
|
|
<!-- name: "byte", typeName: "", id: 4, branchId: 0, recurseId: -1, attributes: 512, notes: "" -->
|
|
<g id="node5" class="node">
|
|
<title>4</title>
|
|
<ellipse fill="none" stroke="black" cx="499.97" cy="-450" rx="27" ry="18"/>
|
|
<text text-anchor="middle" x="499.97" y="-444.57" font-family="Times New Roman,serif" font-size="14.00">byte</text>
|
|
</g>
|
|
<!-- 3->4 -->
|
|
<g id="edge4" class="edge">
|
|
<title>3->4</title>
|
|
<path fill="none" stroke="black" d="M369.44,-450C400.21,-450 435.41,-450 461.34,-450"/>
|
|
<polygon fill="black" stroke="black" points="461.04,-453.5 471.04,-450 461.04,-446.5 461.04,-453.5"/>
|
|
</g>
|
|
<!-- 6 -->
|
|
<!-- name: "varint", typeName: "", id: 6, branchId: 0, recurseId: -1, attributes: 512, notes: "" -->
|
|
<g id="node7" class="node">
|
|
<title>6</title>
|
|
<ellipse fill="none" stroke="black" cx="499.97" cy="-396" rx="31.1" ry="18"/>
|
|
<text text-anchor="middle" x="499.97" y="-390.57" font-family="Times New Roman,serif" font-size="14.00">varint</text>
|
|
</g>
|
|
<!-- 5->6 -->
|
|
<g id="edge6" class="edge">
|
|
<title>5->6</title>
|
|
<path fill="none" stroke="black" d="M327.69,-396C360.76,-396 418.01,-396 457.15,-396"/>
|
|
<polygon fill="black" stroke="black" points="456.9,-399.5 466.9,-396 456.9,-392.5 456.9,-399.5"/>
|
|
</g>
|
|
<!-- 8 -->
|
|
<!-- name: "varint", typeName: "", id: 8, branchId: 0, recurseId: -1, attributes: 512, notes: "" -->
|
|
<g id="node9" class="node">
|
|
<title>8</title>
|
|
<ellipse fill="none" stroke="black" cx="499.97" cy="-342" rx="31.1" ry="18"/>
|
|
<text text-anchor="middle" x="499.97" y="-336.57" font-family="Times New Roman,serif" font-size="14.00">varint</text>
|
|
</g>
|
|
<!-- 7->8 -->
|
|
<g id="edge8" class="edge">
|
|
<title>7->8</title>
|
|
<path fill="none" stroke="black" d="M350.8,-342C383.52,-342 426,-342 457.08,-342"/>
|
|
<polygon fill="black" stroke="black" points="456.88,-345.5 466.88,-342 456.88,-338.5 456.88,-345.5"/>
|
|
</g>
|
|
<!-- 10 -->
|
|
<!-- name: "ActorUniqueID", typeName: "", id: 10, branchId: 0, recurseId: -1, attributes: 512, notes: "" -->
|
|
<g id="node11" class="node">
|
|
<title>10</title>
|
|
<ellipse fill="none" stroke="black" cx="499.97" cy="-288" rx="68.03" ry="18"/>
|
|
<text text-anchor="middle" x="499.97" y="-282.57" font-family="Times New Roman,serif" font-size="14.00">ActorUniqueID</text>
|
|
</g>
|
|
<!-- 9->10 -->
|
|
<g id="edge10" class="edge">
|
|
<title>9->10</title>
|
|
<path fill="none" stroke="black" d="M371.38,-288C387.25,-288 404.2,-288 420.4,-288"/>
|
|
<polygon fill="black" stroke="black" points="419.96,-291.5 429.96,-288 419.96,-284.5 419.96,-291.5"/>
|
|
</g>
|
|
<!-- 12 -->
|
|
<!-- name: "ActorUniqueID", typeName: "", id: 12, branchId: 0, recurseId: -1, attributes: 512, notes: "" -->
|
|
<g id="node13" class="node">
|
|
<title>12</title>
|
|
<ellipse fill="none" stroke="black" cx="499.97" cy="-234" rx="68.03" ry="18"/>
|
|
<text text-anchor="middle" x="499.97" y="-228.57" font-family="Times New Roman,serif" font-size="14.00">ActorUniqueID</text>
|
|
</g>
|
|
<!-- 11->12 -->
|
|
<g id="edge12" class="edge">
|
|
<title>11->12</title>
|
|
<path fill="none" stroke="black" d="M396.17,-234C404.22,-234 412.3,-234 420.21,-234"/>
|
|
<polygon fill="black" stroke="black" points="420.13,-237.5 430.13,-234 420.13,-230.5 420.13,-237.5"/>
|
|
</g>
|
|
<!-- 14 -->
|
|
<!-- name: "string", typeName: "", id: 14, branchId: 0, recurseId: -1, attributes: 512, notes: "" -->
|
|
<g id="node15" class="node">
|
|
<title>14</title>
|
|
<ellipse fill="none" stroke="black" cx="499.97" cy="-180" rx="31.1" ry="18"/>
|
|
<text text-anchor="middle" x="499.97" y="-174.57" font-family="Times New Roman,serif" font-size="14.00">string</text>
|
|
</g>
|
|
<!-- 13->14 -->
|
|
<g id="edge14" class="edge">
|
|
<title>13->14</title>
|
|
<path fill="none" stroke="black" d="M363.42,-180C393.87,-180 429.77,-180 456.97,-180"/>
|
|
<polygon fill="black" stroke="black" points="456.91,-183.5 466.91,-180 456.91,-176.5 456.91,-183.5"/>
|
|
</g>
|
|
<!-- 16 -->
|
|
<!-- name: "bool", typeName: "", id: 16, branchId: 0, recurseId: -1, attributes: 512, notes: "" -->
|
|
<g id="node17" class="node">
|
|
<title>16</title>
|
|
<ellipse fill="none" stroke="black" cx="499.97" cy="-126" rx="27.61" ry="18"/>
|
|
<text text-anchor="middle" x="499.97" y="-120.58" font-family="Times New Roman,serif" font-size="14.00">bool</text>
|
|
</g>
|
|
<!-- 15->16 -->
|
|
<g id="edge16" class="edge">
|
|
<title>15->16</title>
|
|
<path fill="none" stroke="black" d="M381.8,-126C409.14,-126 438.43,-126 460.89,-126"/>
|
|
<polygon fill="black" stroke="black" points="460.77,-129.5 470.77,-126 460.77,-122.5 460.77,-129.5"/>
|
|
</g>
|
|
<!-- 18 -->
|
|
<!-- name: "bool", typeName: "", id: 18, branchId: 0, recurseId: -1, attributes: 512, notes: "" -->
|
|
<g id="node19" class="node">
|
|
<title>18</title>
|
|
<ellipse fill="none" stroke="black" cx="499.97" cy="-72" rx="27.61" ry="18"/>
|
|
<text text-anchor="middle" x="499.97" y="-66.58" font-family="Times New Roman,serif" font-size="14.00">bool</text>
|
|
</g>
|
|
<!-- 17->18 -->
|
|
<g id="edge18" class="edge">
|
|
<title>17->18</title>
|
|
<path fill="none" stroke="black" d="M395.88,-72C418.82,-72 442.08,-72 460.68,-72"/>
|
|
<polygon fill="black" stroke="black" points="460.67,-75.5 470.67,-72 460.67,-68.5 460.67,-75.5"/>
|
|
</g>
|
|
<!-- 20 -->
|
|
<!-- name: "CompoundTag", typeName: "", id: 20, branchId: 0, recurseId: -1, attributes: 512, notes: "" -->
|
|
<g id="node21" class="node">
|
|
<title>20</title>
|
|
<ellipse fill="none" stroke="black" cx="499.97" cy="-18" rx="67.53" ry="18"/>
|
|
<text text-anchor="middle" x="499.97" y="-12.57" font-family="Times New Roman,serif" font-size="14.00">CompoundTag</text>
|
|
</g>
|
|
<!-- 19->20 -->
|
|
<g id="edge20" class="edge">
|
|
<title>19->20</title>
|
|
<path fill="none" stroke="black" d="M349.53,-18C370.92,-18 396.66,-18 420.71,-18"/>
|
|
<polygon fill="black" stroke="black" points="420.47,-21.5 430.47,-18 420.47,-14.5 420.47,-21.5"/>
|
|
</g>
|
|
</g>
|
|
</svg>
|