Package net.mcft.copy.betterstorage.api.crate

Examples of net.mcft.copy.betterstorage.api.crate.ICrateStorage


    return tile instanceof ICrateStorage;
  }

  @Override
  public ICrateStorageProxy getCrateStorageProxy(TileEntity tile) {
    final ICrateStorage crate = (ICrateStorage) tile;
    return new ICrateStorageProxy() {
      @Override
      public Iterable<ItemStack> getContents() {
        return crate.getContents();
      }

      @Override
      public int getUniqueItems() {
        return crate.getUniqueItems();
      }

      @Override
      public int getItemCount(ItemStack stack) {
        return crate.getItemCount(stack);
      }

      @Override
      public ItemStack extractItems(ItemStack stack, int count) {
        return crate.extractItems(stack, count);
      }

      @Override
      public int getSpaceForItem(ItemStack stack) {
        return crate.getSpaceForItem(stack);
      }

      @Override
      public ItemStack insertItems(ItemStack stack) {
        return crate.insertItems(stack);
      }
    };
  }
View Full Code Here

TOP

Related Classes of net.mcft.copy.betterstorage.api.crate.ICrateStorage

Copyright © 2018 www.massapicom. 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.