Search in sources :

Example 16 with RitualComponent

use of WayofTime.alchemicalWizardry.api.rituals.RitualComponent in project BloodMagic by WayofTime.

the class RitualEffectSummonMeteor method getRitualComponentList.

@Override
public List<RitualComponent> getRitualComponentList() {
    ArrayList<RitualComponent> meteorRitual = new ArrayList();
    meteorRitual.add(new RitualComponent(2, 0, 0, RitualComponent.FIRE));
    meteorRitual.add(new RitualComponent(-2, 0, 0, RitualComponent.FIRE));
    meteorRitual.add(new RitualComponent(0, 0, 2, RitualComponent.FIRE));
    meteorRitual.add(new RitualComponent(0, 0, -2, RitualComponent.FIRE));
    meteorRitual.add(new RitualComponent(3, 0, 1, RitualComponent.AIR));
    meteorRitual.add(new RitualComponent(3, 0, -1, RitualComponent.AIR));
    meteorRitual.add(new RitualComponent(-3, 0, 1, RitualComponent.AIR));
    meteorRitual.add(new RitualComponent(-3, 0, -1, RitualComponent.AIR));
    meteorRitual.add(new RitualComponent(1, 0, 3, RitualComponent.AIR));
    meteorRitual.add(new RitualComponent(-1, 0, 3, RitualComponent.AIR));
    meteorRitual.add(new RitualComponent(1, 0, -3, RitualComponent.AIR));
    meteorRitual.add(new RitualComponent(-1, 0, -3, RitualComponent.AIR));
    meteorRitual.add(new RitualComponent(4, 0, 2, RitualComponent.AIR));
    meteorRitual.add(new RitualComponent(4, 0, -2, RitualComponent.AIR));
    meteorRitual.add(new RitualComponent(-4, 0, 2, RitualComponent.AIR));
    meteorRitual.add(new RitualComponent(-4, 0, -2, RitualComponent.AIR));
    meteorRitual.add(new RitualComponent(2, 0, 4, RitualComponent.AIR));
    meteorRitual.add(new RitualComponent(-2, 0, 4, RitualComponent.AIR));
    meteorRitual.add(new RitualComponent(2, 0, -4, RitualComponent.AIR));
    meteorRitual.add(new RitualComponent(-2, 0, -4, RitualComponent.AIR));
    meteorRitual.add(new RitualComponent(5, 0, 3, RitualComponent.DUSK));
    meteorRitual.add(new RitualComponent(5, 0, -3, RitualComponent.DUSK));
    meteorRitual.add(new RitualComponent(-5, 0, 3, RitualComponent.DUSK));
    meteorRitual.add(new RitualComponent(-5, 0, -3, RitualComponent.DUSK));
    meteorRitual.add(new RitualComponent(3, 0, 5, RitualComponent.DUSK));
    meteorRitual.add(new RitualComponent(-3, 0, 5, RitualComponent.DUSK));
    meteorRitual.add(new RitualComponent(3, 0, -5, RitualComponent.DUSK));
    meteorRitual.add(new RitualComponent(-3, 0, -5, RitualComponent.DUSK));
    meteorRitual.add(new RitualComponent(-4, 0, -4, RitualComponent.DUSK));
    meteorRitual.add(new RitualComponent(-4, 0, 4, RitualComponent.DUSK));
    meteorRitual.add(new RitualComponent(4, 0, 4, RitualComponent.DUSK));
    meteorRitual.add(new RitualComponent(4, 0, -4, RitualComponent.DUSK));
    for (int i = 4; i <= 6; i++) {
        meteorRitual.add(new RitualComponent(i, 0, 0, RitualComponent.EARTH));
        meteorRitual.add(new RitualComponent(-i, 0, 0, RitualComponent.EARTH));
        meteorRitual.add(new RitualComponent(0, 0, i, RitualComponent.EARTH));
        meteorRitual.add(new RitualComponent(0, 0, -i, RitualComponent.EARTH));
    }
    meteorRitual.add(new RitualComponent(8, 0, 0, RitualComponent.EARTH));
    meteorRitual.add(new RitualComponent(-8, 0, 0, RitualComponent.EARTH));
    meteorRitual.add(new RitualComponent(0, 0, 8, RitualComponent.EARTH));
    meteorRitual.add(new RitualComponent(0, 0, -8, RitualComponent.EARTH));
    meteorRitual.add(new RitualComponent(8, 1, 0, RitualComponent.EARTH));
    meteorRitual.add(new RitualComponent(-8, 1, 0, RitualComponent.EARTH));
    meteorRitual.add(new RitualComponent(0, 1, 8, RitualComponent.EARTH));
    meteorRitual.add(new RitualComponent(0, 1, -8, RitualComponent.EARTH));
    meteorRitual.add(new RitualComponent(7, 1, 0, RitualComponent.EARTH));
    meteorRitual.add(new RitualComponent(-7, 1, 0, RitualComponent.EARTH));
    meteorRitual.add(new RitualComponent(0, 1, 7, RitualComponent.EARTH));
    meteorRitual.add(new RitualComponent(0, 1, -7, RitualComponent.EARTH));
    meteorRitual.add(new RitualComponent(7, 2, 0, RitualComponent.FIRE));
    meteorRitual.add(new RitualComponent(-7, 2, 0, RitualComponent.FIRE));
    meteorRitual.add(new RitualComponent(0, 2, 7, RitualComponent.FIRE));
    meteorRitual.add(new RitualComponent(0, 2, -7, RitualComponent.FIRE));
    meteorRitual.add(new RitualComponent(6, 2, 0, RitualComponent.FIRE));
    meteorRitual.add(new RitualComponent(-6, 2, 0, RitualComponent.FIRE));
    meteorRitual.add(new RitualComponent(0, 2, 6, RitualComponent.FIRE));
    meteorRitual.add(new RitualComponent(0, 2, -6, RitualComponent.FIRE));
    meteorRitual.add(new RitualComponent(6, 3, 0, RitualComponent.WATER));
    meteorRitual.add(new RitualComponent(-6, 3, 0, RitualComponent.WATER));
    meteorRitual.add(new RitualComponent(0, 3, 6, RitualComponent.WATER));
    meteorRitual.add(new RitualComponent(0, 3, -6, RitualComponent.WATER));
    meteorRitual.add(new RitualComponent(5, 3, 0, RitualComponent.WATER));
    meteorRitual.add(new RitualComponent(-5, 3, 0, RitualComponent.WATER));
    meteorRitual.add(new RitualComponent(0, 3, 5, RitualComponent.WATER));
    meteorRitual.add(new RitualComponent(0, 3, -5, RitualComponent.WATER));
    meteorRitual.add(new RitualComponent(5, 4, 0, RitualComponent.AIR));
    meteorRitual.add(new RitualComponent(-5, 4, 0, RitualComponent.AIR));
    meteorRitual.add(new RitualComponent(0, 4, 5, RitualComponent.AIR));
    meteorRitual.add(new RitualComponent(0, 4, -5, RitualComponent.AIR));
    for (int i = -1; i <= 1; i++) {
        meteorRitual.add(new RitualComponent(i, 4, 4, RitualComponent.AIR));
        meteorRitual.add(new RitualComponent(i, 4, -4, RitualComponent.AIR));
        meteorRitual.add(new RitualComponent(4, 4, i, RitualComponent.AIR));
        meteorRitual.add(new RitualComponent(-4, 4, i, RitualComponent.AIR));
    }
    meteorRitual.add(new RitualComponent(2, 4, 4, RitualComponent.WATER));
    meteorRitual.add(new RitualComponent(4, 4, 2, RitualComponent.WATER));
    meteorRitual.add(new RitualComponent(2, 4, -4, RitualComponent.WATER));
    meteorRitual.add(new RitualComponent(-4, 4, 2, RitualComponent.WATER));
    meteorRitual.add(new RitualComponent(-2, 4, 4, RitualComponent.WATER));
    meteorRitual.add(new RitualComponent(4, 4, -2, RitualComponent.WATER));
    meteorRitual.add(new RitualComponent(-2, 4, -4, RitualComponent.WATER));
    meteorRitual.add(new RitualComponent(-4, 4, -2, RitualComponent.WATER));
    meteorRitual.add(new RitualComponent(2, 4, 3, RitualComponent.FIRE));
    meteorRitual.add(new RitualComponent(3, 4, 2, RitualComponent.FIRE));
    meteorRitual.add(new RitualComponent(3, 4, 3, RitualComponent.FIRE));
    meteorRitual.add(new RitualComponent(-2, 4, 3, RitualComponent.FIRE));
    meteorRitual.add(new RitualComponent(3, 4, -2, RitualComponent.FIRE));
    meteorRitual.add(new RitualComponent(3, 4, -3, RitualComponent.FIRE));
    meteorRitual.add(new RitualComponent(2, 4, -3, RitualComponent.FIRE));
    meteorRitual.add(new RitualComponent(-3, 4, 2, RitualComponent.FIRE));
    meteorRitual.add(new RitualComponent(-3, 4, 3, RitualComponent.FIRE));
    meteorRitual.add(new RitualComponent(-2, 4, -3, RitualComponent.FIRE));
    meteorRitual.add(new RitualComponent(-3, 4, -2, RitualComponent.FIRE));
    meteorRitual.add(new RitualComponent(-3, 4, -3, RitualComponent.FIRE));
    return meteorRitual;
}
Also used : ArrayList(java.util.ArrayList) RitualComponent(WayofTime.alchemicalWizardry.api.rituals.RitualComponent)

Example 17 with RitualComponent

use of WayofTime.alchemicalWizardry.api.rituals.RitualComponent in project BloodMagic by WayofTime.

the class RitualEffectUnbinding method getRitualComponentList.

@Override
public List<RitualComponent> getRitualComponentList() {
    ArrayList<RitualComponent> unbindingRitual = new ArrayList<RitualComponent>();
    unbindingRitual.add(new RitualComponent(-2, 0, 0, 4));
    unbindingRitual.add(new RitualComponent(2, 0, 0, 4));
    unbindingRitual.add(new RitualComponent(0, 0, 2, 4));
    unbindingRitual.add(new RitualComponent(0, 0, -2, 4));
    unbindingRitual.add(new RitualComponent(-2, 0, -2, 3));
    unbindingRitual.add(new RitualComponent(-2, 0, -3, 3));
    unbindingRitual.add(new RitualComponent(-3, 0, -2, 3));
    unbindingRitual.add(new RitualComponent(2, 0, -2, 3));
    unbindingRitual.add(new RitualComponent(2, 0, -3, 3));
    unbindingRitual.add(new RitualComponent(3, 0, -2, 3));
    unbindingRitual.add(new RitualComponent(-2, 0, 2, 3));
    unbindingRitual.add(new RitualComponent(-2, 0, 3, 3));
    unbindingRitual.add(new RitualComponent(-3, 0, 2, 3));
    unbindingRitual.add(new RitualComponent(2, 0, 2, 3));
    unbindingRitual.add(new RitualComponent(2, 0, 3, 3));
    unbindingRitual.add(new RitualComponent(3, 0, 2, 3));
    unbindingRitual.add(new RitualComponent(3, 1, 3, 0));
    unbindingRitual.add(new RitualComponent(3, 1, -3, 0));
    unbindingRitual.add(new RitualComponent(-3, 1, -3, 0));
    unbindingRitual.add(new RitualComponent(-3, 1, 3, 0));
    unbindingRitual.add(new RitualComponent(3, 2, 3, 0));
    unbindingRitual.add(new RitualComponent(3, 2, -3, 0));
    unbindingRitual.add(new RitualComponent(-3, 2, -3, 0));
    unbindingRitual.add(new RitualComponent(-3, 2, 3, 0));
    unbindingRitual.add(new RitualComponent(3, 3, 3, 2));
    unbindingRitual.add(new RitualComponent(3, 3, -3, 2));
    unbindingRitual.add(new RitualComponent(-3, 3, -3, 2));
    unbindingRitual.add(new RitualComponent(-3, 3, 3, 2));
    unbindingRitual.add(new RitualComponent(-5, 0, 0, 2));
    unbindingRitual.add(new RitualComponent(5, 0, 0, 2));
    unbindingRitual.add(new RitualComponent(0, 0, 5, 2));
    unbindingRitual.add(new RitualComponent(0, 0, -5, 2));
    return unbindingRitual;
}
Also used : ArrayList(java.util.ArrayList) RitualComponent(WayofTime.alchemicalWizardry.api.rituals.RitualComponent)

Example 18 with RitualComponent

use of WayofTime.alchemicalWizardry.api.rituals.RitualComponent in project BloodMagic by WayofTime.

the class PageRitualMultiBlock method getPageForRitual.

public static PageRitualMultiBlock getPageForRitual(List<RitualComponent> ritualComponents) {
    int minX = 0;
    int minY = 0;
    int minZ = 0;
    int maxX = 0;
    int maxY = 0;
    int maxZ = 0;
    for (RitualComponent comp : ritualComponents) {
        minX = Math.min(comp.getX(), minX);
        minY = Math.min(comp.getY(), minY);
        minZ = Math.min(comp.getZ(), minZ);
        maxX = Math.max(comp.getX(), maxX);
        maxY = Math.max(comp.getY(), maxY);
        maxZ = Math.max(comp.getZ(), maxZ);
    }
    System.out.println("Min: (" + minX + ", " + minY + ", " + minZ + "), Max: (" + maxX + ", " + maxY + ", " + maxZ + ")");
    // First value is vertical, second is down to the left, third is down to the right
    ItemStack[][][] tempStructure = new ItemStack[maxY - minY + 1][maxX - minX + 1][maxZ - minZ + 1];
    for (RitualComponent comp : ritualComponents) {
        tempStructure[comp.getY() - minY][comp.getX() - minX][comp.getZ() - minZ] = getStackForRitualStone(comp.getStoneType());
    }
    return new PageRitualMultiBlock(tempStructure);
}
Also used : RitualComponent(WayofTime.alchemicalWizardry.api.rituals.RitualComponent) ItemStack(net.minecraft.item.ItemStack)

Example 19 with RitualComponent

use of WayofTime.alchemicalWizardry.api.rituals.RitualComponent in project BloodMagic by WayofTime.

the class RitualEffectApiaryOverclock method getRitualComponentList.

@Override
public List<RitualComponent> getRitualComponentList() {
    ArrayList<RitualComponent> apiaryRitual = new ArrayList();
    apiaryRitual.add(new RitualComponent(1, 0, 0, RitualComponent.DUSK));
    apiaryRitual.add(new RitualComponent(1, 0, 1, RitualComponent.DUSK));
    apiaryRitual.add(new RitualComponent(1, 0, -1, RitualComponent.DUSK));
    apiaryRitual.add(new RitualComponent(-1, 0, -1, RitualComponent.DUSK));
    apiaryRitual.add(new RitualComponent(-1, 0, 1, RitualComponent.DUSK));
    apiaryRitual.add(new RitualComponent(-1, 0, 0, RitualComponent.DUSK));
    apiaryRitual.add(new RitualComponent(0, 0, -1, RitualComponent.DUSK));
    apiaryRitual.add(new RitualComponent(0, 0, 1, RitualComponent.DUSK));
    return apiaryRitual;
}
Also used : ArrayList(java.util.ArrayList) RitualComponent(WayofTime.alchemicalWizardry.api.rituals.RitualComponent)

Example 20 with RitualComponent

use of WayofTime.alchemicalWizardry.api.rituals.RitualComponent in project BloodMagic by WayofTime.

the class RitualEffectBinding method getRitualComponentList.

@Override
public List<RitualComponent> getRitualComponentList() {
    ArrayList<RitualComponent> boundSoulRitual = new ArrayList();
    boundSoulRitual.add(new RitualComponent(3, 0, 0, 2));
    boundSoulRitual.add(new RitualComponent(-3, 0, 0, 2));
    boundSoulRitual.add(new RitualComponent(0, 0, 3, 2));
    boundSoulRitual.add(new RitualComponent(0, 0, -3, 2));
    boundSoulRitual.add(new RitualComponent(2, 0, 2, 4));
    boundSoulRitual.add(new RitualComponent(-2, 0, 2, 4));
    boundSoulRitual.add(new RitualComponent(2, 0, -2, 4));
    boundSoulRitual.add(new RitualComponent(-2, 0, -2, 4));
    boundSoulRitual.add(new RitualComponent(4, 2, 0, 1));
    boundSoulRitual.add(new RitualComponent(-4, 2, 0, 1));
    boundSoulRitual.add(new RitualComponent(0, 2, 4, 1));
    boundSoulRitual.add(new RitualComponent(0, 2, -4, 1));
    boundSoulRitual.add(new RitualComponent(3, 2, 3, 3));
    boundSoulRitual.add(new RitualComponent(3, 2, -3, 3));
    boundSoulRitual.add(new RitualComponent(-3, 2, 3, 3));
    boundSoulRitual.add(new RitualComponent(-3, 2, -3, 3));
    boundSoulRitual.add(new RitualComponent(4, 1, 0, 0));
    boundSoulRitual.add(new RitualComponent(-4, 1, 0, 0));
    boundSoulRitual.add(new RitualComponent(0, 1, 4, 0));
    boundSoulRitual.add(new RitualComponent(0, 1, -4, 0));
    boundSoulRitual.add(new RitualComponent(3, 1, 3, 0));
    boundSoulRitual.add(new RitualComponent(3, 1, -3, 0));
    boundSoulRitual.add(new RitualComponent(-3, 1, 3, 0));
    boundSoulRitual.add(new RitualComponent(-3, 1, -3, 0));
    return boundSoulRitual;
}
Also used : ArrayList(java.util.ArrayList) RitualComponent(WayofTime.alchemicalWizardry.api.rituals.RitualComponent)

Aggregations

RitualComponent (WayofTime.alchemicalWizardry.api.rituals.RitualComponent)39 ArrayList (java.util.ArrayList)34 ItemStack (net.minecraft.item.ItemStack)3 TileEntity (net.minecraft.tileentity.TileEntity)3 TEMasterStone (WayofTime.alchemicalWizardry.common.tileEntity.TEMasterStone)2 Vector3 (WayofTime.alchemicalWizardry.api.Vector3)1 IMasterRitualStone (WayofTime.alchemicalWizardry.api.rituals.IMasterRitualStone)1 RitualEffect (WayofTime.alchemicalWizardry.api.rituals.RitualEffect)1 RitualStone (WayofTime.alchemicalWizardry.common.block.RitualStone)1 ItemRitualDiviner (WayofTime.alchemicalWizardry.common.items.ItemRitualDiviner)1 SubscribeEvent (cpw.mods.fml.common.eventhandler.SubscribeEvent)1 Block (net.minecraft.block.Block)1 Minecraft (net.minecraft.client.Minecraft)1 EntityClientPlayerMP (net.minecraft.client.entity.EntityClientPlayerMP)1 EntityItem (net.minecraft.entity.item.EntityItem)1 World (net.minecraft.world.World)1