41 public static function translate(
int $containerInterfaceId,
int $currentWindowId,
int $slotId) : array{
42 return match($containerInterfaceId){
43 ContainerUIIds::ARMOR => [ContainerIds::ARMOR, $slotId],
45 ContainerUIIds::HOTBAR,
46 ContainerUIIds::INVENTORY,
47 ContainerUIIds::COMBINED_HOTBAR_AND_INVENTORY => [ContainerIds::INVENTORY, $slotId],
50 ContainerUIIds::OFFHAND => [ContainerIds::OFFHAND, 0],
52 ContainerUIIds::ANVIL_INPUT,
53 ContainerUIIds::ANVIL_MATERIAL,
54 ContainerUIIds::BEACON_PAYMENT,
55 ContainerUIIds::CARTOGRAPHY_ADDITIONAL,
56 ContainerUIIds::CARTOGRAPHY_INPUT,
57 ContainerUIIds::COMPOUND_CREATOR_INPUT,
58 ContainerUIIds::CRAFTING_INPUT,
59 ContainerUIIds::CREATED_OUTPUT,
60 ContainerUIIds::CURSOR,
61 ContainerUIIds::ENCHANTING_INPUT,
62 ContainerUIIds::ENCHANTING_MATERIAL,
63 ContainerUIIds::GRINDSTONE_ADDITIONAL,
64 ContainerUIIds::GRINDSTONE_INPUT,
65 ContainerUIIds::LAB_TABLE_INPUT,
66 ContainerUIIds::LOOM_DYE,
67 ContainerUIIds::LOOM_INPUT,
68 ContainerUIIds::LOOM_MATERIAL,
69 ContainerUIIds::MATERIAL_REDUCER_INPUT,
70 ContainerUIIds::MATERIAL_REDUCER_OUTPUT,
71 ContainerUIIds::SMITHING_TABLE_INPUT,
72 ContainerUIIds::SMITHING_TABLE_MATERIAL,
73 ContainerUIIds::SMITHING_TABLE_TEMPLATE,
74 ContainerUIIds::STONECUTTER_INPUT,
75 ContainerUIIds::TRADE2_INGREDIENT1,
76 ContainerUIIds::TRADE2_INGREDIENT2,
77 ContainerUIIds::TRADE_INGREDIENT1,
78 ContainerUIIds::TRADE_INGREDIENT2 => [ContainerIds::UI, $slotId],
80 ContainerUIIds::BARREL,
81 ContainerUIIds::BLAST_FURNACE_INGREDIENT,
82 ContainerUIIds::BREWING_STAND_FUEL,
83 ContainerUIIds::BREWING_STAND_INPUT,
84 ContainerUIIds::BREWING_STAND_RESULT,
85 ContainerUIIds::FURNACE_FUEL,
86 ContainerUIIds::FURNACE_INGREDIENT,
87 ContainerUIIds::FURNACE_RESULT,
88 ContainerUIIds::HORSE_EQUIP,
89 ContainerUIIds::LEVEL_ENTITY,
90 ContainerUIIds::SHULKER_BOX,
91 ContainerUIIds::SMOKER_INGREDIENT => [$currentWindowId, $slotId],