Package appeng.container.implementations

Source Code of appeng.container.implementations.ContainerChest

package appeng.container.implementations;

import net.minecraft.entity.player.InventoryPlayer;
import appeng.container.AEBaseContainer;
import appeng.container.slot.SlotRestrictedInput;
import appeng.tile.storage.TileChest;

public class ContainerChest extends AEBaseContainer
{

  final TileChest chest;

  public ContainerChest(InventoryPlayer ip, TileChest chest) {
    super( ip, chest, null );
    this.chest = chest;

    addSlotToContainer( new SlotRestrictedInput( SlotRestrictedInput.PlacableItemType.STORAGE_CELLS, this.chest, 1, 80, 37, invPlayer ) );

    bindPlayerInventory( ip, 0, 166 - /* height of player inventory */82 );
  }

}
TOP

Related Classes of appeng.container.implementations.ContainerChest

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.