-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
18 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 9 additions & 5 deletions
14
src/main/java/net/ludocrypt/limlib/api/sound/RandomSoundEmitter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,24 @@ | ||
package net.ludocrypt.limlib.api.sound; | ||
|
||
import net.minecraft.block.BlockState; | ||
import net.minecraft.sound.SoundCategory; | ||
import net.minecraft.sound.SoundEvent; | ||
import net.minecraft.util.math.BlockPos; | ||
import net.minecraft.util.math.Vec3d; | ||
import net.minecraft.world.World; | ||
|
||
public interface RandomSoundEmitter { | ||
|
||
public SoundEvent getSound(World world, BlockState state); | ||
public SoundEvent getSound(World world, BlockState state, BlockPos pos); | ||
|
||
public Vec3d getRelativePos(World world, BlockState state); | ||
public Vec3d getRelativePos(World world, BlockState state, BlockPos pos); | ||
|
||
public double getChance(World world, BlockState state); | ||
public double getChance(World world, BlockState state, BlockPos pos); | ||
|
||
public float getVolume(World world, BlockState state); | ||
public float getVolume(World world, BlockState state, BlockPos pos); | ||
|
||
public float getPitch(World world, BlockState state); | ||
public float getPitch(World world, BlockState state, BlockPos pos); | ||
|
||
public SoundCategory getSoundCategory(World world, BlockState state, BlockPos pos); | ||
|
||
} |