Removed Localization Stuff.

Added Logging Option.
Logging of Exceptions is now done via AELogger
This commit is contained in:
AlgorithmX2
2014-02-07 14:37:22 -06:00
parent e18dac1437
commit b57804be06
49 changed files with 212 additions and 195 deletions
+8 -5
View File
@@ -153,7 +153,7 @@ public class AEBaseTile extends TileEntity implements IOrientable, ICommonTile
}
catch (Throwable t)
{
t.printStackTrace();
AELog.error( t );
}
}
@@ -187,14 +187,15 @@ public class AEBaseTile extends TileEntity implements IOrientable, ICommonTile
}
catch (Throwable t)
{
t.printStackTrace();
AELog.error( t );
}
return output;
}
/**
* By default all blocks can have orientation, this handles saving, and loading, as well as synchronization.
* By default all blocks can have orientation, this handles saving, and
* loading, as well as synchronization.
*
* @return
*/
@@ -279,7 +280,8 @@ public class AEBaseTile extends TileEntity implements IOrientable, ICommonTile
}
/**
* returns the contents of the tile entity, into the world, defaults to dropping everything in the inventory.
* returns the contents of the tile entity, into the world, defaults to
* dropping everything in the inventory.
*
* @param w
* @param x
@@ -314,7 +316,8 @@ public class AEBaseTile extends TileEntity implements IOrientable, ICommonTile
}
/**
* depending on the from, diffrent settings will be accepted, don't call this with null
* depending on the from, diffrent settings will be accepted, don't call
* this with null
*
* @param from
* @param compound
@@ -8,6 +8,7 @@ import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import appeng.api.AEApi;
import appeng.api.storage.data.IAEItemStack;
import appeng.core.AELog;
import appeng.util.Platform;
import appeng.util.item.AEItemStack;
import appeng.util.iterators.AEInvIterator;
@@ -188,9 +189,9 @@ public class AppEngInternalAEInventory implements IInventory, Iterable<ItemStack
inv[x] = AEItemStack.loadItemStackFromNBT( c );
}
catch (Exception err)
catch (Exception e)
{
err.printStackTrace();
AELog.error( e );
}
}
}
+3 -2
View File
@@ -7,6 +7,7 @@ import net.minecraft.inventory.IInventory;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import appeng.api.storage.IMEInventory;
import appeng.core.AELog;
import appeng.me.storage.MEIInventoryWrapper;
import appeng.util.Platform;
import appeng.util.iterators.InvIterator;
@@ -201,9 +202,9 @@ public class AppEngInternalInventory implements IInventory, Iterable<ItemStack>
inv[x] = ItemStack.loadItemStackFromNBT( c );
}
catch (Exception err)
catch (Exception e)
{
err.printStackTrace();
AELog.error( e );
}
}
}