use of net.fabricmc.fabric.api.object.builder.v1.block.FabricBlockSettings in project bewitchment by MoriyaShiine.
the class BWObjects method createAltar.
private static Block[] createAltar(String name, FabricBlockSettings settings) {
settings = settings.luminance(blockState -> blockState.get(Properties.LEVEL_15));
Block[] altars = new Block[21];
WitchAltarBlock unformed = create(name, new WitchAltarBlock(settings, null, false), true);
altars[0] = unformed;
altars[1] = create("moss_" + name, new WitchAltarBlock(settings, unformed, true), false);
for (int i = 0; i < DyeColor.values().length; i++) {
altars[i + 2] = create(DyeColor.byId(i).getName() + "_" + name, new WitchAltarBlock(settings, unformed, true), false);
}
altars[18] = create("hedgewitch_" + name, new WitchAltarBlock(settings, unformed, true), false);
altars[19] = create("alchemist_" + name, new WitchAltarBlock(settings, unformed, true), false);
altars[20] = create("besmirched_" + name, new WitchAltarBlock(settings, unformed, true), false);
return altars;
}
Aggregations