-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
First things first, HAPPY BIRTHDAY ABYSSALCRAFT! New Thaumcraft integration, bugsplats, memory leak found and removed, coin engraving will now be a thing. Fixes #22 and implements the feature suggested in #17
- Loading branch information
Showing
508 changed files
with
12,211 additions
and
5,796 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
mc_version=1.7.2 | ||
forge_version=10.12.2.1147 | ||
ac_version=1.7.8.1 | ||
core_version=1.2.0 | ||
ac_version=1.8.0 |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package thaumcraft.api; | ||
|
||
import net.minecraft.entity.EntityLivingBase; | ||
import net.minecraft.item.ItemStack; | ||
|
||
/** | ||
* | ||
* @author Azanor | ||
* | ||
* Equipped head slot items that extend this class will be able to perform most functions that | ||
* goggles of revealing can apart from view nodes which is handled by IRevealer. | ||
* | ||
*/ | ||
|
||
public interface IGoggles { | ||
|
||
/* | ||
* If this method returns true things like block essentia contents will be shown. | ||
*/ | ||
public boolean showIngamePopups(ItemStack itemstack, EntityLivingBase player); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package thaumcraft.api; | ||
|
||
|
||
|
||
/** | ||
* @author Azanor | ||
* Items, armor and tools with this interface can receive the Repair enchantment. | ||
* Repairs 1 point of durability every 10 seconds (2 for repair II) | ||
*/ | ||
public interface IRepairable { | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package thaumcraft.api; | ||
|
||
import net.minecraft.entity.player.EntityPlayer; | ||
import net.minecraft.item.ItemStack; | ||
|
||
|
||
|
||
/** | ||
* @author Azanor | ||
* Items, armor and tools with this interface can receive the Repair enchantment. | ||
* Repairs 1 point of durability every 10 seconds (2 for repair II) | ||
*/ | ||
public interface IRepairableExtended extends IRepairable { | ||
|
||
public boolean doRepair(ItemStack stack, EntityPlayer player, int enchantlevel); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package thaumcraft.api; | ||
|
||
import net.minecraft.entity.EntityLivingBase; | ||
import net.minecraft.item.ItemStack; | ||
|
||
/** | ||
* | ||
* @author Azanor | ||
* | ||
* Armor or bauble slot items that implement this interface can provide runic shielding. | ||
* Recharging, hardening, etc. is handled internally by thaumcraft. | ||
* | ||
*/ | ||
|
||
public interface IRunicArmor { | ||
|
||
/** | ||
* returns how much charge this item can provide. This is the base shielding value - any hardening is stored and calculated internally. | ||
*/ | ||
public int getRunicCharge(ItemStack itemstack); | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package thaumcraft.api; | ||
|
||
|
||
/** | ||
* | ||
* @author Azanor | ||
* | ||
* Interface used to identify scribing tool items used in research table | ||
* | ||
*/ | ||
|
||
public interface IScribeTools { | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package thaumcraft.api; | ||
|
||
import net.minecraft.entity.player.EntityPlayer; | ||
import net.minecraft.item.ItemStack; | ||
import thaumcraft.api.aspects.Aspect; | ||
|
||
|
||
|
||
|
||
/** | ||
* @author Azanor | ||
* ItemArmor with this interface will grant a discount to the vis cost of actions the wearer performs with casting wands. | ||
* The amount returned is the percentage by which the cost is discounted. There is a built-int max discount of 50%, but | ||
* individual items really shouldn't have a discount more than 5% | ||
*/ | ||
public interface IVisDiscountGear { | ||
|
||
int getVisDiscount(ItemStack stack, EntityPlayer player, Aspect aspect); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
package thaumcraft.api; | ||
|
||
import net.minecraft.block.Block; | ||
import net.minecraft.item.Item; | ||
import net.minecraft.item.ItemStack; | ||
import cpw.mods.fml.common.FMLLog; | ||
|
||
/** | ||
* @author Azanor | ||
* | ||
* This is used to gain access to the items in my mod. | ||
* I only give some examples and it will probably still | ||
* require a bit of work for you to get hold of everything you need. | ||
* | ||
*/ | ||
public class ItemApi { | ||
|
||
public static ItemStack getItem(String itemString, int meta) { | ||
ItemStack item = null; | ||
|
||
try { | ||
String itemClass = "thaumcraft.common.config.ConfigItems"; | ||
Object obj = Class.forName(itemClass).getField(itemString).get(null); | ||
if (obj instanceof Item) { | ||
item = new ItemStack((Item) obj,1,meta); | ||
} else if (obj instanceof ItemStack) { | ||
item = (ItemStack) obj; | ||
} | ||
} catch (Exception ex) { | ||
FMLLog.warning("[Thaumcraft] Could not retrieve item identified by: " + itemString); | ||
} | ||
|
||
return item; | ||
} | ||
|
||
public static ItemStack getBlock(String itemString, int meta) { | ||
ItemStack item = null; | ||
|
||
try { | ||
String itemClass = "thaumcraft.common.config.ConfigBlocks"; | ||
Object obj = Class.forName(itemClass).getField(itemString).get(null); | ||
if (obj instanceof Block) { | ||
item = new ItemStack((Block) obj,1,meta); | ||
} else if (obj instanceof ItemStack) { | ||
item = (ItemStack) obj; | ||
} | ||
} catch (Exception ex) { | ||
FMLLog.warning("[Thaumcraft] Could not retrieve block identified by: " + itemString); | ||
} | ||
|
||
return item; | ||
} | ||
|
||
/** | ||
* | ||
* Some examples | ||
* | ||
* Casting Wands: | ||
* itemWandCasting | ||
* | ||
* Resources: | ||
* itemEssence, itemWispEssence, itemResource, itemShard, itemNugget, | ||
* itemNuggetChicken, itemNuggetBeef, itemNuggetPork, itemTripleMeatTreat | ||
* | ||
* Research: | ||
* itemResearchNotes, itemInkwell, itemThaumonomicon | ||
* | ||
*/ | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package thaumcraft.api; | ||
|
||
import net.minecraft.item.Item; | ||
import net.minecraft.item.ItemStack; | ||
|
||
public class ItemRunic extends Item implements IRunicArmor { | ||
|
||
int charge; | ||
|
||
public ItemRunic (int charge) | ||
{ | ||
super(); | ||
this.charge = charge; | ||
} | ||
|
||
@Override | ||
public int getRunicCharge(ItemStack itemstack) { | ||
return charge; | ||
} | ||
|
||
} |
Oops, something went wrong.