import{BlockPermutation as e}from"@minecraft/server";const r=["minecraft:ladder","minecraft:torch","minecraft:cauldron","minecraft:brewing_stand","minecraft:campfire","minecraft:candle","minecraft:tripwire_hook","minecraft:lantern","minecraft:lever","minecraft:wooden_door","minecraft:soul_torch","minecraft:sea_pickle","minecraft:iron_bars","minecraft:flower_pot","minecraft:bell","minecraft:deadbush","minecraft:tallgrass","minecraft:web","minecraft:frog_spawn","minecraft:nether_wart","minecraft:torchflower","minecraft:wither_rose","minecraft:cake","minecraft:pink_petals","minecraft:kelp","minecraft:waterlily","minecraft:glow_lichen","minecraft:seagrass","minecraft:red_flower","minecraft:hopper","minecraft:chain","minecraft:redstone_torch","minecraft:turtle_egg","minecraft:amethyst_cluster","minecraft:wheat","minecraft:soul_lantern","minecraft:frame","minecraft:glow_frame","minecraft:beetroot","minecraft:rose_bush","minecraft:fern","minecraft:cornflower","minecraft:sculk_vein","minecraft:vine","minecraft:large_vern","minecraft:tall_grass","minecraft:nether_sprouts","minecraft:short_grass","minecraft:dandelion","minecraft:allium","minecraft:peony","minecraft:sunflower","minecraft:large_fern","minecraft:lilac","minecraft:lily_of_the_valley","minecraft:blue_orchid","minecraft:azure_bluet","minecraft:poppy","minecraft:oxeye_daisy"],t=["_door","_plant","campfire","rail","_coral","_vines","_mushroom","_fungus","_propagule","crimson_roots","warped_roots","hanging_roots","_hanging_sign","_tulip","_egg","_coral_fan"],n=["minecraft:stick","minecraft:blaze_rod","minecraft:bone","minecraft:bamboo","minecraft:breeze_rod"],a=["ftb_tc:e_p_casting_basin","ftb_tc:e_p_casting_table","ftb_tc:e_p_smeltery_controller","ftb_tc:e_p_seared_drain","ftb_tc:e_p_melter","ftb_tc:e_p_seared_tank"],i=["minecraft:light_block_"],_=["minecraft:smoker","minecraft:dropper","minecraft:furnace","minecraft:dispenser","minecraft:observer","minecraft:jungle_stairs"],f=["ftb_sd:upgrade_1","ftb_sd:upgrade_2","ftb_sd:upgrade_3","ftb_sd:upgrade_4","ftb_sd:upgrade_5","ftb_sd:upgrade_void","ftb_sd:upgrade_light","ftb_sd:upgrade_template"],c=["_stairs"],m=["skull","_head"],o=["sapling","_amethyst_bud","_button","_candle"];function s(e){if(1===e?.maxAmount||a.includes(e?.typeId))return!0;for(const r of i)if(e?.typeId.includes(r))return!0;return!1}function l(a){if(a.endsWith("chest"))return u.BLOCK_180;if("minecraft:chorus_plant"===a)return u.BLOCK_POS;if(a.includes("ftb_sd")&&a.includes("half"))return u.DRIP_LEAF;if("minecraft:lectern"===a||a.endsWith("anvil")||a.endsWith("glass_pane")||a.endsWith("fence_gate")||a.endsWith("_fence"))return u.BLOCK_RIGHT_90_POS;if(f.includes(a))return u.UPGRADE;if(a.endsWith("_wall"))return u.WALL;if("minecraft:banner"===a)return u.BANNER;if(n.includes(a)||"minecraft:conduit"===a)return u.STICK_LIKE_POS;for(let e=t.length-1;e>=0;e--)if(a.endsWith(t[e])&&"minecraft:dragon_egg"!==a)return u.ITEM_POS;if(r.includes(a))return u.ITEM_POS;for(let e=0;e<o.length;e++)if(a.endsWith(o[e]))return u.SAPLING;try{for(let e=0;e<m.length;e++)if(a.endsWith(m[e]))return u.SKULL;for(let e=0;e<c.length;e++)if(a.endsWith(c[e]))return u.BLOCK_POS;return _.includes(a)?u.BLOCK_POS:"minecraft:large_amethyst_bud"===a||"minecraft:small_dripleaf_block"===a||"minecraft:big_dripleaf"===a||"minecraft:small_amethyst_bud"==a||"minecraft:medium_amethyst_bud"==a?u.DRIP_LEAF:"minecraft:lightning_rod"===a||"minecraft:end_rod"===a?u.ROD_LIKE:"minecraft:pointed_dripstone"===a?u.POINTED_DRIP:"minecraft:heavy_core"===a||"minecraft:conduit"===a?u.HEAVY_CORE:"minecraft:decorated_pot"===a?u.DECORATED_POT:(e.resolve(a),u.BLOCK_POS)}catch(e){return u.ITEM_POS}}var d,u;function p(e){return e===d.MAIN_HAND?"mainhand":"offhand"}function h(e,r,t){e&&(r===d.MAIN_HAND?e.setProperty("ftb_sd:drawer_type",t):e.setProperty("ftb_sd:drawer_type_offhand",t))}!function(e){e[e.MAIN_HAND=0]="MAIN_HAND",e[e.OFF_HAND=1]="OFF_HAND"}(d||(d={})),d.MAIN_HAND,d.OFF_HAND,function(e){e.BLOCK_POS="blockPos",e.BLOCK_RIGHT_90_POS="blockRight90Pos",e.SKULL="skullPos",e.ITEM_POS="itemPos",e.STICK_LIKE_POS="stickLikePos",e.BANNER="banner",e.WALL="wall",e.SAPLING="sapling",e.UPGRADE="upgrade",e.DRIP_LEAF="dripLeaf",e.HEAVY_CORE="heavyCore",e.ROD_LIKE="rodLike",e.POINTED_DRIP="pointedDrip",e.DECORATED_POT="decoratedPot",e.BLOCK_180="block180"}(u||(u={}));export{d as Hand,p as getHandName,l as getModeId,s as isItemDenied,h as setRenderPositionValue,n as stickLikeOverrides,f as upgrades};
