package org.cyclops.integrateddynamics.block;

import com.google.common.collect.Lists;
import net.minecraft.block.SoundType;
import net.minecraft.block.properties.PropertyInteger;
import net.minecraft.block.state.IBlockState;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.IBlockAccess;
import org.cyclops.cyclopscore.block.property.BlockProperty;
import org.cyclops.cyclopscore.config.configurable.ConfigurableBlockLog;
import org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfig;
import org.cyclops.integrateddynamics.item.ItemCrystalizedMenrilChunkConfig;

import javax.annotation.Nullable;
import java.util.List;
import java.util.Random;

/**
 * Menril log block that is filled.
 * @author rubensworks
 */
public class BlockMenrilLogFilled extends ConfigurableBlockLog {

    @BlockProperty
    public static final PropertyInteger SIDE = PropertyInteger.create("side", 0, 3);

    private static BlockMenrilLogFilled _instance = null;

    /**
     * Get the unique instance.
     *
     * @return The instance.
     */
    public static BlockMenrilLogFilled getInstance() {
        return _instance;
    }

    /**
     * Make a new block instance.
     *
     * @param eConfig Config for this block.
     */
    public BlockMenrilLogFilled(ExtendedConfig eConfig) {
        super(eConfig);
        this.setHardness(2.5F);
    }

    @Nullable
    @Override
    public Item getItemDropped(IBlockState state, Random rand, int fortune) {
        return Item.getItemFromBlock(BlockMenrilLog.getInstance());
    }

    @SuppressWarnings("deprecation")
    @Override
    public SoundType getSoundType() {
        return SoundType.WOOD;
    }

    @Override
    public List<ItemStack> getDrops(IBlockAccess world, BlockPos blockPos, IBlockState blockStatedata, int fortune) {
        List<ItemStack> drops = Lists.newArrayList();
        drops.add(new ItemStack(getItemDropped(blockStatedata, RANDOM, fortune)));
        drops.add(new ItemStack(ItemCrystalizedMenrilChunkConfig._instance.getItemInstance(), 1 + RANDOM.nextInt(3 + fortune)));
        return drops;
    }
}

@@ -219,16 +219,65 @@
 kState;%0A
+import net.minecraft.entity.player.EntityPlayer;%0A
 import n
@@ -419,16 +419,51 @@
 Access;%0A
+import net.minecraft.world.World;%0A%0A
 import o
@@ -2243,11 +2243,156 @@
 s;%0A    %7D
+%0A%0A    @Override%0A    public boolean canSilkHarvest(World world, BlockPos pos, IBlockState state, EntityPlayer player) %7B%0A        return true;%0A    %7D
 %0A%7D%0A

Make enriched menril logs silk touchable