net.minecraft.sound

public record SoundSet<T>

net.minecraft.world.level.block.sounds.BlockSoundCollection
net.minecraft.class_1_1844
net.minecraft.sound.SoundSet

Field summary

Modifier and TypeField
private final T
breakSound
comp_1_2002
breakSound
private final T
stepSound
comp_1_2006
stepSound
private final T
placeSound
comp_1_2005
placeSound
private final T
hitSound
comp_1_2004
hitSound
private final T
fallSound
comp_1_2003
fallSound
public static final SoundSet<Boolean>
SELECT_ALL
field_1_11942
TRUE
public static final SoundSet<Boolean>
SELECT_NONE
field_1_11943
FALSE

Constructor summary

ModifierConstructor
public (T breakSound, T stepSound, T placeSound, T hitSound, T fallSound)

Method summary

Modifier and TypeMethod
public static <T> SoundSet<T>
create(T value)
method_1_11665(T arg0)
of(T sound)
public static SoundSet<Identifier>
createIds(Identifier base)
method_1_11666(class_2960 arg0)
withId(Identifier id)
public static SoundSet<Identifier>
createIdsForBlockSoundSet(ResourceKey<BlockSoundSet> blockSoundSet)
method_1_11667(class_5321<class_1_1769> arg0)
withKey(RegistryKey<BlockSoundSet> key)
public SoundSet<T>
withBreak(T breakSound)
method_1_11676(T arg0)
withBreak(T breakSound)
public SoundSet<T>
withStep(T stepSound)
method_1_11680(T arg0)
withStep(T stepSound)
public SoundSet<T>
withPlace(T placeSound)
method_1_11679(T arg0)
withPlace(T placeSound)
public SoundSet<T>
withHit(T hitSound)
method_1_11678(T arg0)
withHit(T hitSound)
public SoundSet<T>
withFall(T fallSound)
method_1_11677(T arg0)
withFall(T fallSound)
public <S> SoundSet<S>
map(Function<T, S> mapper)
method_1_11674(Function<T, S> arg0)
map(Function<T, S> function)
public static <T, U, R> SoundSet<R>
zipMap(BlockSoundCollection<T> first, BlockSoundCollection<U> second, BiFunction<T, U, R> operation)
method_1_11681(class_1_1844<T> arg0, class_1_1844<U> arg1, BiFunction<T, U, R> arg2)
mapZipped(SoundSet<T> first, SoundSet<U> second, BiFunction<T, U, R> function)
public static <T> SoundSet<Optional<T>>
mask(BlockSoundCollection<T> inputs, BlockSoundCollection<Boolean> mask)
method_1_11675(class_1_1844<T> arg0, class_1_1844<Boolean> arg1)
filter(SoundSet<T> sounds, SoundSet<Boolean> filter)
public T
breakSound()
comp_1_2002()
breakSound()
public T
stepSound()
comp_1_2006()
stepSound()
public T
placeSound()
comp_1_2005()
placeSound()
public T
hitSound()
comp_1_2004()
hitSound()
public T
fallSound()
comp_1_2003()
fallSound()
private static Optional
lambda$mask$0(Object arg0, Boolean arg1)
method_1_11673(Object arg0, Boolean arg1)
method_1_11673(Object sound, Boolean retain)
private static String
lambda$createIds$4(String arg0)
method_1_11672(String arg0)
method_1_11672(String path)
private static String
lambda$createIds$3(String arg0)
method_1_11671(String arg0)
method_1_11671(String path)
private static String
lambda$createIds$2(String arg0)
method_1_11670(String arg0)
method_1_11670(String path)
private static String
lambda$createIds$1(String arg0)
method_1_11669(String arg0)
method_1_11669(String path)
private static String
lambda$createIds$0(String arg0)
method_1_11668(String arg0)
method_1_11668(String path)