Massive rework of configs, items and blocks.
I redone where the items/blocsks are stored and how the configs are handled to clean up it and give space. You can change the config line to AWWayofTime if you want to keep the compatibility with old configs. Now you reference the blocks from the ModBlocks and Items from the ModItems.
This commit is contained in:
parent
8601e9faff
commit
e3644f2d2b
304 changed files with 3941 additions and 5108 deletions
|
@ -1,9 +1,7 @@
|
|||
package thaumcraft.api.wands;
|
||||
|
||||
import java.text.DecimalFormat;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import net.minecraft.enchantment.EnchantmentHelper;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.EnumRarity;
|
||||
|
@ -16,11 +14,12 @@ import net.minecraft.world.World;
|
|||
import thaumcraft.api.ThaumcraftApi;
|
||||
import thaumcraft.api.aspects.Aspect;
|
||||
import thaumcraft.api.aspects.AspectList;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
|
||||
public class ItemFocusBasic extends Item implements IWandFocus
|
||||
{
|
||||
import java.text.DecimalFormat;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
public class ItemFocusBasic extends Item implements IWandFocus {
|
||||
public ItemFocusBasic(int i)
|
||||
{
|
||||
super(i);
|
||||
|
@ -59,7 +58,7 @@ public class ItemFocusBasic extends Item implements IWandFocus
|
|||
{
|
||||
list.add(StatCollector.translateToLocal(isVisCostPerTick() ? "item.Focus.cost2" : "item.Focus.cost1"));
|
||||
|
||||
for (Aspect aspect: al.getAspectsSorted())
|
||||
for (Aspect aspect : al.getAspectsSorted())
|
||||
{
|
||||
DecimalFormat myFormatter = new DecimalFormat("#####.##");
|
||||
String amount = myFormatter.format(al.getAmount(aspect) / 100f);
|
||||
|
@ -122,10 +121,10 @@ public class ItemFocusBasic extends Item implements IWandFocus
|
|||
@Override
|
||||
public String getSortingHelper(ItemStack itemstack)
|
||||
{
|
||||
Map<Integer, Integer> ench = EnchantmentHelper.getEnchantments(itemstack);
|
||||
Map<Integer,Integer> ench = EnchantmentHelper.getEnchantments(itemstack);
|
||||
String out = "";
|
||||
|
||||
for (Integer lvl: ench.values())
|
||||
for (Integer lvl : ench.values())
|
||||
{
|
||||
out = out + lvl + "";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue