package com.zivilon.cinder_loe.mixins;

import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Overwrite;
import org.spongepowered.asm.mixin.Shadow;

import lotr.common.world.structure2.LOTRWorldGenMumakSkeleton;

import net.minecraft.block.Block;

import java.util.Random;

import com.zivilon.cinder_loe.CinderLoE;

@Mixin(LOTRWorldGenMumakSkeleton.class)
public class MixinLOTRWorldGenMumakSkeleton {
    
    @Shadow(remap = false)
    protected Block boneBlock;

    @Shadow(remap = false)
    protected int boneMeta;

    /**
    * @author Shinare
    * @reason Replaces bone blocks with ivory blocks to make these structures unique
    */
    @Overwrite(remap = false)
    protected void setupRandomBlocks(Random random) {
        this.boneBlock = CinderLoE.ivoryBlock;
        this.boneMeta = 3;
    }
}
