public class ItemStack
{
public int stackSize;
public int itemID;
public int itemDamage;
public ItemStack(Item item)
{
this(item.id, 1, 0); //ERROR HERE
}
public ItemStack(Item item, int value)
{
this(item.id, value, 0); //ERROR HERE
}
public ItemStack(Item item, int value, int value2)
{
this(item.id, value, value2); //ERROR HERE
}
public ItemStack(int value, int value2, int value3)
{
this.stackSize = 0;
this.itemID = value;
this.stackSize = value2;
this.itemDamage = value3;
if (this.itemDamage < 0)
{
this.itemDamage = 0;
}
}
private ItemStack()
{
this.stackSize = 0;
}
}
これの解き方がわからないので、どなたかお知恵をお貸しください。ありがとう。これを解決する方法がわかりません。さまざまな方法を試しましたが、何もしませんでした。エラーは、これらの行だけで「ERROR HERE」と表示される場所にあります。