MCPcopy Index your code
hub / github.com/GregTech6/gregtech6 / play

Method play

src/main/java/gregapi/util/UT.java:2696–2699  ·  view source on GitHub ↗
(String aSound, int aTimeUntilNextSound, float aVolume)

Source from the content-addressed store, hash-verified

2694 public static List<SoundWithLocation> sSoundsToPlay = new ArrayListNoNulls<>();
2695
2696 public static boolean play(String aSound, int aTimeUntilNextSound, float aVolume) {
2697 if (!CODE_CLIENT || cpw.mods.fml.common.FMLCommonHandler.instance().getEffectiveSide().isServer()) return F;
2698 return play(aSound, aTimeUntilNextSound, aVolume, GT_API.api_proxy.getThePlayer());
2699 }
2700
2701 public static boolean play(String aSound, int aTimeUntilNextSound, float aVolume, Entity aEntity) {
2702 if (!CODE_CLIENT || aEntity == null || cpw.mods.fml.common.FMLCommonHandler.instance().getEffectiveSide().isServer()) return F;

Callers 15

onClientTickEventMethod · 0.45
onLeftClickEntityMethod · 0.45
doDamageMethod · 0.45
onBlockDestroyedMethod · 0.45
getContainerItemMethod · 0.45
getContainerItemMethod · 0.45
processMethod · 0.45
consumeMaterialsMethod · 0.45
onTick2Method · 0.45
onTick2Method · 0.45
receiveBlockErrorMethod · 0.45
onTickMethod · 0.45

Calls 4

stringInvalidMethod · 0.95
roundDownMethod · 0.80
addMethod · 0.65
getThePlayerMethod · 0.45

Tested by

no test coverage detected