Search in sources :

Example 1 with WitchAltarBlock

use of moriyashiine.bewitchment.api.block.WitchAltarBlock 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;
}
Also used : CandelabraBlock(moriyashiine.bewitchment.api.block.CandelabraBlock) PoppetItem(moriyashiine.bewitchment.api.item.PoppetItem) Random(java.util.Random) Properties(net.minecraft.state.property.Properties) TerraformSignBlock(com.terraformersmc.terraform.sign.block.TerraformSignBlock) SoundEvents(net.minecraft.sound.SoundEvents) Map(java.util.Map) BroomItem(moriyashiine.bewitchment.api.item.BroomItem) EquipmentSlot(net.minecraft.entity.EquipmentSlot) com.terraformersmc.terraform.wood.block(com.terraformersmc.terraform.wood.block) BewitchmentAPI(moriyashiine.bewitchment.api.BewitchmentAPI) Bewitchment(moriyashiine.bewitchment.common.Bewitchment) moriyashiine.bewitchment.common.block.dragonsblood(moriyashiine.bewitchment.common.block.dragonsblood) JuniperSaplingGenerator(moriyashiine.bewitchment.common.world.generator.tree.generator.JuniperSaplingGenerator) TrinketItem(dev.emi.trinkets.api.TrinketItem) LivingEntity(net.minecraft.entity.LivingEntity) Rarity(net.minecraft.util.Rarity) net.minecraft.item(net.minecraft.item) PoppetShelfBlock(moriyashiine.bewitchment.api.block.PoppetShelfBlock) CypressSaplingGenerator(moriyashiine.bewitchment.common.world.generator.tree.generator.CypressSaplingGenerator) DragonsBloodSaplingGenerator(moriyashiine.bewitchment.common.world.generator.tree.generator.DragonsBloodSaplingGenerator) WitchAltarBlock(moriyashiine.bewitchment.api.block.WitchAltarBlock) UniformIntProvider(net.minecraft.util.math.intprovider.UniformIntProvider) DyeColor(net.minecraft.util.DyeColor) Identifier(net.minecraft.util.Identifier) moriyashiine.bewitchment.common.block.juniper(moriyashiine.bewitchment.common.block.juniper) BlockTags(net.minecraft.tag.BlockTags) FlammableBlockRegistry(net.fabricmc.fabric.api.registry.FlammableBlockRegistry) CompostingChanceRegistry(net.fabricmc.fabric.api.registry.CompostingChanceRegistry) ServerWorld(net.minecraft.server.world.ServerWorld) BWSaplingBlock(moriyashiine.bewitchment.common.block.util.BWSaplingBlock) BlocksAccessor(moriyashiine.bewitchment.mixin.BlocksAccessor) LinkedHashMap(java.util.LinkedHashMap) FabricBlockSettings.copyOf(net.fabricmc.fabric.api.object.builder.v1.block.FabricBlockSettings.copyOf) net.minecraft.block(net.minecraft.block) moriyashiine.bewitchment.common.item(moriyashiine.bewitchment.common.item) FuelRegistry(net.fabricmc.fabric.api.registry.FuelRegistry) moriyashiine.bewitchment.common.block.elder(moriyashiine.bewitchment.common.block.elder) FabricBlockSettings.of(net.fabricmc.fabric.api.object.builder.v1.block.FabricBlockSettings.of) Entity(net.minecraft.entity.Entity) BWBookItem(moriyashiine.bewitchment.common.item.util.BWBookItem) World(net.minecraft.world.World) FabricBlockSettings(net.fabricmc.fabric.api.object.builder.v1.block.FabricBlockSettings) BWCropBlock(moriyashiine.bewitchment.common.block.util.BWCropBlock) BlockPos(net.minecraft.util.math.BlockPos) Registry(net.minecraft.util.registry.Registry) moriyashiine.bewitchment.common.block(moriyashiine.bewitchment.common.block) ElderSaplingGenerator(moriyashiine.bewitchment.common.world.generator.tree.generator.ElderSaplingGenerator) TerraformWallSignBlock(com.terraformersmc.terraform.sign.block.TerraformWallSignBlock) SigilItem(moriyashiine.bewitchment.api.item.SigilItem) BlockSoundGroup(net.minecraft.sound.BlockSoundGroup) WitchAltarBlock(moriyashiine.bewitchment.api.block.WitchAltarBlock) CandelabraBlock(moriyashiine.bewitchment.api.block.CandelabraBlock) TerraformSignBlock(com.terraformersmc.terraform.sign.block.TerraformSignBlock) PoppetShelfBlock(moriyashiine.bewitchment.api.block.PoppetShelfBlock) WitchAltarBlock(moriyashiine.bewitchment.api.block.WitchAltarBlock) BWSaplingBlock(moriyashiine.bewitchment.common.block.util.BWSaplingBlock) BWCropBlock(moriyashiine.bewitchment.common.block.util.BWCropBlock) TerraformWallSignBlock(com.terraformersmc.terraform.sign.block.TerraformWallSignBlock)

Aggregations

TerraformSignBlock (com.terraformersmc.terraform.sign.block.TerraformSignBlock)1 TerraformWallSignBlock (com.terraformersmc.terraform.sign.block.TerraformWallSignBlock)1 com.terraformersmc.terraform.wood.block (com.terraformersmc.terraform.wood.block)1 TrinketItem (dev.emi.trinkets.api.TrinketItem)1 LinkedHashMap (java.util.LinkedHashMap)1 Map (java.util.Map)1 Random (java.util.Random)1 BewitchmentAPI (moriyashiine.bewitchment.api.BewitchmentAPI)1 CandelabraBlock (moriyashiine.bewitchment.api.block.CandelabraBlock)1 PoppetShelfBlock (moriyashiine.bewitchment.api.block.PoppetShelfBlock)1 WitchAltarBlock (moriyashiine.bewitchment.api.block.WitchAltarBlock)1 BroomItem (moriyashiine.bewitchment.api.item.BroomItem)1 PoppetItem (moriyashiine.bewitchment.api.item.PoppetItem)1 SigilItem (moriyashiine.bewitchment.api.item.SigilItem)1 Bewitchment (moriyashiine.bewitchment.common.Bewitchment)1 moriyashiine.bewitchment.common.block (moriyashiine.bewitchment.common.block)1 moriyashiine.bewitchment.common.block.dragonsblood (moriyashiine.bewitchment.common.block.dragonsblood)1 moriyashiine.bewitchment.common.block.elder (moriyashiine.bewitchment.common.block.elder)1 moriyashiine.bewitchment.common.block.juniper (moriyashiine.bewitchment.common.block.juniper)1 BWCropBlock (moriyashiine.bewitchment.common.block.util.BWCropBlock)1