Beispiel #1
0
        public BCMTileEntityLootContainer(Vector3i pos, [NotNull] TileEntityLootContainer te) : base(pos, te)
        {
            LootList    = te.lootListIndex;
            Touched     = te.bWasTouched;
            TimeTouched = te.worldTimeTouched;
            Size        = new BCMVector2(te.GetContainerSize());
            OpenTime    = te.GetOpenTime();

            foreach (var itemStack in te.GetItems())
            {
                if (itemStack.itemValue.type == 0)
                {
                    continue;
                }

                Items.Add(new BCMItemStack(itemStack));
            }
        }