import{ItemStack as e}from"@minecraft/server";import{DisplayContext as t}from"./context";export class ArmorStand{_allowedItems={helmet:["minecraft:leather_helmet","minecraft:golden_helmet","minecraft:chainmail_helmet","minecraft:iron_helmet","minecraft:diamond_helmet","minecraft:netherite_helmet","minecraft:turtle_helmet",],chestplate:["minecraft:leather_chestplate","minecraft:golden_chestplate","minecraft:chainmail_chestplate","minecraft:iron_chestplate","minecraft:diamond_chestplate","minecraft:netherite_chestplate",],leggings:["minecraft:leather_leggings","minecraft:golden_leggings","minecraft:chainmail_leggings","minecraft:iron_leggings","minecraft:diamond_leggings","minecraft:netherite_leggings",],boots:["minecraft:leather_boots","minecraft:golden_boots","minecraft:chainmail_boots","minecraft:iron_boots","minecraft:diamond_boots","minecraft:netherite_boots",],elytra:["minecraft:elytra"]};type;constructor(e){this.type=e}typeId(){return`bc_ds:${this.type}_armor_stand`}supportsItem(e){return this._allowedItems[this.type].includes(e.typeId)}displayContext(){return this.type}maxStackSize(){return 1}maxItems(){return 1}lockedRotation(){return!0}calculateRotation(e,t){return({north:0,east:2,south:4,west:6})[t]}}