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

Method playAuxSFXAtEntity

src/main/java/net/minecraft/world/World.java:3640–3659  ·  view source on GitHub ↗
(EntityPlayer player, int sfxType, BlockPos pos, int p_180498_4_)

Source from the content-addressed store, hash-verified

3638 }
3639
3640 public void playAuxSFXAtEntity(EntityPlayer player, int sfxType, BlockPos pos, int p_180498_4_)
3641 {
3642 try
3643 {
3644 for (int i = 0; i < this.worldAccesses.size(); ++i)
3645 {
3646 this.worldAccesses.get(i).playAuxSFX(player, sfxType, pos, p_180498_4_);
3647 }
3648 }
3649 catch (Throwable throwable)
3650 {
3651 CrashReport crashreport = CrashReport.makeCrashReport(throwable, "Playing level event");
3652 CrashReportCategory crashreportcategory = crashreport.makeCategory("Level event being played");
3653 crashreportcategory.addCrashSection("Block coordinates", CrashReportCategory.getCoordinateInfo(pos));
3654 crashreportcategory.addCrashSection("Event source", player);
3655 crashreportcategory.addCrashSection("Event type", sfxType);
3656 crashreportcategory.addCrashSection("Event data", p_180498_4_);
3657 throw new ReportedException(crashreport);
3658 }
3659 }
3660
3661 /**
3662 * Returns maximum world height.

Callers 15

extinguishFireMethod · 0.95
playAuxSFXMethod · 0.95
updateTaskMethod · 0.95
onItemRightClickMethod · 0.80
onItemUseMethod · 0.80
tryHarvestBlockMethod · 0.80
onBlockActivatedMethod · 0.80
onNeighborBlockChangeMethod · 0.80
onBlockActivatedMethod · 0.80
onNeighborBlockChangeMethod · 0.80
onBlockActivatedMethod · 0.80
toggleDoorMethod · 0.80

Calls 7

makeCrashReportMethod · 0.95
makeCategoryMethod · 0.95
addCrashSectionMethod · 0.95
getCoordinateInfoMethod · 0.95
playAuxSFXMethod · 0.65
getMethod · 0.65
sizeMethod · 0.45

Tested by

no test coverage detected