1
0
mirror of https://github.com/Mojang/bedrock-protocol-docs.git synced 2025-07-15 20:54:44 +00:00
Files
bedrock-protocol-docs/html/svg/UpdateTradePacket.svg
Oswaldo Leyva Barrientos a27d6bb22a Protocol for r/21_u6 NetworkProtocolVersion 776 (#18)
* Protocol for r/21_u6 NetworkProtocolVersion 776

* Protocol for r/21_u6 NetworkProtocolVersion 776 - Fix README version

* Protocol for r/21_u6 NetworkProtocolVersion 776 - Fix changelog release

* Protocol for r/21_u6 NetworkProtocolVersion 776 - Add NoteBlockInstrument to protocol doc
2025-02-13 19:28:13 -08:00

333 lines
17 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 12.2.1 (20241206.2353)
-->
<!-- Title: UpdateTradePacket Pages: 1 -->
<svg width="577pt" height="638pt"
viewBox="0.00 0.00 577.48 638.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 634)">
<title>UpdateTradePacket</title>
<polygon fill="white" stroke="none" points="-4,4 -4,-634 573.48,-634 573.48,4 -4,4"/>
<!-- 0 -->
<!-- name: &quot;UpdateTradePacket&quot;, typeName: &quot;&quot;, id: 0, branchId: 80, recurseId: &#45;1, attributes: 0, notes: &quot;&quot; -->
<g id="node1" class="node">
<title>0</title>
<ellipse fill="none" stroke="black" cx="83.6" cy="-315" rx="83.6" ry="18"/>
<text text-anchor="middle" x="83.6" y="-309.95" font-family="Times New Roman,serif" font-size="14.00">UpdateTradePacket</text>
</g>
<!-- 1 -->
<!-- name: &quot;Container Id&quot;, typeName: &quot;&quot;, id: 1, branchId: 0, recurseId: &#45;1, attributes: 0, notes: &quot;&quot; -->
<g id="node2" class="node">
<title>1</title>
<ellipse fill="none" stroke="black" cx="299.58" cy="-612" rx="57.49" ry="18"/>
<text text-anchor="middle" x="299.58" y="-606.95" font-family="Times New Roman,serif" font-size="14.00">Container Id</text>
</g>
<!-- 0&#45;&gt;1 -->
<g id="edge1" class="edge">
<title>0&#45;&gt;1</title>
<path fill="none" stroke="black" d="M87.18,-333.24C95.05,-381.83 123.26,-515.41 203.19,-585 212.14,-592.79 223.19,-598.35 234.56,-602.3"/>
<polygon fill="black" stroke="black" points="233.47,-605.63 244.05,-605.19 235.5,-598.93 233.47,-605.63"/>
</g>
<!-- 3 -->
<!-- name: &quot;Type&quot;, typeName: &quot;&quot;, id: 3, branchId: 0, recurseId: &#45;1, attributes: 0, notes: &quot;&quot; -->
<g id="node4" class="node">
<title>3</title>
<ellipse fill="none" stroke="black" cx="299.58" cy="-558" rx="29.34" ry="18"/>
<text text-anchor="middle" x="299.58" y="-552.95" font-family="Times New Roman,serif" font-size="14.00">Type</text>
</g>
<!-- 0&#45;&gt;3 -->
<g id="edge3" class="edge">
<title>0&#45;&gt;3</title>
<path fill="none" stroke="black" d="M89.35,-333.21C101.17,-374.83 135.91,-477.45 203.19,-531 218.95,-543.54 240.24,-550.26 258.71,-553.86"/>
<polygon fill="black" stroke="black" points="258.12,-557.31 268.56,-555.51 259.28,-550.41 258.12,-557.31"/>
</g>
<!-- 5 -->
<!-- name: &quot;Size&quot;, typeName: &quot;&quot;, id: 5, branchId: 0, recurseId: &#45;1, attributes: 0, notes: &quot;&quot; -->
<g id="node6" class="node">
<title>5</title>
<ellipse fill="none" stroke="black" cx="299.58" cy="-504" rx="27" ry="18"/>
<text text-anchor="middle" x="299.58" y="-498.95" font-family="Times New Roman,serif" font-size="14.00">Size</text>
</g>
<!-- 0&#45;&gt;5 -->
<g id="edge5" class="edge">
<title>0&#45;&gt;5</title>
<path fill="none" stroke="black" d="M92.82,-333.15C109,-366.78 148.24,-438.81 203.19,-477 220.4,-488.96 242.81,-495.65 261.58,-499.38"/>
<polygon fill="black" stroke="black" points="260.78,-502.79 271.24,-501.07 261.99,-495.9 260.78,-502.79"/>
</g>
<!-- 7 -->
<!-- name: &quot;Trader Tier&quot;, typeName: &quot;&quot;, id: 7, branchId: 0, recurseId: &#45;1, attributes: 0, notes: &quot;&quot; -->
<g id="node8" class="node">
<title>7</title>
<ellipse fill="none" stroke="black" cx="299.58" cy="-450" rx="52.89" ry="18"/>
<text text-anchor="middle" x="299.58" y="-444.95" font-family="Times New Roman,serif" font-size="14.00">Trader Tier</text>
</g>
<!-- 0&#45;&gt;7 -->
<g id="edge7" class="edge">
<title>0&#45;&gt;7</title>
<path fill="none" stroke="black" d="M99.55,-333.07C120.36,-357.07 160.35,-399.19 203.19,-423 214.94,-429.53 228.41,-434.59 241.44,-438.47"/>
<polygon fill="black" stroke="black" points="240.22,-441.76 250.79,-441.05 242.08,-435.01 240.22,-441.76"/>
</g>
<!-- 9 -->
<!-- name: &quot;Entity Unique Id&quot;, typeName: &quot;ActorUniqueID&quot;, id: 9, branchId: 0, recurseId: &#45;1, attributes: 256, notes: &quot;&quot; -->
<g id="node10" class="node">
<title>9</title>
<ellipse fill="none" stroke="black" cx="299.58" cy="-396" rx="73.36" ry="18"/>
<text text-anchor="middle" x="299.58" y="-390.95" font-family="Times New Roman,serif" font-size="14.00">Entity Unique Id</text>
</g>
<!-- 0&#45;&gt;9 -->
<g id="edge9" class="edge">
<title>0&#45;&gt;9</title>
<path fill="none" stroke="black" d="M118.02,-331.87C141.47,-343.29 173.77,-358.21 203.19,-369 213.73,-372.87 225.1,-376.52 236.18,-379.81"/>
<polygon fill="black" stroke="black" points="235.1,-383.14 245.68,-382.56 237.05,-376.42 235.1,-383.14"/>
</g>
<!-- 11 -->
<!-- name: &quot;Last Trading Player&quot;, typeName: &quot;ActorUniqueID&quot;, id: 11, branchId: 0, recurseId: &#45;1, attributes: 256, notes: &quot;&quot; -->
<g id="node12" class="node">
<title>11</title>
<ellipse fill="none" stroke="black" cx="299.58" cy="-342" rx="84.11" ry="18"/>
<text text-anchor="middle" x="299.58" y="-336.95" font-family="Times New Roman,serif" font-size="14.00">Last Trading Player</text>
</g>
<!-- 0&#45;&gt;11 -->
<g id="edge11" class="edge">
<title>0&#45;&gt;11</title>
<path fill="none" stroke="black" d="M156.74,-324.1C175.51,-326.47 195.88,-329.04 215.17,-331.48"/>
<polygon fill="black" stroke="black" points="214.52,-334.92 224.88,-332.7 215.4,-327.98 214.52,-334.92"/>
</g>
<!-- 13 -->
<!-- name: &quot;Display Name&quot;, typeName: &quot;&quot;, id: 13, branchId: 0, recurseId: &#45;1, attributes: 0, notes: &quot;&quot; -->
<g id="node14" class="node">
<title>13</title>
<ellipse fill="none" stroke="black" cx="299.58" cy="-288" rx="64.66" ry="18"/>
<text text-anchor="middle" x="299.58" y="-282.95" font-family="Times New Roman,serif" font-size="14.00">Display Name</text>
</g>
<!-- 0&#45;&gt;13 -->
<g id="edge13" class="edge">
<title>0&#45;&gt;13</title>
<path fill="none" stroke="black" d="M156.74,-305.9C179.89,-302.98 205.48,-299.75 228.48,-296.85"/>
<polygon fill="black" stroke="black" points="228.9,-300.32 238.39,-295.6 228.03,-293.37 228.9,-300.32"/>
</g>
<!-- 15 -->
<!-- name: &quot;Use New Trade Screen&quot;, typeName: &quot;&quot;, id: 15, branchId: 0, recurseId: &#45;1, attributes: 0, notes: &quot;&quot; -->
<g id="node16" class="node">
<title>15</title>
<ellipse fill="none" stroke="black" cx="299.58" cy="-234" rx="96.39" ry="18"/>
<text text-anchor="middle" x="299.58" y="-228.95" font-family="Times New Roman,serif" font-size="14.00">Use New Trade Screen</text>
</g>
<!-- 0&#45;&gt;15 -->
<g id="edge15" class="edge">
<title>0&#45;&gt;15</title>
<path fill="none" stroke="black" d="M118.02,-298.13C141.47,-286.71 173.77,-271.79 203.19,-261 211.9,-257.81 221.17,-254.76 230.38,-251.94"/>
<polygon fill="black" stroke="black" points="231.09,-255.38 239.68,-249.17 229.1,-248.67 231.09,-255.38"/>
</g>
<!-- 17 -->
<!-- name: &quot;Using Economy Trade&quot;, typeName: &quot;&quot;, id: 17, branchId: 0, recurseId: &#45;1, attributes: 0, notes: &quot;When set to false, it means the packet comes from the old Trade Component.&quot; -->
<g id="node18" class="node">
<title>17</title>
<ellipse fill="none" stroke="black" cx="299.58" cy="-180" rx="94.86" ry="18"/>
<text text-anchor="middle" x="299.58" y="-174.95" font-family="Times New Roman,serif" font-size="14.00">Using Economy Trade</text>
</g>
<!-- 0&#45;&gt;17 -->
<g id="edge17" class="edge">
<title>0&#45;&gt;17</title>
<path fill="none" stroke="black" d="M99.55,-296.93C120.36,-272.93 160.35,-230.81 203.19,-207 209.81,-203.32 216.97,-200.11 224.3,-197.31"/>
<polygon fill="black" stroke="black" points="225.4,-200.63 233.67,-194.01 223.08,-194.03 225.4,-200.63"/>
</g>
<!-- 19 -->
<!-- name: &quot;Byte&quot;, typeName: &quot;&quot;, id: 19, branchId: 0, recurseId: &#45;1, attributes: 0, notes: &quot;&quot; -->
<g id="node20" class="node">
<title>19</title>
<ellipse fill="none" stroke="black" cx="299.58" cy="-126" rx="28.32" ry="18"/>
<text text-anchor="middle" x="299.58" y="-120.95" font-family="Times New Roman,serif" font-size="14.00">Byte</text>
</g>
<!-- 0&#45;&gt;19 -->
<g id="edge19" class="edge">
<title>0&#45;&gt;19</title>
<path fill="none" stroke="black" d="M92.82,-296.85C109,-263.22 148.24,-191.19 203.19,-153 219.97,-141.34 241.69,-134.69 260.17,-130.91"/>
<polygon fill="black" stroke="black" points="260.76,-134.36 269.98,-129.13 259.52,-127.47 260.76,-134.36"/>
</g>
<!-- 21 -->
<!-- name: &quot;String&quot;, typeName: &quot;&quot;, id: 21, branchId: 0, recurseId: &#45;1, attributes: 0, notes: &quot;&quot; -->
<g id="node22" class="node">
<title>21</title>
<ellipse fill="none" stroke="black" cx="299.58" cy="-72" rx="33.44" ry="18"/>
<text text-anchor="middle" x="299.58" y="-66.95" font-family="Times New Roman,serif" font-size="14.00">String</text>
</g>
<!-- 0&#45;&gt;21 -->
<g id="edge21" class="edge">
<title>0&#45;&gt;21</title>
<path fill="none" stroke="black" d="M89.35,-296.79C101.17,-255.17 135.91,-152.55 203.19,-99 217.88,-87.31 237.38,-80.68 254.91,-76.92"/>
<polygon fill="black" stroke="black" points="255.4,-80.39 264.6,-75.11 254.12,-73.5 255.4,-80.39"/>
</g>
<!-- 23 -->
<!-- name: &quot;Byte&quot;, typeName: &quot;&quot;, id: 23, branchId: 0, recurseId: &#45;1, attributes: 0, notes: &quot;&quot; -->
<g id="node24" class="node">
<title>23</title>
<ellipse fill="none" stroke="black" cx="299.58" cy="-18" rx="28.32" ry="18"/>
<text text-anchor="middle" x="299.58" y="-12.95" font-family="Times New Roman,serif" font-size="14.00">Byte</text>
</g>
<!-- 0&#45;&gt;23 -->
<g id="edge23" class="edge">
<title>0&#45;&gt;23</title>
<path fill="none" stroke="black" d="M87.18,-296.76C95.05,-248.17 123.26,-114.59 203.19,-45 218.78,-31.43 240.73,-24.65 259.65,-21.27"/>
<polygon fill="black" stroke="black" points="260.08,-24.75 269.45,-19.81 259.04,-17.83 260.08,-24.75"/>
</g>
<!-- 2 -->
<!-- name: &quot;byte&quot;, typeName: &quot;&quot;, id: 2, branchId: 0, recurseId: &#45;1, attributes: 512, notes: &quot;&quot; -->
<g id="node3" class="node">
<title>2</title>
<ellipse fill="none" stroke="black" cx="500.72" cy="-612" rx="27" ry="18"/>
<text text-anchor="middle" x="500.72" y="-606.95" font-family="Times New Roman,serif" font-size="14.00">byte</text>
</g>
<!-- 1&#45;&gt;2 -->
<g id="edge2" class="edge">
<title>1&#45;&gt;2</title>
<path fill="none" stroke="black" d="M357.38,-612C390.93,-612 432.47,-612 462,-612"/>
<polygon fill="black" stroke="black" points="461.95,-615.5 471.95,-612 461.95,-608.5 461.95,-615.5"/>
</g>
<!-- 4 -->
<!-- name: &quot;byte&quot;, typeName: &quot;&quot;, id: 4, branchId: 0, recurseId: &#45;1, attributes: 512, notes: &quot;&quot; -->
<g id="node5" class="node">
<title>4</title>
<ellipse fill="none" stroke="black" cx="500.72" cy="-558" rx="27" ry="18"/>
<text text-anchor="middle" x="500.72" y="-552.95" font-family="Times New Roman,serif" font-size="14.00">byte</text>
</g>
<!-- 3&#45;&gt;4 -->
<g id="edge4" class="edge">
<title>3&#45;&gt;4</title>
<path fill="none" stroke="black" d="M329.11,-558C364.1,-558 423.52,-558 462.18,-558"/>
<polygon fill="black" stroke="black" points="461.95,-561.5 471.95,-558 461.95,-554.5 461.95,-561.5"/>
</g>
<!-- 6 -->
<!-- name: &quot;varint&quot;, typeName: &quot;&quot;, id: 6, branchId: 0, recurseId: &#45;1, attributes: 512, notes: &quot;&quot; -->
<g id="node7" class="node">
<title>6</title>
<ellipse fill="none" stroke="black" cx="500.72" cy="-504" rx="32.41" ry="18"/>
<text text-anchor="middle" x="500.72" y="-498.95" font-family="Times New Roman,serif" font-size="14.00">varint</text>
</g>
<!-- 5&#45;&gt;6 -->
<g id="edge6" class="edge">
<title>5&#45;&gt;6</title>
<path fill="none" stroke="black" d="M327.03,-504C360.08,-504 417.1,-504 456.53,-504"/>
<polygon fill="black" stroke="black" points="456.39,-507.5 466.39,-504 456.39,-500.5 456.39,-507.5"/>
</g>
<!-- 8 -->
<!-- name: &quot;varint&quot;, typeName: &quot;&quot;, id: 8, branchId: 0, recurseId: &#45;1, attributes: 512, notes: &quot;&quot; -->
<g id="node9" class="node">
<title>8</title>
<ellipse fill="none" stroke="black" cx="500.72" cy="-450" rx="32.41" ry="18"/>
<text text-anchor="middle" x="500.72" y="-444.95" font-family="Times New Roman,serif" font-size="14.00">varint</text>
</g>
<!-- 7&#45;&gt;8 -->
<g id="edge8" class="edge">
<title>7&#45;&gt;8</title>
<path fill="none" stroke="black" d="M352.9,-450C385.3,-450 426.37,-450 456.84,-450"/>
<polygon fill="black" stroke="black" points="456.44,-453.5 466.44,-450 456.44,-446.5 456.44,-453.5"/>
</g>
<!-- 10 -->
<!-- name: &quot;ActorUniqueID&quot;, typeName: &quot;&quot;, id: 10, branchId: 0, recurseId: &#45;1, attributes: 512, notes: &quot;&quot; -->
<g id="node11" class="node">
<title>10</title>
<ellipse fill="none" stroke="black" cx="500.72" cy="-396" rx="68.75" ry="18"/>
<text text-anchor="middle" x="500.72" y="-390.95" font-family="Times New Roman,serif" font-size="14.00">ActorUniqueID</text>
</g>
<!-- 9&#45;&gt;10 -->
<g id="edge10" class="edge">
<title>9&#45;&gt;10</title>
<path fill="none" stroke="black" d="M373.32,-396C388.61,-396 404.81,-396 420.33,-396"/>
<polygon fill="black" stroke="black" points="419.97,-399.5 429.97,-396 419.97,-392.5 419.97,-399.5"/>
</g>
<!-- 12 -->
<!-- name: &quot;ActorUniqueID&quot;, typeName: &quot;&quot;, id: 12, branchId: 0, recurseId: &#45;1, attributes: 512, notes: &quot;&quot; -->
<g id="node13" class="node">
<title>12</title>
<ellipse fill="none" stroke="black" cx="500.72" cy="-342" rx="68.75" ry="18"/>
<text text-anchor="middle" x="500.72" y="-336.95" font-family="Times New Roman,serif" font-size="14.00">ActorUniqueID</text>
</g>
<!-- 11&#45;&gt;12 -->
<g id="edge12" class="edge">
<title>11&#45;&gt;12</title>
<path fill="none" stroke="black" d="M384.17,-342C396.19,-342 408.53,-342 420.46,-342"/>
<polygon fill="black" stroke="black" points="420.24,-345.5 430.24,-342 420.24,-338.5 420.24,-345.5"/>
</g>
<!-- 14 -->
<!-- name: &quot;string&quot;, typeName: &quot;&quot;, id: 14, branchId: 0, recurseId: &#45;1, attributes: 512, notes: &quot;&quot; -->
<g id="node15" class="node">
<title>14</title>
<ellipse fill="none" stroke="black" cx="500.72" cy="-288" rx="31.9" ry="18"/>
<text text-anchor="middle" x="500.72" y="-282.95" font-family="Times New Roman,serif" font-size="14.00">string</text>
</g>
<!-- 13&#45;&gt;14 -->
<g id="edge14" class="edge">
<title>13&#45;&gt;14</title>
<path fill="none" stroke="black" d="M364.69,-288C394.9,-288 430.12,-288 457.01,-288"/>
<polygon fill="black" stroke="black" points="456.85,-291.5 466.85,-288 456.85,-284.5 456.85,-291.5"/>
</g>
<!-- 16 -->
<!-- name: &quot;bool&quot;, typeName: &quot;&quot;, id: 16, branchId: 0, recurseId: &#45;1, attributes: 512, notes: &quot;&quot; -->
<g id="node17" class="node">
<title>16</title>
<ellipse fill="none" stroke="black" cx="500.72" cy="-234" rx="27.3" ry="18"/>
<text text-anchor="middle" x="500.72" y="-228.95" font-family="Times New Roman,serif" font-size="14.00">bool</text>
</g>
<!-- 15&#45;&gt;16 -->
<g id="edge16" class="edge">
<title>15&#45;&gt;16</title>
<path fill="none" stroke="black" d="M396.36,-234C419.69,-234 443.29,-234 462.04,-234"/>
<polygon fill="black" stroke="black" points="461.81,-237.5 471.81,-234 461.81,-230.5 461.81,-237.5"/>
</g>
<!-- 18 -->
<!-- name: &quot;bool&quot;, typeName: &quot;&quot;, id: 18, branchId: 0, recurseId: &#45;1, attributes: 512, notes: &quot;&quot; -->
<g id="node19" class="node">
<title>18</title>
<ellipse fill="none" stroke="black" cx="500.72" cy="-180" rx="27.3" ry="18"/>
<text text-anchor="middle" x="500.72" y="-174.95" font-family="Times New Roman,serif" font-size="14.00">bool</text>
</g>
<!-- 17&#45;&gt;18 -->
<g id="edge18" class="edge">
<title>17&#45;&gt;18</title>
<path fill="none" stroke="black" d="M394.9,-180C418.6,-180 442.7,-180 461.8,-180"/>
<polygon fill="black" stroke="black" points="461.78,-183.5 471.78,-180 461.78,-176.5 461.78,-183.5"/>
</g>
<!-- 20 -->
<!-- name: &quot;byte&quot;, typeName: &quot;&quot;, id: 20, branchId: 0, recurseId: &#45;1, attributes: 512, notes: &quot;&quot; -->
<g id="node21" class="node">
<title>20</title>
<ellipse fill="none" stroke="black" cx="500.72" cy="-126" rx="27" ry="18"/>
<text text-anchor="middle" x="500.72" y="-120.95" font-family="Times New Roman,serif" font-size="14.00">byte</text>
</g>
<!-- 19&#45;&gt;20 -->
<g id="edge20" class="edge">
<title>19&#45;&gt;20</title>
<path fill="none" stroke="black" d="M328.27,-126C363.14,-126 423.19,-126 462.17,-126"/>
<polygon fill="black" stroke="black" points="462.02,-129.5 472.02,-126 462.02,-122.5 462.02,-129.5"/>
</g>
<!-- 22 -->
<!-- name: &quot;string&quot;, typeName: &quot;&quot;, id: 22, branchId: 0, recurseId: &#45;1, attributes: 512, notes: &quot;&quot; -->
<g id="node23" class="node">
<title>22</title>
<ellipse fill="none" stroke="black" cx="500.72" cy="-72" rx="31.9" ry="18"/>
<text text-anchor="middle" x="500.72" y="-66.95" font-family="Times New Roman,serif" font-size="14.00">string</text>
</g>
<!-- 21&#45;&gt;22 -->
<g id="edge22" class="edge">
<title>21&#45;&gt;22</title>
<path fill="none" stroke="black" d="M333.47,-72C367.26,-72 420.02,-72 457.02,-72"/>
<polygon fill="black" stroke="black" points="456.92,-75.5 466.92,-72 456.92,-68.5 456.92,-75.5"/>
</g>
<!-- 24 -->
<!-- name: &quot;byte&quot;, typeName: &quot;&quot;, id: 24, branchId: 0, recurseId: &#45;1, attributes: 512, notes: &quot;&quot; -->
<g id="node25" class="node">
<title>24</title>
<ellipse fill="none" stroke="black" cx="500.72" cy="-18" rx="27" ry="18"/>
<text text-anchor="middle" x="500.72" y="-12.95" font-family="Times New Roman,serif" font-size="14.00">byte</text>
</g>
<!-- 23&#45;&gt;24 -->
<g id="edge24" class="edge">
<title>23&#45;&gt;24</title>
<path fill="none" stroke="black" d="M328.27,-18C363.14,-18 423.19,-18 462.17,-18"/>
<polygon fill="black" stroke="black" points="462.02,-21.5 472.02,-18 462.02,-14.5 462.02,-21.5"/>
</g>
</g>
</svg>