package com.progwml6.natura.nether.block.button; import javax.annotation.Nullable; import com.progwml6.natura.library.NaturaRegistry; import net.minecraft.block.BlockButton; import net.minecraft.block.SoundType; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.init.SoundEvents; import net.minecraft.util.SoundCategory; import net.minecraft.util.math.BlockPos; import net.minecraft.world.World; public class BlockNetherButton extends BlockButton { public BlockNetherButton() { super(false); this.setHardness(0.5F); this.setSoundType(SoundType.WOOD); this.setCreativeTab(NaturaRegistry.tabWorld); } @Override protected void playClickSound(@Nullable EntityPlayer player, World worldIn, BlockPos pos) { worldIn.playSound(player, pos, SoundEvents.BLOCK_WOOD_BUTTON_CLICK_ON, SoundCategory.BLOCKS, 0.3F, 0.6F); } @Override protected void playReleaseSound(World worldIn, BlockPos pos) { worldIn.playSound((EntityPlayer) null, pos, SoundEvents.BLOCK_WOOD_BUTTON_CLICK_OFF, SoundCategory.BLOCKS, 0.3F, 0.5F); } }