示例#1
0
        public override void KillMultiTile(int i, int j, int frameX, int frameY)
        {
            TestChestTE drawer = Utility.GetTileEntity <TestChestTE>(i, j);

            PanelUI.Instance.CloseUI(drawer);

            Item.NewItem(i * 16, j * 16, 32, 32, ModContent.ItemType <TestChest>());
            drawer.Kill(i, j);
        }
示例#2
0
        public override bool NewRightClick(int i, int j)
        {
            TestChestTE drawer = Utility.GetTileEntity <TestChestTE>(i, j);

            if (drawer == null)
            {
                return(false);
            }

            PanelUI.Instance.HandleUI(drawer);

            return(true);
        }