提供: Minecraft Modding Wiki
移動先: 案内検索
(ページの作成:「public class ExampleMod { public static final Identifier SAMPLE_SOUND_ID = new Identifier(MOD_ID":sample_sound") public static SoundEvent SAMPLE_SOUND_EVENT = new…」)
(相違点なし)

2019年9月14日 (土) 22:28時点における版

public class ExampleMod {

   public static final Identifier SAMPLE_SOUND_ID = new Identifier(MOD_ID":sample_sound")
   public static SoundEvent SAMPLE_SOUND_EVENT = new SoundEvent(SAMPLE_SOUND_ID);
   @Override
   public void onInitialize(){
        [...]
        Registry.register(Registry.SOUND_EVENT, SampleMod.MY_SOUND_ID, MY_SOUND_EVENT);
   } 

}