991 files modified. GG ME. Still not done though

This is the first commit of the rewrite. A lot has been done, but it's
not over.
This commit is contained in:
Tombenpotter committed 2014-09-27 22:54:43 +02:00
1 parent 621fb17840
commit 766aa180ae
569 files changed
+4065 -6321

No files matched your search

+19 -12
View File
@@ -1,33 +1,40 @@
package baubles.api;
import cpw.mods.fml.common.FMLLog;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.IInventory;
import java.lang.reflect.Method;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.IInventory;
import cpw.mods.fml.common.FMLLog;
/**
* @author Azanor
*/
public class BaublesApi {
public class BaublesApi
{
static Method getBaubles;
/**
* Retrieves the baubles inventory for the supplied player
*/
public static IInventory getBaubles(EntityPlayer player) {
public static IInventory getBaubles(EntityPlayer player)
{
IInventory ot = null;
try {
if(getBaubles == null) {
Class fake = Class.forName("baubles.common.lib.PlayerHandler");
try
{
if(getBaubles == null)
{
Class<?> fake = Class.forName("baubles.common.lib.PlayerHandler");
getBaubles = fake.getMethod("getPlayerBaubles", EntityPlayer.class);
}
ot = (IInventory) getBaubles.invoke(null, player);
} catch(Exception ex) {
}
catch(Exception ex)
{
FMLLog.warning("[Baubles API] Could not invoke baubles.common.lib.PlayerHandler method getPlayerBaubles");
}
return ot;
}
+1 -1
View File
@@ -1,3 +1,3 @@
@API(apiVersion = "1.0.0.16", owner = "Baubles", provides = "Baubles|API")
@API(apiVersion = "1.7.10-1.0.1.5", owner = "Baubles", provides = "Baubles|API")
package baubles.api;
import cpw.mods.fml.common.API;