mirror of https://github.com/FabricMC/yarn.git
Map custom note block sounds (#3419)
This commit is contained in:
parent
e3e6b5ae6f
commit
a6fef56a18
|
@ -13,3 +13,7 @@ CLASS net/minecraft/class_2428 net/minecraft/block/NoteBlock
|
|||
ARG 1 world
|
||||
ARG 2 pos
|
||||
ARG 3 state
|
||||
METHOD method_47886 getCustomSound (Lnet/minecraft/class_2766;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)Lnet/minecraft/class_3414;
|
||||
ARG 1 instrument
|
||||
ARG 2 world
|
||||
ARG 3 pos
|
||||
|
|
|
@ -6,6 +6,8 @@ CLASS net/minecraft/class_2631 net/minecraft/block/entity/SkullBlockEntity
|
|||
FIELD field_34029 executor Ljava/util/concurrent/Executor;
|
||||
FIELD field_41315 poweredTicks I
|
||||
FIELD field_41316 powered Z
|
||||
FIELD field_41602 NOTE_BLOCK_SOUND_KEY Ljava/lang/String;
|
||||
FIELD field_41603 noteBlockSound Lnet/minecraft/class_2960;
|
||||
METHOD <init> (Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V
|
||||
ARG 1 pos
|
||||
ARG 2 state
|
||||
|
@ -35,3 +37,4 @@ CLASS net/minecraft/class_2631 net/minecraft/block/entity/SkullBlockEntity
|
|||
ARG 1 pos
|
||||
ARG 2 state
|
||||
ARG 3 blockEntity
|
||||
METHOD method_47888 getNoteBlockSound ()Lnet/minecraft/class_2960;
|
||||
|
|
|
@ -1,10 +1,20 @@
|
|||
CLASS net/minecraft/class_2766 net/minecraft/block/enums/Instrument
|
||||
FIELD field_12646 name Ljava/lang/String;
|
||||
FIELD field_12649 sound Lnet/minecraft/class_3414;
|
||||
FIELD field_41605 type Lnet/minecraft/class_2766$class_7994;
|
||||
METHOD <init> (Ljava/lang/String;ILjava/lang/String;Lnet/minecraft/class_3414;Lnet/minecraft/class_2766$class_7994;)V
|
||||
ARG 3 name
|
||||
ARG 4 sound
|
||||
ARG 5 type
|
||||
METHOD method_11886 getSound ()Lnet/minecraft/class_3414;
|
||||
METHOD method_47590 fromAboveState (Lnet/minecraft/class_2680;)Ljava/util/Optional;
|
||||
ARG 0 state
|
||||
METHOD method_47592 fromBelowState (Lnet/minecraft/class_2680;)Lnet/minecraft/class_2766;
|
||||
ARG 0 state
|
||||
METHOD method_47889 shouldSpawnNoteParticles ()Z
|
||||
COMMENT {@return whether note blocks playing this instrument should produce note particles}
|
||||
METHOD method_47890 hasCustomSound ()Z
|
||||
COMMENT {@return whether note blocks playing this instrument should determine the sound from skulls above them}
|
||||
METHOD method_47891 shouldRequireAirAbove ()Z
|
||||
COMMENT {@return whether this instrument should prevent note blocks from playing when they do not have air above them}
|
||||
CLASS class_7994 Type
|
||||
|
|
Loading…
Reference in New Issue