MCPcopy Create free account
hub / github.com/DGVPSH/SlackOpen / playStepSound

Method playStepSound

src/main/java/net/minecraft/entity/Entity.java:1003–1016  ·  view source on GitHub ↗
(BlockPos pos, Block blockIn)

Source from the content-addressed store, hash-verified

1001 }
1002
1003 protected void playStepSound(BlockPos pos, Block blockIn)
1004 {
1005 Block.SoundType block$soundtype = blockIn.stepSound;
1006
1007 if (this.worldObj.getBlockState(pos.up()).getBlock() == Blocks.snow_layer)
1008 {
1009 block$soundtype = Blocks.snow_layer.stepSound;
1010 this.playSound(block$soundtype.getStepSound(), block$soundtype.getVolume() * 0.15F, block$soundtype.getFrequency());
1011 }
1012 else if (!blockIn.getMaterial().isLiquid())
1013 {
1014 this.playSound(block$soundtype.getStepSound(), block$soundtype.getVolume() * 0.15F, block$soundtype.getFrequency());
1015 }
1016 }
1017
1018 public void playSound(String name, float volume, float pitch)
1019 {

Callers 1

moveEntityMethod · 0.95

Calls 9

playSoundMethod · 0.95
upMethod · 0.80
getFrequencyMethod · 0.80
getBlockMethod · 0.65
getBlockStateMethod · 0.65
getVolumeMethod · 0.65
getStepSoundMethod · 0.45
isLiquidMethod · 0.45
getMaterialMethod · 0.45

Tested by

no test coverage detected