Java Code Examples for net.minecraft.block.Block#SoundType

The following examples show how to use net.minecraft.block.Block#SoundType . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Entity.java    From TickDynamic with MIT License 5 votes vote down vote up
protected void func_145780_a(int p_145780_1_, int p_145780_2_, int p_145780_3_, Block p_145780_4_)
{
    Block.SoundType soundtype = p_145780_4_.stepSound;

    if (this.worldObj.getBlock(p_145780_1_, p_145780_2_ + 1, p_145780_3_) == Blocks.snow_layer)
    {
        soundtype = Blocks.snow_layer.stepSound;
        this.playSound(soundtype.getStepResourcePath(), soundtype.getVolume() * 0.15F, soundtype.getPitch());
    }
    else if (!p_145780_4_.getMaterial().isLiquid())
    {
        this.playSound(soundtype.getStepResourcePath(), soundtype.getVolume() * 0.15F, soundtype.getPitch());
    }
}
 
Example 2
Source File: QuintupleCompressedCoalProperties.java    From NewHorizonsCoreMod with GNU General Public License v3.0 4 votes vote down vote up
@Override
public Block.SoundType getStepSound() { return Block.soundTypeStone; }
 
Example 3
Source File: MytrylProperties.java    From NewHorizonsCoreMod with GNU General Public License v3.0 4 votes vote down vote up
@Override
public Block.SoundType getStepSound() { return Block.soundTypeStone; }
 
Example 4
Source File: QuantinumProperties.java    From NewHorizonsCoreMod with GNU General Public License v3.0 4 votes vote down vote up
@Override
public Block.SoundType getStepSound() { return Block.soundTypeStone; }
 
Example 5
Source File: TitaniumPlatedReinforcedStoneProperties.java    From NewHorizonsCoreMod with GNU General Public License v3.0 4 votes vote down vote up
@Override
public Block.SoundType getStepSound() { return Block.soundTypeMetal; }
 
Example 6
Source File: QuintupleCompressedCoalCokeProperties.java    From NewHorizonsCoreMod with GNU General Public License v3.0 4 votes vote down vote up
@Override
public Block.SoundType getStepSound() { return Block.soundTypeStone; }
 
Example 7
Source File: QuadrupleCompressedCoalCokeProperties.java    From NewHorizonsCoreMod with GNU General Public License v3.0 4 votes vote down vote up
@Override
public Block.SoundType getStepSound() { return Block.soundTypeStone; }
 
Example 8
Source File: CompressedCoalCokeProperties.java    From NewHorizonsCoreMod with GNU General Public License v3.0 4 votes vote down vote up
@Override
public Block.SoundType getStepSound() { return Block.soundTypeStone; }
 
Example 9
Source File: SteelPlatedReinforcedStoneProperties.java    From NewHorizonsCoreMod with GNU General Public License v3.0 4 votes vote down vote up
@Override
public Block.SoundType getStepSound() { return Block.soundTypeMetal; }
 
Example 10
Source File: BloodyVoidProperties.java    From NewHorizonsCoreMod with GNU General Public License v3.0 4 votes vote down vote up
@Override
public Block.SoundType getStepSound() { return Block.soundTypeStone; }
 
Example 11
Source File: TripleCompressedCharcoalProperties.java    From NewHorizonsCoreMod with GNU General Public License v3.0 4 votes vote down vote up
@Override
public Block.SoundType getStepSound() { return Block.soundTypeStone; }
 
Example 12
Source File: CharcoalProperties.java    From NewHorizonsCoreMod with GNU General Public License v3.0 4 votes vote down vote up
@Override
public Block.SoundType getStepSound() { return Block.soundTypeStone; }
 
Example 13
Source File: CompressedGraphiteProperties.java    From NewHorizonsCoreMod with GNU General Public License v3.0 4 votes vote down vote up
@Override
public Block.SoundType getStepSound() { return Block.soundTypeStone; }
 
Example 14
Source File: BronzePlatedReinforcedStoneProperties.java    From NewHorizonsCoreMod with GNU General Public License v3.0 4 votes vote down vote up
@Override
public Block.SoundType getStepSound() { return Block.soundTypeMetal; }
 
Example 15
Source File: NeutroniumPlatedReinforcedStoneProperties.java    From NewHorizonsCoreMod with GNU General Public License v3.0 4 votes vote down vote up
@Override
public Block.SoundType getStepSound() { return Block.soundTypeMetal; }
 
Example 16
Source File: BloodyThaumiumProperties.java    From NewHorizonsCoreMod with GNU General Public License v3.0 4 votes vote down vote up
@Override
public Block.SoundType getStepSound() { return Block.soundTypeStone; }
 
Example 17
Source File: AdminsBedrockLampProperties.java    From NewHorizonsCoreMod with GNU General Public License v3.0 4 votes vote down vote up
@Override
public Block.SoundType getStepSound() { return Block.soundTypeStone; }
 
Example 18
Source File: QuadrupleCompressedCharcoalProperties.java    From NewHorizonsCoreMod with GNU General Public License v3.0 4 votes vote down vote up
@Override
public Block.SoundType getStepSound() { return Block.soundTypeStone; }
 
Example 19
Source File: SandClayProperties.java    From NewHorizonsCoreMod with GNU General Public License v3.0 4 votes vote down vote up
@Override
public Block.SoundType getStepSound() { return Block.soundTypeGravel; }
 
Example 20
Source File: CompressedCoalProperties.java    From NewHorizonsCoreMod with GNU General Public License v3.0 4 votes vote down vote up
@Override
public Block.SoundType getStepSound() { return Block.soundTypeStone; }