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,16 +1,15 @@
|
|||
package WayofTime.alchemicalWizardry.common.rituals;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import WayofTime.alchemicalWizardry.common.block.RitualStone;
|
||||
import WayofTime.alchemicalWizardry.common.tileEntity.TEMasterStone;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraftforge.oredict.OreDictionary;
|
||||
|
||||
public class Rituals
|
||||
{
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class Rituals {
|
||||
private List<RitualComponent> components;
|
||||
private int crystalLevel;
|
||||
private int actCost;
|
||||
|
@ -57,8 +56,7 @@ public class Rituals
|
|||
if (ritual <= ritualList.size())
|
||||
{
|
||||
return ritualList.get(ritual - 1).crystalLevel <= crystalLevel;
|
||||
}
|
||||
else
|
||||
} else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
@ -112,12 +110,13 @@ public class Rituals
|
|||
//
|
||||
// return true;
|
||||
}
|
||||
|
||||
/**
|
||||
1 - NORTH
|
||||
2 - EAST
|
||||
3 - SOUTH
|
||||
4 - WEST
|
||||
*/
|
||||
* 1 - NORTH
|
||||
* 2 - EAST
|
||||
* 3 - SOUTH
|
||||
* 4 - WEST
|
||||
*/
|
||||
public static boolean checkDirectionOfRitualValid(World world, int x, int y, int z, int ritualID, int direction)
|
||||
{
|
||||
List<RitualComponent> ritual = Rituals.getRitualList(ritualID);
|
||||
|
@ -895,8 +894,7 @@ public class Rituals
|
|||
if (ritualID <= ritualList.size())
|
||||
{
|
||||
return ritualList.get(ritualID - 1).actCost;
|
||||
}
|
||||
else
|
||||
} else
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
@ -985,8 +983,7 @@ public class Rituals
|
|||
if (ritualID <= ritualList.size())
|
||||
{
|
||||
return ritualList.get(ritualID - 1).obtainComponents();
|
||||
}
|
||||
else
|
||||
} else
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
@ -1060,8 +1057,7 @@ public class Rituals
|
|||
if (ritualList.get(id) != null)
|
||||
{
|
||||
return ritualList.get(id).getRitualName();
|
||||
}
|
||||
else
|
||||
} else
|
||||
{
|
||||
return "";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue