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);
}
Aggregations