base mod created
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
package net.minecraft.block;
|
||||
|
||||
import javax.annotation.Nullable;
|
||||
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 BlockButtonWood extends BlockButton
|
||||
{
|
||||
protected BlockButtonWood()
|
||||
{
|
||||
super(true);
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
protected void playReleaseSound(World worldIn, BlockPos pos)
|
||||
{
|
||||
worldIn.playSound((EntityPlayer)null, pos, SoundEvents.BLOCK_WOOD_BUTTON_CLICK_OFF, SoundCategory.BLOCKS, 0.3F, 0.5F);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user