PatchBukkit/proto/patchbukkit/itemstack.proto
Alexander Medvedev afb0e82713 many fixes
2026-08-08 20:39:14 +02:00

47 lines
956 B
Protocol Buffer

syntax = "proto3";
package patchbukkit.itemstack;
import "patchbukkit/common/types.proto";
option java_multiple_files = true;
option java_package = "patchbukkit.itemstack";
option java_outer_classname = "ItemStackProto";
// message GetPatchBukkitConfigResponse {
// string minimum_supported_plugin_api = 1;
// }
message ItemStack {
string type = 1;
uint32 amount = 2;
}
message GetPlayerInventoryResponse {
repeated ItemStack main_inventory = 1;
uint32 selected_slot = 2;
ItemStack off_hand = 3;
ItemStack helmet = 4;
ItemStack chestplate = 5;
ItemStack leggings = 6;
ItemStack boots = 7;
}
message SetPlayerInventorySlotRequest {
patchbukkit.common.UUID uuid = 1;
uint32 slot = 2;
ItemStack item = 3;
}
message SetPlayerSelectedSlotRequest {
patchbukkit.common.UUID uuid = 1;
uint32 slot = 2;
}
message SetPlayerEquipmentRequest {
patchbukkit.common.UUID uuid = 1;
uint32 slot_type = 2;
ItemStack item = 3;
}