Added lapatron and energy crystals
This commit is contained in:
parent
5400dff4d3
commit
3302d63385
4 changed files with 123 additions and 0 deletions
|
@ -85,6 +85,8 @@ public class ModItems {
|
|||
public static Item diamondJackhammer;
|
||||
public static Item hammer;
|
||||
public static Item wrench;
|
||||
public static Item lapatronCrystal;
|
||||
public static Item energyCrystal;
|
||||
|
||||
public static Item upgrades;
|
||||
|
||||
|
@ -129,6 +131,11 @@ public class ModItems {
|
|||
GameRegistry.registerItem(lapotronicOrb, "lapotronicOrb");
|
||||
omniTool = PoweredItem.createItem(ItemOmniTool.class);
|
||||
GameRegistry.registerItem(omniTool, "omniTool");
|
||||
energyCrystal = PoweredItem.createItem(ItemEnergyCrystal.class);
|
||||
GameRegistry.registerItem(energyCrystal, "energycrystal");
|
||||
lapatronCrystal = PoweredItem.createItem(ItemLapotronCrystal.class);
|
||||
GameRegistry.registerItem(lapatronCrystal, "lapatroncrystal");
|
||||
|
||||
|
||||
manual = new ItemTechManual();
|
||||
GameRegistry.registerItem(manual, "techmanuel");
|
||||
|
|
|
@ -61,6 +61,8 @@ public class RecipeCompact implements IRecipeCompact {
|
|||
recipes.put("mvTransformer", ItemParts.getPartByName("mvTransformer"));
|
||||
recipes.put("hvTransformer", ItemParts.getPartByName("hvTransformer"));
|
||||
recipes.put("windMill", new ItemStack(ModBlocks.windMill));
|
||||
recipes.put("energyCrystal", new ItemStack(ModItems.energyCrystal));
|
||||
recipes.put("lapotronCrystal", new ItemStack(ModItems.lapatronCrystal));
|
||||
inited = false;
|
||||
}
|
||||
|
||||
|
|
57
src/main/java/techreborn/items/ItemEnergyCrystal.java
Normal file
57
src/main/java/techreborn/items/ItemEnergyCrystal.java
Normal file
|
@ -0,0 +1,57 @@
|
|||
package techreborn.items;
|
||||
|
||||
import net.minecraft.item.ItemStack;
|
||||
import reborncore.api.power.IEnergyItemInfo;
|
||||
import techreborn.client.TechRebornCreativeTab;
|
||||
import techreborn.config.ConfigTechReborn;
|
||||
|
||||
|
||||
public class ItemEnergyCrystal extends ItemTextureBase implements IEnergyItemInfo {
|
||||
|
||||
public static final int maxCharge = 100000;
|
||||
public static final int tier = 1;
|
||||
public double transferLimit = 512;
|
||||
|
||||
public ItemEnergyCrystal() {
|
||||
super();
|
||||
setMaxStackSize(1);
|
||||
setMaxDamage(13);
|
||||
setUnlocalizedName("techreborn.energycrystal");
|
||||
setCreativeTab(TechRebornCreativeTab.instance);
|
||||
}
|
||||
|
||||
@Override
|
||||
public double getMaxPower(ItemStack stack) {
|
||||
return maxCharge;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canAcceptEnergy(ItemStack stack) {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canProvideEnergy(ItemStack stack) {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public double getMaxTransfer(ItemStack stack) {
|
||||
return transferLimit;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getStackTeir(ItemStack stack) {
|
||||
return tier;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getTextureName(int damage) {
|
||||
return "techreborn:items/energycrystal";
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getMaxMeta() {
|
||||
return 1;
|
||||
}
|
||||
}
|
57
src/main/java/techreborn/items/ItemLapotronCrystal.java
Normal file
57
src/main/java/techreborn/items/ItemLapotronCrystal.java
Normal file
|
@ -0,0 +1,57 @@
|
|||
package techreborn.items;
|
||||
|
||||
import net.minecraft.item.ItemStack;
|
||||
import reborncore.api.power.IEnergyItemInfo;
|
||||
import techreborn.client.TechRebornCreativeTab;
|
||||
import techreborn.config.ConfigTechReborn;
|
||||
|
||||
|
||||
public class ItemLapotronCrystal extends ItemTextureBase implements IEnergyItemInfo {
|
||||
|
||||
public static final int maxCharge = 100000;
|
||||
public static final int tier = 2;
|
||||
public double transferLimit = 512;
|
||||
|
||||
public ItemLapotronCrystal() {
|
||||
super();
|
||||
setMaxStackSize(1);
|
||||
setMaxDamage(13);
|
||||
setUnlocalizedName("techreborn.lapotroncrystal");
|
||||
setCreativeTab(TechRebornCreativeTab.instance);
|
||||
}
|
||||
|
||||
@Override
|
||||
public double getMaxPower(ItemStack stack) {
|
||||
return maxCharge;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canAcceptEnergy(ItemStack stack) {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canProvideEnergy(ItemStack stack) {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public double getMaxTransfer(ItemStack stack) {
|
||||
return transferLimit;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getStackTeir(ItemStack stack) {
|
||||
return tier;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getTextureName(int damage) {
|
||||
return "techreborn:items/lapotroncrystal";
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getMaxMeta() {
|
||||
return 1;
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue