PackedItemUseLegacyInventoryTransaction¶
文档版本:r/21_u4
协议版本:748
PackedItemUseLegacyInventoryTransaction类型。该类型用于protocol.type.packeditemuselegacyinventorytransaction.description
结构¶
digraph "PackedItemUseLegacyInventoryTransaction" {
rankdir = LR
28
28 -> 29
29 -> 33
28 -> 34
34 -> 35
35 -> 36
34 -> 37
37 -> 38
38 -> 39
39 -> 40
38 -> 41
41 -> 42
42 -> 43
41 -> 44
44 -> 45
45 -> 46
44 -> 47
47 -> 48
48 -> 49
28 -> 50
50 -> 51
51 -> 52
50 -> 53
53 -> 54
54 -> 55
28 -> 56
56 -> 57
28 -> 58
58 -> 59
28 -> 60
60 -> 61
28 -> 62
62 -> 63
28 -> 64
64 -> 65
28 -> 66
66 -> 67
28 -> 68
68 -> 69
28 -> 70
70 -> 71
28 -> 72
72 -> 73
28 -> 74
74 -> 75
28 [label="PackedItemUseLegacyInventoryTransaction",comment="name: \"PackedItemUseLegacyInventoryTransaction\", typeName: \"\", id: 28, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
29 [label="ID",comment="name: \"ID\", typeName: \"TypedClientNetId<struct ItemStackLegacyRequestIdTag,int,0>\", id: 29, branchId: 0, recurseId: -1, attributes: 256, notes: \"\""];
33 [label="TypedClientNetId<struct ItemStackLegacyRequestIdTag,int,0>",comment="name: \"TypedClientNetId<struct ItemStackLegacyRequestIdTag,int,0>\", typeName: \"\", id: 33, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
34 [label="Dependency on 'valid ID'",shape=note,comment="name: \"Dependency on 'valid ID'\", typeName: \"\", id: 34, branchId: 0, recurseId: -1, attributes: 2, notes: \"\""];
35 [label="if (0)",shape=diamond,comment="name: \"if (0)\", typeName: \"\", id: 35, branchId: 0, recurseId: -1, attributes: 4, notes: \"\""];
36 [label="[No Data]",comment="name: \"[No Data]\", typeName: \"\", id: 36, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
37 [label="if (1)",shape=diamond,comment="name: \"if (1)\", typeName: \"\", id: 37, branchId: 1, recurseId: -1, attributes: 4, notes: \"\""];
38 [label="Container Slots",comment="name: \"Container Slots\", typeName: \"\", id: 38, branchId: 0, recurseId: -1, attributes: 8, notes: \"\""];
39 [label="Array Size",comment="name: \"Array Size\", typeName: \"\", id: 39, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
40 [label="unsigned varint",comment="name: \"unsigned varint\", typeName: \"\", id: 40, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
41 [label="example element",style=dotted,comment="name: \"example element\", typeName: \"\", id: 41, branchId: 0, recurseId: -1, attributes: 16, notes: \"\""];
42 [label="Container Enum Name",comment="name: \"Container Enum Name\", typeName: \"\", id: 42, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
43 [label="byte",comment="name: \"byte\", typeName: \"\", id: 43, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
44 [label="Slots",comment="name: \"Slots\", typeName: \"\", id: 44, branchId: 0, recurseId: -1, attributes: 8, notes: \"\""];
45 [label="Array Size",comment="name: \"Array Size\", typeName: \"\", id: 45, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
46 [label="unsigned varint",comment="name: \"unsigned varint\", typeName: \"\", id: 46, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
47 [label="example element",style=dotted,comment="name: \"example element\", typeName: \"\", id: 47, branchId: 0, recurseId: -1, attributes: 16, notes: \"\""];
48 [label="Slot",comment="name: \"Slot\", typeName: \"\", id: 48, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
49 [label="byte",comment="name: \"byte\", typeName: \"\", id: 49, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
50 [label="Actions",comment="name: \"Actions\", typeName: \"\", id: 50, branchId: 0, recurseId: -1, attributes: 8, notes: \"\""];
51 [label="Array Size",comment="name: \"Array Size\", typeName: \"\", id: 51, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
52 [label="unsigned varint",comment="name: \"unsigned varint\", typeName: \"\", id: 52, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
53 [label="example element",style=dotted,comment="name: \"example element\", typeName: \"\", id: 53, branchId: 0, recurseId: -1, attributes: 16, notes: \"\""];
54 [label="Action",comment="name: \"Action\", typeName: \"InventoryAction\", id: 54, branchId: 0, recurseId: -1, attributes: 256, notes: \"\""];
55 [label="InventoryAction",comment="name: \"InventoryAction\", typeName: \"\", id: 55, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
56 [label="Action Type",comment="name: \"Action Type\", typeName: \"\", id: 56, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
57 [label="unsigned varint",comment="name: \"unsigned varint\", typeName: \"\", id: 57, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
58 [label="Trigger Type",comment="name: \"Trigger Type\", typeName: \"\", id: 58, branchId: 0, recurseId: -1, attributes: 0, notes: \"PlayerInput if it's a direct result from a player's initial button input, SimulationTick if the player is holding down the input button started from a previous tick.\""];
59 [label="unsigned varint",comment="name: \"unsigned varint\", typeName: \"\", id: 59, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
60 [label="Position",comment="name: \"Position\", typeName: \"NetworkBlockPosition\", id: 60, branchId: 0, recurseId: -1, attributes: 256, notes: \"\""];
61 [label="NetworkBlockPosition",comment="name: \"NetworkBlockPosition\", typeName: \"\", id: 61, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
62 [label="Face",comment="name: \"Face\", typeName: \"\", id: 62, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
63 [label="varint",comment="name: \"varint\", typeName: \"\", id: 63, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
64 [label="Slot",comment="name: \"Slot\", typeName: \"\", id: 64, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
65 [label="varint",comment="name: \"varint\", typeName: \"\", id: 65, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
66 [label="Item",comment="name: \"Item\", typeName: \"NetworkItemStackDescriptor\", id: 66, branchId: 0, recurseId: -1, attributes: 256, notes: \"\""];
67 [label="NetworkItemStackDescriptor",comment="name: \"NetworkItemStackDescriptor\", typeName: \"\", id: 67, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
68 [label="From Position",comment="name: \"From Position\", typeName: \"Vec3\", id: 68, branchId: 0, recurseId: -1, attributes: 256, notes: \"Where the player thinks they are when sending this\""];
69 [label="Vec3",comment="name: \"Vec3\", typeName: \"\", id: 69, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
70 [label="Click Position",comment="name: \"Click Position\", typeName: \"Vec3\", id: 70, branchId: 0, recurseId: -1, attributes: 256, notes: \"\""];
71 [label="Vec3",comment="name: \"Vec3\", typeName: \"\", id: 71, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
72 [label="Target Block Id",comment="name: \"Target Block Id\", typeName: \"\", id: 72, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
73 [label="unsigned varint",comment="name: \"unsigned varint\", typeName: \"\", id: 73, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
74 [label="Client Interact Prediction",comment="name: \"Client Interact Prediction\", typeName: \"\", id: 74, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
75 [label="byte",comment="name: \"byte\", typeName: \"\", id: 75, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
{ rank = max;33;36;40;43;46;49;52;55;57;59;61;63;65;67;69;71;73;75}
}
字段¶
PackedItemUseLegacyInventoryTransaction
[id][dependency_on_valid_id][actions][action_type][trigger_type][position][face][slot][item][from_position][click_position][target_block_id][client_interact_prediction]
- ID:TypedClientNetId<struct ItemStackLegacyRequestIdTag,int,0>
- 特殊类型。protocol.type.packeditemuselegacyinventorytransaction.id.description
依赖于
valid ID
- if (0):[No Data]
- 无数据
- 数组大小:unsigned varint
- 基本类型。protocol.type.packeditemuselegacyinventorytransaction.dependency_on_valid_id.if_1.container_slots.array_size.description
- Container Enum Name:byte
- 基本类型枚举。protocol.type.packeditemuselegacyinventorytransaction.dependency_on_valid_id.if_1.container_slots.example_element.container_enum_name.description枚举值如下:
-
键 值 描述 AnvilInputContainer0protocol.enum.anvilinputcontainer AnvilMaterialContainer1protocol.enum.anvilmaterialcontainer AnvilResultPreviewContainer2protocol.enum.anvilresultpreviewcontainer SmithingTableInputContainer3protocol.enum.smithingtableinputcontainer SmithingTableMaterialContainer4protocol.enum.smithingtablematerialcontainer SmithingTableResultPreviewContainer5protocol.enum.smithingtableresultpreviewcontainer ArmorContainer6protocol.enum.armorcontainer LevelEntityContainer7protocol.enum.levelentitycontainer BeaconPaymentContainer8protocol.enum.beaconpaymentcontainer BrewingStandInputContainer9protocol.enum.brewingstandinputcontainer BrewingStandResultContainer10protocol.enum.brewingstandresultcontainer BrewingStandFuelContainer11protocol.enum.brewingstandfuelcontainer CombinedHotbarAndInventoryContainer12protocol.enum.combinedhotbarandinventorycontainer CraftingInputContainer13protocol.enum.craftinginputcontainer CraftingOutputPreviewContainer14protocol.enum.craftingoutputpreviewcontainer RecipeConstructionContainer15protocol.enum.recipeconstructioncontainer RecipeNatureContainer16protocol.enum.recipenaturecontainer RecipeItemsContainer17protocol.enum.recipeitemscontainer RecipeSearchContainer18protocol.enum.recipesearchcontainer RecipeSearchBarContainer19protocol.enum.recipesearchbarcontainer RecipeEquipmentContainer20protocol.enum.recipeequipmentcontainer RecipeBookContainer21protocol.enum.recipebookcontainer EnchantingInputContainer22protocol.enum.enchantinginputcontainer EnchantingMaterialContainer23protocol.enum.enchantingmaterialcontainer FurnaceFuelContainer24protocol.enum.furnacefuelcontainer FurnaceIngredientContainer25protocol.enum.furnaceingredientcontainer FurnaceResultContainer26protocol.enum.furnaceresultcontainer HorseEquipContainer27protocol.enum.horseequipcontainer HotbarContainer28protocol.enum.hotbarcontainer InventoryContainer29protocol.enum.inventorycontainer ShulkerBoxContainer30protocol.enum.shulkerboxcontainer TradeIngredient1Container31protocol.enum.tradeingredient1container TradeIngredient2Container32protocol.enum.tradeingredient2container TradeResultPreviewContainer33protocol.enum.traderesultpreviewcontainer OffhandContainer34protocol.enum.offhandcontainer CompoundCreatorInput35protocol.enum.compoundcreatorinput CompoundCreatorOutputPreview36protocol.enum.compoundcreatoroutputpreview ElementConstructorOutputPreview37protocol.enum.elementconstructoroutputpreview MaterialReducerInput38protocol.enum.materialreducerinput MaterialReducerOutput39protocol.enum.materialreduceroutput LabTableInput40protocol.enum.labtableinput LoomInputContainer41protocol.enum.loominputcontainer LoomDyeContainer42protocol.enum.loomdyecontainer LoomMaterialContainer43protocol.enum.loommaterialcontainer LoomResultPreviewContainer44protocol.enum.loomresultpreviewcontainer BlastFurnaceIngredientContainer45protocol.enum.blastfurnaceingredientcontainer SmokerIngredientContainer46protocol.enum.smokeringredientcontainer Trade2Ingredient1Container47protocol.enum.trade2ingredient1container Trade2Ingredient2Container48protocol.enum.trade2ingredient2container Trade2ResultPreviewContainer49protocol.enum.trade2resultpreviewcontainer GrindstoneInputContainer50protocol.enum.grindstoneinputcontainer GrindstoneAdditionalContainer51protocol.enum.grindstoneadditionalcontainer GrindstoneResultPreviewContainer52protocol.enum.grindstoneresultpreviewcontainer StonecutterInputContainer53protocol.enum.stonecutterinputcontainer StonecutterResultPreviewContainer54protocol.enum.stonecutterresultpreviewcontainer CartographyInputContainer55protocol.enum.cartographyinputcontainer CartographyAdditionalContainer56protocol.enum.cartographyadditionalcontainer CartographyResultPreviewContainer57protocol.enum.cartographyresultpreviewcontainer BarrelContainer58protocol.enum.barrelcontainer CursorContainer59protocol.enum.cursorcontainer CreatedOutputContainer60protocol.enum.createdoutputcontainer SmithingTableTemplateContainer61protocol.enum.smithingtabletemplatecontainer CrafterLevelEntityContainer62protocol.enum.crafterlevelentitycontainer DynamicContainer63protocol.enum.dynamiccontainer
- 数组大小:unsigned varint
- 基本类型。protocol.type.packeditemuselegacyinventorytransaction.dependency_on_valid_id.if_1.container_slots.example_element.slots.array_size.description
- Slot:byte
- 基本类型。protocol.type.packeditemuselegacyinventorytransaction.dependency_on_valid_id.if_1.container_slots.example_element.slots.example_element.slot.description
- 数组大小:unsigned varint
- 基本类型。protocol.type.packeditemuselegacyinventorytransaction.actions.array_size.description
- Action:InventoryAction
- 特殊类型。protocol.type.packeditemuselegacyinventorytransaction.actions.example_element.action.description
- Action Type:unsigned varint
- 基本类型枚举。protocol.type.packeditemuselegacyinventorytransaction.action_type.description枚举值如下:
-
键 值 描述 Place0protocol.enum.place Use1protocol.enum.use Destroy2protocol.enum.destroy
- Trigger Type:unsigned varint
- 基本类型枚举。protocol.type.packeditemuselegacyinventorytransaction.trigger_type.descriptionPlayerInput if it's a direct result from a player's initial button input, SimulationTick if the player is holding down the input button started from a previous tick.枚举值如下:
-
键 值 描述 Unknown0protocol.enum.unknown PlayerInput1protocol.enum.playerinput SimulationTick2protocol.enum.simulationtick
- Position:NetworkBlockPosition
- 特殊类型。protocol.type.packeditemuselegacyinventorytransaction.position.description
- Face:varint
- 基本类型。protocol.type.packeditemuselegacyinventorytransaction.face.description
- Slot:varint
- 基本类型。protocol.type.packeditemuselegacyinventorytransaction.slot.description
- Item:NetworkItemStackDescriptor
- 特殊类型。protocol.type.packeditemuselegacyinventorytransaction.item.description
- From Position:Vec3
- 特殊类型。protocol.type.packeditemuselegacyinventorytransaction.from_position.descriptionWhere the player thinks they are when sending this
- Click Position:Vec3
- 特殊类型。protocol.type.packeditemuselegacyinventorytransaction.click_position.description
- Target Block Id:unsigned varint
- 基本类型。protocol.type.packeditemuselegacyinventorytransaction.target_block_id.description
- Client Interact Prediction:byte
- 基本类型枚举。protocol.type.packeditemuselegacyinventorytransaction.client_interact_prediction.description枚举值如下:
-
键 值 描述 Failure0protocol.enum.failure Success1protocol.enum.success