提供: Minecraft Modding Wiki
この編集を取り消せます。
下記の差分を確認して、本当に取り消していいか検証してください。よろしければ変更を保存して取り消しを完了してください。
最新版 | 編集中の文章 | ||
31行目: | 31行目: | ||
==サウンドの再生== | ==サウンドの再生== | ||
− | |||
*SampleBlock.java | *SampleBlock.java | ||
<source lang = "java"> | <source lang = "java"> | ||
73行目: | 72行目: | ||
playerEntity.playSound(SampleMod.SAMPLE_SOUND_EVENT, 1.0F, 1.0F); | playerEntity.playSound(SampleMod.SAMPLE_SOUND_EVENT, 1.0F, 1.0F); | ||
return new TypedActionResult<>(ActionResult.SUCCESS, playerEntity.getStackInHand(hand)); | return new TypedActionResult<>(ActionResult.SUCCESS, playerEntity.getStackInHand(hand)); | ||
− | |||
− | |||
} | } | ||
} | } |