mirror of
https://github.com/Mojang/bedrock-protocol-docs.git
synced 2025-07-17 12:14:57 +00:00
309 lines
17 KiB
XML
309 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: InventoryTransactionPacket Pages: 1 -->
|
|
<svg width="1940pt" height="422pt"
|
|
viewBox="0.00 0.00 1939.63 422.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 418)">
|
|
<title>InventoryTransactionPacket</title>
|
|
<polygon fill="white" stroke="none" points="-4,4 -4,-418 1935.63,-418 1935.63,4 -4,4"/>
|
|
<!-- 0 -->
|
|
<!-- name: "InventoryTransactionPacket", typeName: "", id: 0, branchId: 30, recurseId: -1, attributes: 0, notes: "" -->
|
|
<g id="node1" class="node">
|
|
<title>0</title>
|
|
<ellipse fill="none" stroke="black" cx="114.82" cy="-180" rx="114.82" ry="18"/>
|
|
<text text-anchor="middle" x="114.82" y="-174.95" font-family="Times New Roman,serif" font-size="14.00">InventoryTransactionPacket</text>
|
|
</g>
|
|
<!-- 1 -->
|
|
<!-- name: "Raw Id (32 bit signed)", typeName: "", id: 1, branchId: 0, recurseId: -1, attributes: 0, notes: "" -->
|
|
<g id="node2" class="node">
|
|
<title>1</title>
|
|
<ellipse fill="none" stroke="black" cx="882.24" cy="-392" rx="94.86" ry="18"/>
|
|
<text text-anchor="middle" x="882.24" y="-386.95" font-family="Times New Roman,serif" font-size="14.00">Raw Id (32 bit signed)</text>
|
|
</g>
|
|
<!-- 0->1 -->
|
|
<g id="edge1" class="edge">
|
|
<title>0->1</title>
|
|
<path fill="none" stroke="black" d="M138.28,-197.86C166.42,-219.35 216.9,-255.03 265.63,-275 438.05,-345.64 655.32,-374.13 780.25,-385.25"/>
|
|
<polygon fill="black" stroke="black" points="779.9,-388.73 790.16,-386.11 780.5,-381.76 779.9,-388.73"/>
|
|
</g>
|
|
<!-- 3 -->
|
|
<!-- name: "Dependency on 'Above ID (the legacy request ID) nonzero'", typeName: "", id: 3, branchId: 0, recurseId: -1, attributes: 2, notes: "" -->
|
|
<g id="node4" class="node">
|
|
<title>3</title>
|
|
<polygon fill="none" stroke="black" points="598.88,-266 265.63,-266 265.63,-230 604.88,-230 604.88,-260 598.88,-266"/>
|
|
<polyline fill="none" stroke="black" points="598.88,-266 598.88,-260"/>
|
|
<polyline fill="none" stroke="black" points="604.88,-260 598.88,-260"/>
|
|
<text text-anchor="middle" x="435.26" y="-242.95" font-family="Times New Roman,serif" font-size="14.00">Dependency on 'Above ID (the legacy request ID) nonzero'</text>
|
|
</g>
|
|
<!-- 0->3 -->
|
|
<g id="edge3" class="edge">
|
|
<title>0->3</title>
|
|
<path fill="none" stroke="black" d="M184.52,-194.67C228.97,-204.16 287.51,-216.66 336.75,-227.18"/>
|
|
<polygon fill="black" stroke="black" points="335.76,-230.55 346.27,-229.21 337.22,-223.7 335.76,-230.55"/>
|
|
</g>
|
|
<!-- 19 -->
|
|
<!-- name: "Transaction Type", typeName: "", id: 19, branchId: 0, recurseId: -1, attributes: 0, notes: "" -->
|
|
<g id="node20" class="node">
|
|
<title>19</title>
|
|
<ellipse fill="none" stroke="black" cx="1640.24" cy="-72" rx="74.89" ry="18"/>
|
|
<text text-anchor="middle" x="1640.24" y="-66.95" font-family="Times New Roman,serif" font-size="14.00">Transaction Type</text>
|
|
</g>
|
|
<!-- 0->19 -->
|
|
<g id="edge19" class="edge">
|
|
<title>0->19</title>
|
|
<path fill="none" stroke="black" d="M169.55,-163.75C271.17,-134.5 498.94,-76 695.13,-76 695.13,-76 695.13,-76 1272.22,-76 1368.74,-76 1479.53,-74.6 1553.92,-73.46"/>
|
|
<polygon fill="black" stroke="black" points="1553.62,-76.96 1563.56,-73.31 1553.51,-69.96 1553.62,-76.96"/>
|
|
</g>
|
|
<!-- 21 -->
|
|
<!-- name: "mTransaction->mTransaction", typeName: "InventoryTransaction", id: 21, branchId: 0, recurseId: -1, attributes: 256, notes: "Our ComplexInventoryTransaction contains an InventoryTransaction within it" -->
|
|
<g id="node22" class="node">
|
|
<title>21</title>
|
|
<ellipse fill="none" stroke="black" cx="435.26" cy="-22" rx="121.98" ry="18"/>
|
|
<text text-anchor="middle" x="435.26" y="-16.95" font-family="Times New Roman,serif" font-size="14.00">mTransaction->mTransaction</text>
|
|
</g>
|
|
<!-- 0->21 -->
|
|
<g id="edge21" class="edge">
|
|
<title>0->21</title>
|
|
<path fill="none" stroke="black" d="M133.4,-161.83C159.7,-135.73 211.97,-87.92 265.63,-62 287.83,-51.27 313.1,-43.32 337.19,-37.45"/>
|
|
<polygon fill="black" stroke="black" points="337.74,-40.92 346.69,-35.25 336.16,-34.1 337.74,-40.92"/>
|
|
</g>
|
|
<!-- 2 -->
|
|
<!-- name: "varint", typeName: "", id: 2, branchId: 0, recurseId: -1, attributes: 512, notes: "" -->
|
|
<g id="node3" class="node">
|
|
<title>2</title>
|
|
<ellipse fill="none" stroke="black" cx="1841.38" cy="-396" rx="32.41" ry="18"/>
|
|
<text text-anchor="middle" x="1841.38" y="-390.95" font-family="Times New Roman,serif" font-size="14.00">varint</text>
|
|
</g>
|
|
<!-- 1->2 -->
|
|
<g id="edge2" class="edge">
|
|
<title>1->2</title>
|
|
<path fill="none" stroke="black" d="M977.07,-393.51C1055.44,-394.64 1170.11,-396 1270.22,-396 1270.22,-396 1270.22,-396 1455.45,-396 1579.84,-396 1726.85,-396 1797.82,-396"/>
|
|
<polygon fill="black" stroke="black" points="1797.43,-399.5 1807.43,-396 1797.43,-392.5 1797.43,-399.5"/>
|
|
</g>
|
|
<!-- 4 -->
|
|
<!-- name: "If False", typeName: "", id: 4, branchId: 0, recurseId: -1, attributes: 4, notes: "" -->
|
|
<g id="node5" class="node">
|
|
<title>4</title>
|
|
<polygon fill="none" stroke="black" points="696.13,-347 640.88,-329 696.13,-311 751.38,-329 696.13,-347"/>
|
|
<text text-anchor="middle" x="696.13" y="-323.95" font-family="Times New Roman,serif" font-size="14.00">If False</text>
|
|
</g>
|
|
<!-- 3->4 -->
|
|
<g id="edge4" class="edge">
|
|
<title>3->4</title>
|
|
<path fill="none" stroke="black" d="M495.32,-266.48C544.64,-281.91 613.53,-303.47 656.19,-316.81"/>
|
|
<polygon fill="black" stroke="black" points="654.93,-320.09 665.52,-319.73 657.02,-313.41 654.93,-320.09"/>
|
|
</g>
|
|
<!-- 6 -->
|
|
<!-- name: "If True", typeName: "", id: 6, branchId: 1, recurseId: -1, attributes: 4, notes: "" -->
|
|
<g id="node7" class="node">
|
|
<title>6</title>
|
|
<polygon fill="none" stroke="black" points="696.13,-266 644.5,-248 696.13,-230 747.76,-248 696.13,-266"/>
|
|
<text text-anchor="middle" x="696.13" y="-242.95" font-family="Times New Roman,serif" font-size="14.00">If True</text>
|
|
</g>
|
|
<!-- 3->6 -->
|
|
<g id="edge6" class="edge">
|
|
<title>3->6</title>
|
|
<path fill="none" stroke="black" d="M605.32,-248C614.45,-248 623.28,-248 631.62,-248"/>
|
|
<polygon fill="black" stroke="black" points="631.55,-251.5 641.55,-248 631.55,-244.5 631.55,-251.5"/>
|
|
</g>
|
|
<!-- 5 -->
|
|
<!-- name: "[No Data]", typeName: "", id: 5, branchId: 0, recurseId: -1, attributes: 512, notes: "" -->
|
|
<g id="node6" class="node">
|
|
<title>5</title>
|
|
<ellipse fill="none" stroke="black" cx="1841.38" cy="-342" rx="48.28" ry="18"/>
|
|
<text text-anchor="middle" x="1841.38" y="-336.95" font-family="Times New Roman,serif" font-size="14.00">[No Data]</text>
|
|
</g>
|
|
<!-- 4->5 -->
|
|
<g id="edge5" class="edge">
|
|
<title>4->5</title>
|
|
<path fill="none" stroke="black" d="M744.83,-331.62C818.29,-335.41 963.57,-342 1086.99,-342 1086.99,-342 1086.99,-342 1455.45,-342 1570.98,-342 1706.01,-342 1781.52,-342"/>
|
|
<polygon fill="black" stroke="black" points="1781.16,-345.5 1791.16,-342 1781.16,-338.5 1781.16,-345.5"/>
|
|
</g>
|
|
<!-- 7 -->
|
|
<!-- name: "Legacy Set Item Slots", typeName: "", id: 7, branchId: 0, recurseId: -1, attributes: 8, notes: "Only matters when ItemStackNetManager is enabled" -->
|
|
<g id="node8" class="node">
|
|
<title>7</title>
|
|
<ellipse fill="none" stroke="black" cx="882.24" cy="-248" rx="93.32" ry="18"/>
|
|
<text text-anchor="middle" x="882.24" y="-242.95" font-family="Times New Roman,serif" font-size="14.00">Legacy Set Item Slots</text>
|
|
</g>
|
|
<!-- 6->7 -->
|
|
<g id="edge7" class="edge">
|
|
<title>6->7</title>
|
|
<path fill="none" stroke="black" d="M748.91,-248C757.85,-248 767.42,-248 777.18,-248"/>
|
|
<polygon fill="black" stroke="black" points="777.18,-251.5 787.18,-248 777.18,-244.5 777.18,-251.5"/>
|
|
</g>
|
|
<!-- 8 -->
|
|
<!-- name: "List Size", typeName: "", id: 8, branchId: 0, recurseId: -1, attributes: 0, notes: "" -->
|
|
<g id="node9" class="node">
|
|
<title>8</title>
|
|
<ellipse fill="none" stroke="black" cx="1087.99" cy="-288" rx="43.67" ry="18"/>
|
|
<text text-anchor="middle" x="1087.99" y="-282.95" font-family="Times New Roman,serif" font-size="14.00">List Size</text>
|
|
</g>
|
|
<!-- 7->8 -->
|
|
<g id="edge8" class="edge">
|
|
<title>7->8</title>
|
|
<path fill="none" stroke="black" d="M949.11,-260.93C977.57,-266.52 1010.33,-272.95 1036.77,-278.14"/>
|
|
<polygon fill="black" stroke="black" points="1036.09,-281.58 1046.58,-280.07 1037.44,-274.71 1036.09,-281.58"/>
|
|
</g>
|
|
<!-- 10 -->
|
|
<!-- name: "example element", typeName: "", id: 10, branchId: 0, recurseId: -1, attributes: 16, notes: "" -->
|
|
<g id="node11" class="node">
|
|
<title>10</title>
|
|
<ellipse fill="none" stroke="black" stroke-dasharray="1,5" cx="1087.99" cy="-234" rx="74.89" ry="18"/>
|
|
<text text-anchor="middle" x="1087.99" y="-228.95" font-family="Times New Roman,serif" font-size="14.00">example element</text>
|
|
</g>
|
|
<!-- 7->10 -->
|
|
<g id="edge10" class="edge">
|
|
<title>7->10</title>
|
|
<path fill="none" stroke="black" d="M970.83,-241.98C981.88,-241.22 993.15,-240.45 1004.12,-239.69"/>
|
|
<polygon fill="black" stroke="black" points="1004.17,-243.2 1013.91,-239.02 1003.69,-236.22 1004.17,-243.2"/>
|
|
</g>
|
|
<!-- 9 -->
|
|
<!-- name: "unsigned varint", typeName: "", id: 9, branchId: 0, recurseId: -1, attributes: 512, notes: "" -->
|
|
<g id="node10" class="node">
|
|
<title>9</title>
|
|
<ellipse fill="none" stroke="black" cx="1841.38" cy="-288" rx="68.24" ry="18"/>
|
|
<text text-anchor="middle" x="1841.38" y="-282.95" font-family="Times New Roman,serif" font-size="14.00">unsigned varint</text>
|
|
</g>
|
|
<!-- 8->9 -->
|
|
<g id="edge9" class="edge">
|
|
<title>8->9</title>
|
|
<path fill="none" stroke="black" d="M1132.08,-288C1254.15,-288 1603.6,-288 1761.38,-288"/>
|
|
<polygon fill="black" stroke="black" points="1761.35,-291.5 1771.34,-288 1761.34,-284.5 1761.35,-291.5"/>
|
|
</g>
|
|
<!-- 11 -->
|
|
<!-- name: "Container Enum", typeName: "", id: 11, branchId: 0, recurseId: -1, attributes: 0, notes: "" -->
|
|
<g id="node12" class="node">
|
|
<title>11</title>
|
|
<ellipse fill="none" stroke="black" cx="1271.22" cy="-234" rx="72.34" ry="18"/>
|
|
<text text-anchor="middle" x="1271.22" y="-228.95" font-family="Times New Roman,serif" font-size="14.00">Container Enum</text>
|
|
</g>
|
|
<!-- 10->11 -->
|
|
<g id="edge11" class="edge">
|
|
<title>10->11</title>
|
|
<path fill="none" stroke="black" d="M1163.22,-234C1171.04,-234 1179.02,-234 1186.93,-234"/>
|
|
<polygon fill="black" stroke="black" points="1186.92,-237.5 1196.92,-234 1186.92,-230.5 1186.92,-237.5"/>
|
|
</g>
|
|
<!-- 13 -->
|
|
<!-- name: "Slot vector", typeName: "", id: 13, branchId: 0, recurseId: -1, attributes: 8, notes: "" -->
|
|
<g id="node14" class="node">
|
|
<title>13</title>
|
|
<ellipse fill="none" stroke="black" cx="1271.22" cy="-180" rx="51.35" ry="18"/>
|
|
<text text-anchor="middle" x="1271.22" y="-174.95" font-family="Times New Roman,serif" font-size="14.00">Slot vector</text>
|
|
</g>
|
|
<!-- 10->13 -->
|
|
<g id="edge13" class="edge">
|
|
<title>10->13</title>
|
|
<path fill="none" stroke="black" d="M1136.13,-219.95C1162.01,-212.24 1194.09,-202.68 1220.38,-194.85"/>
|
|
<polygon fill="black" stroke="black" points="1221.22,-198.25 1229.81,-192.04 1219.22,-191.54 1221.22,-198.25"/>
|
|
</g>
|
|
<!-- 12 -->
|
|
<!-- name: "byte", typeName: "", id: 12, branchId: 0, recurseId: -1, attributes: 512, notes: "" -->
|
|
<g id="node13" class="node">
|
|
<title>12</title>
|
|
<ellipse fill="none" stroke="black" cx="1841.38" cy="-234" rx="27" ry="18"/>
|
|
<text text-anchor="middle" x="1841.38" y="-228.95" font-family="Times New Roman,serif" font-size="14.00">byte</text>
|
|
</g>
|
|
<!-- 11->12 -->
|
|
<g id="edge12" class="edge">
|
|
<title>11->12</title>
|
|
<path fill="none" stroke="black" d="M1343.89,-234C1465.78,-234 1709.32,-234 1802.72,-234"/>
|
|
<polygon fill="black" stroke="black" points="1802.6,-237.5 1812.6,-234 1802.6,-230.5 1802.6,-237.5"/>
|
|
</g>
|
|
<!-- 14 -->
|
|
<!-- name: "List Size", typeName: "", id: 14, branchId: 0, recurseId: -1, attributes: 0, notes: "" -->
|
|
<g id="node15" class="node">
|
|
<title>14</title>
|
|
<ellipse fill="none" stroke="black" cx="1454.45" cy="-180" rx="43.67" ry="18"/>
|
|
<text text-anchor="middle" x="1454.45" y="-174.95" font-family="Times New Roman,serif" font-size="14.00">List Size</text>
|
|
</g>
|
|
<!-- 13->14 -->
|
|
<g id="edge14" class="edge">
|
|
<title>13->14</title>
|
|
<path fill="none" stroke="black" d="M1322.7,-180C1346.37,-180 1374.62,-180 1398.8,-180"/>
|
|
<polygon fill="black" stroke="black" points="1398.79,-183.5 1408.79,-180 1398.79,-176.5 1398.79,-183.5"/>
|
|
</g>
|
|
<!-- 16 -->
|
|
<!-- name: "example element", typeName: "", id: 16, branchId: 0, recurseId: -1, attributes: 16, notes: "" -->
|
|
<g id="node17" class="node">
|
|
<title>16</title>
|
|
<ellipse fill="none" stroke="black" stroke-dasharray="1,5" cx="1454.45" cy="-126" rx="74.89" ry="18"/>
|
|
<text text-anchor="middle" x="1454.45" y="-120.95" font-family="Times New Roman,serif" font-size="14.00">example element</text>
|
|
</g>
|
|
<!-- 13->16 -->
|
|
<g id="edge16" class="edge">
|
|
<title>13->16</title>
|
|
<path fill="none" stroke="black" d="M1311.1,-168.42C1335.61,-161.11 1367.72,-151.54 1395.24,-143.34"/>
|
|
<polygon fill="black" stroke="black" points="1395.9,-146.8 1404.48,-140.59 1393.9,-140.09 1395.9,-146.8"/>
|
|
</g>
|
|
<!-- 15 -->
|
|
<!-- name: "unsigned varint", typeName: "", id: 15, branchId: 0, recurseId: -1, attributes: 512, notes: "" -->
|
|
<g id="node16" class="node">
|
|
<title>15</title>
|
|
<ellipse fill="none" stroke="black" cx="1841.38" cy="-180" rx="68.24" ry="18"/>
|
|
<text text-anchor="middle" x="1841.38" y="-174.95" font-family="Times New Roman,serif" font-size="14.00">unsigned varint</text>
|
|
</g>
|
|
<!-- 14->15 -->
|
|
<g id="edge15" class="edge">
|
|
<title>14->15</title>
|
|
<path fill="none" stroke="black" d="M1498.48,-180C1561.97,-180 1681.77,-180 1761.35,-180"/>
|
|
<polygon fill="black" stroke="black" points="1761.27,-183.5 1771.27,-180 1761.27,-176.5 1761.27,-183.5"/>
|
|
</g>
|
|
<!-- 17 -->
|
|
<!-- name: "Slot", typeName: "", id: 17, branchId: 0, recurseId: -1, attributes: 0, notes: "" -->
|
|
<g id="node18" class="node">
|
|
<title>17</title>
|
|
<ellipse fill="none" stroke="black" cx="1640.24" cy="-126" rx="27" ry="18"/>
|
|
<text text-anchor="middle" x="1640.24" y="-120.95" font-family="Times New Roman,serif" font-size="14.00">Slot</text>
|
|
</g>
|
|
<!-- 16->17 -->
|
|
<g id="edge17" class="edge">
|
|
<title>16->17</title>
|
|
<path fill="none" stroke="black" d="M1529.67,-126C1554.32,-126 1580.74,-126 1601.45,-126"/>
|
|
<polygon fill="black" stroke="black" points="1601.42,-129.5 1611.42,-126 1601.42,-122.5 1601.42,-129.5"/>
|
|
</g>
|
|
<!-- 18 -->
|
|
<!-- name: "byte", typeName: "", id: 18, branchId: 0, recurseId: -1, attributes: 512, notes: "" -->
|
|
<g id="node19" class="node">
|
|
<title>18</title>
|
|
<ellipse fill="none" stroke="black" cx="1841.38" cy="-126" rx="27" ry="18"/>
|
|
<text text-anchor="middle" x="1841.38" y="-120.95" font-family="Times New Roman,serif" font-size="14.00">byte</text>
|
|
</g>
|
|
<!-- 17->18 -->
|
|
<g id="edge18" class="edge">
|
|
<title>17->18</title>
|
|
<path fill="none" stroke="black" d="M1667.68,-126C1702.3,-126 1763.19,-126 1802.64,-126"/>
|
|
<polygon fill="black" stroke="black" points="1802.63,-129.5 1812.63,-126 1802.63,-122.5 1802.63,-129.5"/>
|
|
</g>
|
|
<!-- 20 -->
|
|
<!-- name: "unsigned varint", typeName: "", id: 20, branchId: 0, recurseId: -1, attributes: 512, notes: "" -->
|
|
<g id="node21" class="node">
|
|
<title>20</title>
|
|
<ellipse fill="none" stroke="black" cx="1841.38" cy="-72" rx="68.24" ry="18"/>
|
|
<text text-anchor="middle" x="1841.38" y="-66.95" font-family="Times New Roman,serif" font-size="14.00">unsigned varint</text>
|
|
</g>
|
|
<!-- 19->20 -->
|
|
<g id="edge20" class="edge">
|
|
<title>19->20</title>
|
|
<path fill="none" stroke="black" d="M1715.39,-72C1730.37,-72 1746.17,-72 1761.32,-72"/>
|
|
<polygon fill="black" stroke="black" points="1761.23,-75.5 1771.23,-72 1761.23,-68.5 1761.23,-75.5"/>
|
|
</g>
|
|
<!-- 57 -->
|
|
<!-- name: "InventoryTransaction", typeName: "", id: 57, branchId: 0, recurseId: -1, attributes: 512, notes: "" -->
|
|
<g id="node23" class="node">
|
|
<title>57</title>
|
|
<ellipse fill="none" stroke="black" cx="1841.38" cy="-18" rx="90.25" ry="18"/>
|
|
<text text-anchor="middle" x="1841.38" y="-12.95" font-family="Times New Roman,serif" font-size="14.00">InventoryTransaction</text>
|
|
</g>
|
|
<!-- 21->57 -->
|
|
<g id="edge22" class="edge">
|
|
<title>21->57</title>
|
|
<path fill="none" stroke="black" d="M557.13,-20.33C646.62,-19.23 771.53,-18 881.24,-18 881.24,-18 881.24,-18 1455.45,-18 1551.95,-18 1662.05,-18 1739.72,-18"/>
|
|
<polygon fill="black" stroke="black" points="1739.42,-21.5 1749.42,-18 1739.42,-14.5 1739.42,-21.5"/>
|
|
</g>
|
|
</g>
|
|
</svg>
|