net.minecraft.block

public record AmbientLeavesBlockSoundPlayer

net.minecraft.world.level.block.sounds.AmbientLeavesBlockSoundPlayer
net.minecraft.class_1_1136
net.minecraft.block.AmbientLeavesBlockSoundPlayer

Field summary

Modifier and TypeField
private final Optional<RegistryEntry<SoundEvent>>
ambientSound
comp_1_1139
ambientSound
private final int
chance
comp_1_1140
chance
private final Optional<TagKey<Block>>
satisfyingBlocks
comp_1_1143
satisfyingBlocks
private final int
nearbySatisfyingBlocksRequired
comp_1_1142
nearbySatisfyingBlocksRequired
private final int
nearbySameLeavesRequired
comp_1_1141
nearbySameLeavesRequired
private static final int
AMBIENT_SOUND_CHANCE
field_1_7893
DEFAULT_CHANCE
private static final int
NEARBY_SATISFYING_BLOCKS_REQUIRED
field_1_7896
DEFAULT_NEARBY_SATISFYING_BLOCKS_REQUIRED
private static final int
NEARBY_SAME_LEAVES_REQUIRED
field_1_7895
DEFAULT_NEARBY_SAME_LEAVES_REQUIRED
public static final com.mojang.serialization.Codec<AmbientLeavesBlockSoundPlayer>
CODEC
field_1_7894
CODEC
private static final AmbientLeavesBlockSoundPlayer
NO_SOUND
field_1_7897
EMPTY

Constructor summary

ModifierConstructor
public (Optional<RegistryEntry<SoundEvent>> ambientSound, int chance, Optional<TagKey<Block>> satisfyingBlocks, int nearbySatisfyingBlocksRequired, int nearbySameLeavesRequired)

Method summary

Modifier and TypeMethod
public static AmbientLeavesBlockSoundPlayer
of(Holder<SoundEvent> ambientSound, TagKey<Block> satisfyingBlocks)
method_1_7198(class_6880<class_3414> arg0, class_6862<class_2248> arg1)
of(RegistryEntry<SoundEvent> ambientSound, TagKey<Block> satisfyingBlocks)
public static AmbientLeavesBlockSoundPlayer
noAmbientSound()
method_1_7197()
empty()
public void
playAmbientLeavesSounds(Level level, BlockPos pos, Block block, RandomSource random)
method_1_7199(class_1937 arg0, class_2338 arg1, class_2248 arg2, class_5819 arg3)
tickSounds(World world, BlockPos pos, Block block, Random random)
public Optional<RegistryEntry<SoundEvent>>
ambientSound()
comp_1_1139()
ambientSound()
public int
chance()
comp_1_1140()
chance()
public Optional<TagKey<Block>>
satisfyingBlocks()
comp_1_1143()
satisfyingBlocks()
public int
nearbySatisfyingBlocksRequired()
comp_1_1142()
nearbySatisfyingBlocksRequired()
public int
nearbySameLeavesRequired()
comp_1_1141()
nearbySameLeavesRequired()
private static com.mojang.datafixers.kinds.App
lambda$static$0(com.mojang.serialization.codecs.RecordCodecBuilder$Instance arg0)
method_1_7196(com.mojang.serialization.codecs.RecordCodecBuilder$Instance arg0)
method_1_7196(com.mojang.serialization.codecs.RecordCodecBuilder$Instance instance)