package net.minecraft.world.level.block; import com.mojang.serialization.MapCodec; import net.minecraft.core.BlockPos; import net.minecraft.util.RandomSource; import net.minecraft.world.level.Level; import net.minecraft.world.level.block.sounds.AmbientDesertBlockSoundsPlayer; import net.minecraft.world.level.block.state.BlockBehaviour; import net.minecraft.world.level.block.state.BlockState; public class TerracottaBlock extends Block { public static final MapCodec CODEC = simpleCodec(TerracottaBlock::new); @Override public MapCodec codec() { return CODEC; } public TerracottaBlock(BlockBehaviour.Properties properties) { super(properties); } @Override public void animateTick(BlockState state, Level level, BlockPos pos, RandomSource random) { AmbientDesertBlockSoundsPlayer.playAmbientBlockSounds(state, level, pos, random); } }