Search in sources :

Example 6 with MultiblockStructureDefinition

use of am2.api.blocks.MultiblockStructureDefinition in project ArsMagica2 by Mithion.

the class RitualShapeHelper method initHourglass.

private void initHourglass() {
    hourglass = new MultiblockStructureDefinition("hourglass");
    StructureGroup eastWest = hourglass.createGroup("WE", 2);
    StructureGroup northSouth = hourglass.createGroup("NS", 2);
    //center
    hourglass.addAllowedBlock(eastWest, 0, 0, 0, BlocksCommonProxy.wizardChalk);
    //offset
    hourglass.addAllowedBlock(eastWest, -1, 0, 1, BlocksCommonProxy.wizardChalk);
    hourglass.addAllowedBlock(eastWest, -1, 0, -1, BlocksCommonProxy.wizardChalk);
    hourglass.addAllowedBlock(eastWest, 1, 0, 1, BlocksCommonProxy.wizardChalk);
    hourglass.addAllowedBlock(eastWest, 1, 0, -1, BlocksCommonProxy.wizardChalk);
    //edges
    hourglass.addAllowedBlock(eastWest, -2, 0, 1, BlocksCommonProxy.wizardChalk);
    hourglass.addAllowedBlock(eastWest, -2, 0, 0, BlocksCommonProxy.wizardChalk);
    hourglass.addAllowedBlock(eastWest, -2, 0, -1, BlocksCommonProxy.wizardChalk);
    hourglass.addAllowedBlock(eastWest, 2, 0, 1, BlocksCommonProxy.wizardChalk);
    hourglass.addAllowedBlock(eastWest, 2, 0, 0, BlocksCommonProxy.wizardChalk);
    hourglass.addAllowedBlock(eastWest, 2, 0, -1, BlocksCommonProxy.wizardChalk);
    //center
    hourglass.addAllowedBlock(northSouth, 0, 0, 0, BlocksCommonProxy.wizardChalk);
    //offset
    hourglass.addAllowedBlock(northSouth, 1, 0, -1, BlocksCommonProxy.wizardChalk);
    hourglass.addAllowedBlock(northSouth, -1, 0, -1, BlocksCommonProxy.wizardChalk);
    hourglass.addAllowedBlock(northSouth, 1, 0, 1, BlocksCommonProxy.wizardChalk);
    hourglass.addAllowedBlock(northSouth, -1, 0, 1, BlocksCommonProxy.wizardChalk);
    //edges
    hourglass.addAllowedBlock(northSouth, 1, 0, -2, BlocksCommonProxy.wizardChalk);
    hourglass.addAllowedBlock(northSouth, 0, 0, -2, BlocksCommonProxy.wizardChalk);
    hourglass.addAllowedBlock(northSouth, -1, 0, -2, BlocksCommonProxy.wizardChalk);
    hourglass.addAllowedBlock(northSouth, 1, 0, 2, BlocksCommonProxy.wizardChalk);
    hourglass.addAllowedBlock(northSouth, 0, 0, 2, BlocksCommonProxy.wizardChalk);
    hourglass.addAllowedBlock(northSouth, -1, 0, 2, BlocksCommonProxy.wizardChalk);
}
Also used : StructureGroup(am2.api.blocks.MultiblockStructureDefinition.StructureGroup) MultiblockStructureDefinition(am2.api.blocks.MultiblockStructureDefinition)

Aggregations

MultiblockStructureDefinition (am2.api.blocks.MultiblockStructureDefinition)6 StructureGroup (am2.api.blocks.MultiblockStructureDefinition.StructureGroup)2 IRitualInteraction (am2.api.spell.component.interfaces.IRitualInteraction)1 ISkillTreeEntry (am2.api.spell.component.interfaces.ISkillTreeEntry)1 GuiArcaneCompendium (am2.guis.GuiArcaneCompendium)1 SideOnly (cpw.mods.fml.relauncher.SideOnly)1 Field (java.lang.reflect.Field)1 Block (net.minecraft.block.Block)1