Esempio n. 1
0
  public MCItemStack(ItemStack itemStack) {
    //		if(itemStack.isEmpty())
    //			throw new IllegalArgumentException("stack cannot be null");

    stack = itemStack.copy();
    items = Collections.singletonList(this);
  }
Esempio n. 2
0
  private MCItemStack(ItemStack itemStack, IData tag) {
    //		if(itemStack.isEmpty())
    //			throw new IllegalArgumentException("stack cannot be null");

    stack = itemStack;
    items = Collections.singletonList(this);
    this.tag = tag;
  }
Esempio n. 3
0
 private MCItemStack(ItemStack itemStack, IData tag, boolean wildcardSize) {
   stack = itemStack;
   items = Collections.singletonList(this);
   this.tag = tag;
   this.wildcardSize = wildcardSize;
 }
Esempio n. 4
0
 @Override
 public List<ILiquidStack> getLiquids() {
   return Collections.emptyList();
 }