예제 #1
0
파일: ItemStack.cs 프로젝트: riverar/Crafty
 public ItemStack(Item item, int i, int j)
     : this(item.shiftedIndex, i, j)
 {
 }
예제 #2
0
파일: ItemStack.cs 프로젝트: riverar/Crafty
 public ItemStack(Item item, int i)
     : this(item.shiftedIndex, i, 0)
 {
 }
예제 #3
0
파일: ItemStack.cs 프로젝트: riverar/Crafty
 public ItemStack(Item item)
     : this(item.shiftedIndex, 1, 0)
 {
 }
예제 #4
0
파일: Item.cs 프로젝트: riverar/Crafty
 public Item setContainerItem(Item item)
 {
     if (maxStackSize > 1)
     {
         throw new IllegalArgumentException("Max stack size must be 1 for items with crafting results");
     }
     else
     {
         containerItem = item;
         return this;
     }
 }
예제 #5
0
파일: Item.cs 프로젝트: riverar/Crafty
 protected Item(int i)
 {
     maxStackSize = 64;
     maxDamage = 32;
     bFull3D = false;
     hasSubtypes = false;
     containerItem = null;
     shiftedIndex = 256 + i;
     if (itemsList[256 + i] != null)
     {
         [email protected]((new StringBuilder()).append("CONFLICT @ ").append(i).toString());
     }
     itemsList[256 + i] = this;
 }
예제 #6
0
파일: Item.cs 프로젝트: riverar/Crafty
 static Item()
 {
     shovelSteel = (new ItemSpade(0, EnumToolMaterial.IRON)).setIconCoord(2, 5).setItemName("shovelIron");
     pickaxeSteel = (new ItemPickaxe(1, EnumToolMaterial.IRON)).setIconCoord(2, 6).setItemName("pickaxeIron");
     axeSteel = (new ItemAxe(2, EnumToolMaterial.IRON)).setIconCoord(2, 7).setItemName("hatchetIron");
     swordSteel = (new ItemSword(11, EnumToolMaterial.IRON)).setIconCoord(2, 4).setItemName("swordIron");
     swordWood = (new ItemSword(12, EnumToolMaterial.WOOD)).setIconCoord(0, 4).setItemName("swordWood");
     shovelWood = (new ItemSpade(13, EnumToolMaterial.WOOD)).setIconCoord(0, 5).setItemName("shovelWood");
     pickaxeWood = (new ItemPickaxe(14, EnumToolMaterial.WOOD)).setIconCoord(0, 6).setItemName("pickaxeWood");
     axeWood = (new ItemAxe(15, EnumToolMaterial.WOOD)).setIconCoord(0, 7).setItemName("hatchetWood");
     swordStone = (new ItemSword(16, EnumToolMaterial.STONE)).setIconCoord(1, 4).setItemName("swordStone");
     shovelStone = (new ItemSpade(17, EnumToolMaterial.STONE)).setIconCoord(1, 5).setItemName("shovelStone");
     pickaxeStone = (new ItemPickaxe(18, EnumToolMaterial.STONE)).setIconCoord(1, 6).setItemName("pickaxeStone");
     axeStone = (new ItemAxe(19, EnumToolMaterial.STONE)).setIconCoord(1, 7).setItemName("hatchetStone");
     swordDiamond = (new ItemSword(20, EnumToolMaterial.EMERALD)).setIconCoord(3, 4).setItemName("swordDiamond");
     shovelDiamond = (new ItemSpade(21, EnumToolMaterial.EMERALD)).setIconCoord(3, 5).setItemName("shovelDiamond");
     pickaxeDiamond =
         (new ItemPickaxe(22, EnumToolMaterial.EMERALD)).setIconCoord(3, 6).setItemName("pickaxeDiamond");
     axeDiamond = (new ItemAxe(23, EnumToolMaterial.EMERALD)).setIconCoord(3, 7).setItemName("hatchetDiamond");
     swordGold = (new ItemSword(27, EnumToolMaterial.GOLD)).setIconCoord(4, 4).setItemName("swordGold");
     shovelGold = (new ItemSpade(28, EnumToolMaterial.GOLD)).setIconCoord(4, 5).setItemName("shovelGold");
     pickaxeGold = (new ItemPickaxe(29, EnumToolMaterial.GOLD)).setIconCoord(4, 6).setItemName("pickaxeGold");
     axeGold = (new ItemAxe(30, EnumToolMaterial.GOLD)).setIconCoord(4, 7).setItemName("hatchetGold");
     hoeWood = (new ItemHoe(34, EnumToolMaterial.WOOD)).setIconCoord(0, 8).setItemName("hoeWood");
     hoeStone = (new ItemHoe(35, EnumToolMaterial.STONE)).setIconCoord(1, 8).setItemName("hoeStone");
     hoeSteel = (new ItemHoe(36, EnumToolMaterial.IRON)).setIconCoord(2, 8).setItemName("hoeIron");
     hoeDiamond = (new ItemHoe(37, EnumToolMaterial.EMERALD)).setIconCoord(3, 8).setItemName("hoeDiamond");
     hoeGold = (new ItemHoe(38, EnumToolMaterial.GOLD)).setIconCoord(4, 8).setItemName("hoeGold");
     seeds = (new ItemSeeds(39, Block.crops.blockID)).setIconCoord(9, 0).setItemName("seeds");
     doorWood = (new ItemDoor(68, Material.wood)).setIconCoord(11, 2).setItemName("doorWood");
     bucketEmpty = (new ItemBucket(69, 0)).setIconCoord(10, 4).setItemName("bucket");
     bucketWater =
         (new ItemBucket(70, Block.waterStill.blockID)).setIconCoord(11, 4).setItemName("bucketWater").
             setContainerItem(bucketEmpty);
     bucketLava =
         (new ItemBucket(71, Block.lavaStill.blockID)).setIconCoord(12, 4).setItemName("bucketLava").
             setContainerItem(bucketEmpty);
     doorSteel = (new ItemDoor(74, Material.iron)).setIconCoord(12, 2).setItemName("doorIron");
     bucketMilk = (new ItemBucket(79, -1)).setIconCoord(13, 4).setItemName("milk").setContainerItem(bucketEmpty);
     reed = (new ItemReed(82, Block.reed)).setIconCoord(11, 1).setItemName("reeds");
     cake = (new ItemReed(98, Block.cake)).setMaxStackSize(1).setIconCoord(13, 1).setItemName("cake");
     redstoneRepeater = (new ItemReed(100, Block.field_22011_bh)).setIconCoord(6, 5).setItemName("diode");
 }